This is an automated email from the ASF dual-hosted git repository. jiriondrusek pushed a commit to branch camel-main in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git
commit 2e9086fe7d587fe8c6cd01a08d8b6ec9140d9dc8 Author: Jiri Ondrusek <[email protected]> AuthorDate: Fri Feb 6 14:00:15 2026 +0100 Fixed apoenAi tests --- .../quarkus/component/openai/it/OpenaiTest.java | 2 +- ...tions-04c58170-1bde-482d-93d8-7c56d899ef23.json | 46 ++++++++++++++++++++++ ...ions-04e37f50-08ea-4d43-a43e-299940f6e117.json} | 20 +++++----- ...tions-323a6828-8117-4d20-9627-72939652f6e4.json | 43 ++++++++++++++++++++ ...tions-371c2c6c-ace6-42bd-ac5d-6214ba9cdceb.json | 46 ---------------------- ...tions-45c75cdd-225c-4e51-a133-a3146fff462b.json | 43 ++++++++++++++++++++ ...tions-6424a591-8168-4708-9e85-18266a335435.json | 43 -------------------- ...ions-6dcb56c2-44cf-48e5-9ea0-a1696d851b90.json} | 20 +++++----- ...tions-741db9c0-e3ee-4dea-a702-ea609f5a10c5.json | 43 ++++++++++++++++++++ ...tions-74689f85-f209-4129-b2c8-5e4d38c8eb54.json | 43 -------------------- ...tions-9368b026-c5a6-4dc2-ad3a-d34eaa1c149b.json | 43 -------------------- ...tions-c2de863e-db3e-4692-968c-ab2b5bd4beaa.json | 45 +++++++++++++++++++++ ...tions-e3409921-1e95-4efe-a299-cc8202215d5a.json | 43 ++++++++++++++++++++ ...tions-e61cd29d-a5ff-42ad-a4de-9975902e0f87.json | 45 --------------------- ...tions-f0e11826-78d1-4bf6-988f-f6d31ae30e0b.json | 43 -------------------- 15 files changed, 284 insertions(+), 284 deletions(-) diff --git a/integration-tests/openai/src/test/java/org/apache/camel/quarkus/component/openai/it/OpenaiTest.java b/integration-tests/openai/src/test/java/org/apache/camel/quarkus/component/openai/it/OpenaiTest.java index c9c87f6dc7..a70d1254d5 100644 --- a/integration-tests/openai/src/test/java/org/apache/camel/quarkus/component/openai/it/OpenaiTest.java +++ b/integration-tests/openai/src/test/java/org/apache/camel/quarkus/component/openai/it/OpenaiTest.java @@ -80,7 +80,7 @@ class OpenaiTest { .body( containsStringIgnoringCase("camel"), containsStringIgnoringCase("silhouette"), - containsStringIgnoringCase("logo")); + containsStringIgnoringCase("icon")); } finally { if (FileUtil.isWindows()) { // File may be locked by the Quarkus process, so clean up on VM exit diff --git a/integration-tests/openai/src/test/resources/mappings/chat_completions-04c58170-1bde-482d-93d8-7c56d899ef23.json b/integration-tests/openai/src/test/resources/mappings/chat_completions-04c58170-1bde-482d-93d8-7c56d899ef23.json new file mode 100644 index 0000000000..500e10c80c --- /dev/null +++ b/integration-tests/openai/src/test/resources/mappings/chat_completions-04c58170-1bde-482d-93d8-7c56d899ef23.json @@ -0,0 +1,46 @@ +{ + "id" : "04c58170-1bde-482d-93d8-7c56d899ef23", + "name" : "chat_completions", + "request" : { + "url" : "/chat/completions", + "method" : "POST", + "bodyPatterns" : [ { + "equalToJson" : "{\"messages\":[{\"content\":\"In one sentence, what is Apache Camel?\",\"role\":\"user\"}],\"model\":\"gpt-5\"}", + "ignoreArrayOrder" : true, + "ignoreExtraElements" : true + } ] + }, + "response" : { + "status" : 200, + "body" : "{\n \"id\": \"chatcmpl-D6FgI8zKLT2zAW986IYYX0XWz5cF4\",\n \"object\": \"chat.completion\",\n \"created\": 1770382618,\n \"model\": \"gpt-5-2025-08-07\",\n \"choices\": [\n {\n \"index\": 0,\n \"message\": {\n \"role\": \"assistant\",\n \"content\": \"Apache Camel is an open-source Java-based integration framework and routing/mediation engine that implements Enterprise Integration Patterns, enabling you to connect disparate systems via a rich [...] + "headers" : { + "x-request-id" : "req_5fe68d8ad45745b6bf81023fc9f6c93f", + "x-ratelimit-limit-tokens" : "500000", + "openai-organization" : "user-fc32zjefei81sjxkd0c7bqkx", + "CF-RAY" : "9c9acf82ea94579f-PRG", + "Server" : "cloudflare", + "X-Content-Type-Options" : "nosniff", + "x-ratelimit-reset-requests" : "120ms", + "x-openai-proxy-wasm" : "v0.1", + "x-ratelimit-remaining-tokens" : "499988", + "cf-cache-status" : "DYNAMIC", + "x-ratelimit-remaining-requests" : "499", + "Date" : "Fri, 06 Feb 2026 12:57:01 GMT", + "x-ratelimit-reset-tokens" : "1ms", + "access-control-expose-headers" : "X-Request-ID", + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains; preload", + "x-ratelimit-limit-requests" : "500", + "Set-Cookie" : [ "__cf_bm=Jfvlu9rv9RgSG6tf9.WCY10Fn3Vd8PEI2Bm0YReN0TY-1770382621-1.0.1.1-V6yHK1RpHEXQQUibSLB6P13f00CwJsim.ti3eOVxsKwoHmFMwh.oCY.gyCTWr1BXui0uWsWZX199TSW3qhVA1cX1rG6tB4iGNyoyc_dkcOk; path=/; expires=Fri, 06-Feb-26 13:27:01 GMT; domain=.api.openai.com; HttpOnly; Secure; SameSite=None", "_cfuvid=OuFRSys.VUNGbhELj4snpswP2uhMhIumPHfJW720NGY-1770382621319-0.0.1.1-604800000; path=/; domain=.api.openai.com; HttpOnly; Secure; SameSite=None" ], + "openai-version" : "2020-10-01", + "openai-processing-ms" : "3074", + "alt-svc" : "h3=\":443\"; ma=86400", + "Content-Type" : "application/json" + } + }, + "uuid" : "04c58170-1bde-482d-93d8-7c56d899ef23", + "persistent" : true, + "scenarioName" : "scenario-1-chat-completions", + "requiredScenarioState" : "Started", + "newScenarioState" : "scenario-1-chat-completions-2", + "insertionIndex" : 6 +} \ No newline at end of file diff --git a/integration-tests/openai/src/test/resources/mappings/chat_completions-fb0a5dd7-0e7c-4aa5-9274-203c032bfac5.json b/integration-tests/openai/src/test/resources/mappings/chat_completions-04e37f50-08ea-4d43-a43e-299940f6e117.json similarity index 65% rename from integration-tests/openai/src/test/resources/mappings/chat_completions-fb0a5dd7-0e7c-4aa5-9274-203c032bfac5.json rename to integration-tests/openai/src/test/resources/mappings/chat_completions-04e37f50-08ea-4d43-a43e-299940f6e117.json index 0f80f03477..84bb74120a 100644 --- a/integration-tests/openai/src/test/resources/mappings/chat_completions-fb0a5dd7-0e7c-4aa5-9274-203c032bfac5.json +++ b/integration-tests/openai/src/test/resources/mappings/chat_completions-04e37f50-08ea-4d43-a43e-299940f6e117.json @@ -1,23 +1,23 @@ { - "id" : "fb0a5dd7-0e7c-4aa5-9274-203c032bfac5", + "id" : "04e37f50-08ea-4d43-a43e-299940f6e117", "name" : "chat_completions", "request" : { "url" : "/chat/completions", "method" : "POST", "bodyPatterns" : [ { - "equalToJson" : "{\"messages\":[{\"content\":\"Create an example product for a product named 'Bluetooth Headphones'.\",\"role\":\"user\"}],\"model\":\"gpt-5\",\"response_format\":{\"json_schema\":{\"name\":\"json-schema-from-Product\",\"schema\":{\"$schema\":\"https://json-schema.org/draft/2020-12/schema\",\"type\":\"object\",\"properties\":{\"name\":{\"type\":\"string\"},\"price\":{\"type\":\"number\"}},\"required\":[\"name\",\"price\"],\"additionalProperties\":false},\"strict\":t [...] + "equalToJson" : "{\"messages\":[{\"content\":\"Create an example product for a product named 'Bluetooth Headphones'.\",\"role\":\"user\"}],\"model\":\"gpt-5\",\"response_format\":{\"json_schema\":{\"name\":\"json-schema-from-Product\",\"schema\":{\"$schema\":\"https://json-schema.org/draft/2020-12/schema\",\"type\":\"object\",\"properties\":{\"name\":{\"type\":\"string\"},\"price\":{\"type\":\"number\"}},\"required\":[\"name\",\"price\"],\"additionalProperties\":false},\"strict\":t [...] "ignoreArrayOrder" : true, "ignoreExtraElements" : true } ] }, "response" : { "status" : 200, - "body" : "{\n \"id\": \"chatcmpl-D2aeDT44NmI7quPk6EKQySXbjfQlS\",\n \"object\": \"chat.completion\",\n \"created\": 1769509901,\n \"model\": \"gpt-5-2025-08-07\",\n \"choices\": [\n {\n \"index\": 0,\n \"message\": {\n \"role\": \"assistant\",\n \"content\": \"{\\\"name\\\":\\\"Bluetooth Headphones\\\",\\\"price\\\":79.99}\",\n \"refusal\": null,\n \"annotations\": []\n },\n \"finish_reason\": \"stop\"\n }\n ],\n \"usage\": [...] + "body" : "{\n \"id\": \"chatcmpl-D6Fh0CqBFAJAHRl6M6kbhxZvY9kd9\",\n \"object\": \"chat.completion\",\n \"created\": 1770382662,\n \"model\": \"gpt-5-2025-08-07\",\n \"choices\": [\n {\n \"index\": 0,\n \"message\": {\n \"role\": \"assistant\",\n \"content\": \"{\\\"name\\\":\\\"Bluetooth Headphones\\\",\\\"price\\\":79.99}\",\n \"refusal\": null,\n \"annotations\": []\n },\n \"finish_reason\": \"stop\"\n }\n ],\n \"usage\": [...] "headers" : { - "x-request-id" : "req_2e8d1220dad145129e1a39c5c335393b", + "x-request-id" : "req_83e0c698f8b0468491d1799d1d971f4e", "x-ratelimit-limit-tokens" : "500000", - "openai-organization" : "user-nvrq0gduw4i0ooapnshoh6gw", - "CF-RAY" : "9c4794f4aad30c3c-LHR", + "openai-organization" : "user-fc32zjefei81sjxkd0c7bqkx", + "CF-RAY" : "9c9ad0997d18269b-PRG", "Server" : "cloudflare", "X-Content-Type-Options" : "nosniff", "x-ratelimit-reset-requests" : "120ms", @@ -25,19 +25,19 @@ "x-ratelimit-remaining-tokens" : "499980", "cf-cache-status" : "DYNAMIC", "x-ratelimit-remaining-requests" : "499", - "Date" : "Tue, 27 Jan 2026 10:31:54 GMT", + "Date" : "Fri, 06 Feb 2026 12:58:11 GMT", "x-ratelimit-reset-tokens" : "2ms", "access-control-expose-headers" : "X-Request-ID", "Strict-Transport-Security" : "max-age=31536000; includeSubDomains; preload", "x-ratelimit-limit-requests" : "500", - "Set-Cookie" : [ "__cf_bm=_CXULdvnKtnj9mqc9nBMXgAv1ZF0JvPIl2.yqy2x6Ng-1769509914-1.0.1.1-Z.jsxl9BYlVStT0t5pO.eqC96zSPgQ9oUz_urB.d4M9SVnMPyYC8F3A34RyVkw4SQAEg1ECSBfE15qCaAuLTLyh9mAp0Nl18Gx6CNk0lZIg; path=/; expires=Tue, 27-Jan-26 11:01:54 GMT; domain=.api.openai.com; HttpOnly; Secure; SameSite=None", "_cfuvid=2mwBW9xXw_VpeLnnP2tddDnAAab82LNgca4NBHc8Gl8-1769509914516-0.0.1.1-604800000; path=/; domain=.api.openai.com; HttpOnly; Secure; SameSite=None" ], + "Set-Cookie" : [ "__cf_bm=ZWDPYXapauY3m9CW57wmFR2D0zJTXmx41eBFD8jyciE-1770382691-1.0.1.1-w2i6HpbeEZVdXQXzUp58LBtDLdA6HREhQx.tIU1yRe0_0XvvgQCU0vWwyNd1ScVNRDBsbM6AXJypH4.v7Re5brWxXrjeBmyGfE2lBxESZo4; path=/; expires=Fri, 06-Feb-26 13:28:11 GMT; domain=.api.openai.com; HttpOnly; Secure; SameSite=None", "_cfuvid=KcMorcDwGZSmOn.KYRHApFEavacsuIS8HXrgBfJXLcE-1770382691879-0.0.1.1-604800000; path=/; domain=.api.openai.com; HttpOnly; Secure; SameSite=None" ], "openai-version" : "2020-10-01", - "openai-processing-ms" : "12820", + "openai-processing-ms" : "29059", "alt-svc" : "h3=\":443\"; ma=86400", "Content-Type" : "application/json" } }, - "uuid" : "fb0a5dd7-0e7c-4aa5-9274-203c032bfac5", + "uuid" : "04e37f50-08ea-4d43-a43e-299940f6e117", "persistent" : true, "insertionIndex" : 1 } \ No newline at end of file diff --git a/integration-tests/openai/src/test/resources/mappings/chat_completions-323a6828-8117-4d20-9627-72939652f6e4.json b/integration-tests/openai/src/test/resources/mappings/chat_completions-323a6828-8117-4d20-9627-72939652f6e4.json new file mode 100644 index 0000000000..ca7c0b0ad5 --- /dev/null +++ b/integration-tests/openai/src/test/resources/mappings/chat_completions-323a6828-8117-4d20-9627-72939652f6e4.json @@ -0,0 +1,43 @@ +{ + "id" : "323a6828-8117-4d20-9627-72939652f6e4", + "name" : "chat_completions", + "request" : { + "url" : "/chat/completions", + "method" : "POST", + "bodyPatterns" : [ { + "equalToJson" : "{\"messages\":[{\"content\":\"Stream the numbers 1 to 10 on a new line each time and nothing else.\",\"role\":\"user\"}],\"model\":\"gpt-5\",\"stream\":true}", + "ignoreArrayOrder" : true, + "ignoreExtraElements" : true + } ] + }, + "response" : { + "status" : 200, + "body" : "data: {\"id\":\"chatcmpl-D6FgltKdw8sxHBHCgSTfrRAB94xZ7\",\"object\":\"chat.completion.chunk\",\"created\":1770382647,\"model\":\"gpt-5-2025-08-07\",\"service_tier\":\"default\",\"system_fingerprint\":null,\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\"\",\"refusal\":null},\"finish_reason\":null}],\"obfuscation\":\"0SVAnI4\"}\n\ndata: {\"id\":\"chatcmpl-D6FgltKdw8sxHBHCgSTfrRAB94xZ7\",\"object\":\"chat.completion.chunk\",\"created\":1770382647,\"mo [...] + "headers" : { + "x-request-id" : "req_03dcc349cbf340798adecb63fb51ea8a", + "x-ratelimit-limit-tokens" : "500000", + "openai-organization" : "user-fc32zjefei81sjxkd0c7bqkx", + "CF-RAY" : "9c9ad0396fc9f96e-PRG", + "Server" : "cloudflare", + "X-Content-Type-Options" : "nosniff", + "x-ratelimit-reset-requests" : "120ms", + "x-openai-proxy-wasm" : "v0.1", + "x-ratelimit-remaining-tokens" : "499981", + "cf-cache-status" : "DYNAMIC", + "x-ratelimit-remaining-requests" : "499", + "Date" : "Fri, 06 Feb 2026 12:57:40 GMT", + "x-ratelimit-reset-tokens" : "2ms", + "access-control-expose-headers" : "X-Request-ID", + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains; preload", + "x-ratelimit-limit-requests" : "500", + "Set-Cookie" : [ "__cf_bm=6CNQy1S5tRXs_JjuHAS.ijzxTST3Q0XgFWEcbzcGNgo-1770382660-1.0.1.1-U1IBlQIu2Br8WlvPQr5wwYGLz2UBo9ZZTlGtZgGcumH5lIt1JMqmeYF9cDXHQSkLUQNQ0IRc3cGN869fhaKSsWfJIDw2R78puQA0FuUaDCw; path=/; expires=Fri, 06-Feb-26 13:27:40 GMT; domain=.api.openai.com; HttpOnly; Secure; SameSite=None", "_cfuvid=H0JSu_G0bmPfn_uzg9lN8HbaOB6xPpNmTcdTQdG8d0A-1770382660254-0.0.1.1-604800000; path=/; domain=.api.openai.com; HttpOnly; Secure; SameSite=None" ], + "openai-version" : "2020-10-01", + "openai-processing-ms" : "12815", + "alt-svc" : "h3=\":443\"; ma=86400", + "Content-Type" : "text/event-stream; charset=utf-8" + } + }, + "uuid" : "323a6828-8117-4d20-9627-72939652f6e4", + "persistent" : true, + "insertionIndex" : 2 +} \ No newline at end of file diff --git a/integration-tests/openai/src/test/resources/mappings/chat_completions-371c2c6c-ace6-42bd-ac5d-6214ba9cdceb.json b/integration-tests/openai/src/test/resources/mappings/chat_completions-371c2c6c-ace6-42bd-ac5d-6214ba9cdceb.json deleted file mode 100644 index 3c9b3bb9fb..0000000000 --- a/integration-tests/openai/src/test/resources/mappings/chat_completions-371c2c6c-ace6-42bd-ac5d-6214ba9cdceb.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "id" : "371c2c6c-ace6-42bd-ac5d-6214ba9cdceb", - "name" : "chat_completions", - "request" : { - "url" : "/chat/completions", - "method" : "POST", - "bodyPatterns" : [ { - "equalToJson" : "{\"messages\":[{\"content\":\"In one sentence, what is Apache Camel?\",\"role\":\"user\"}],\"model\":\"gpt-5\",\"temperature\":1.0}", - "ignoreArrayOrder" : true, - "ignoreExtraElements" : true - } ] - }, - "response" : { - "status" : 200, - "body" : "{\n \"id\": \"chatcmpl-D2add3YmiXdwEboHVOpiUIdoDfjbC\",\n \"object\": \"chat.completion\",\n \"created\": 1769509865,\n \"model\": \"gpt-5-2025-08-07\",\n \"choices\": [\n {\n \"index\": 0,\n \"message\": {\n \"role\": \"assistant\",\n \"content\": \"Apache Camel is an open-source integration framework that implements Enterprise Integration Patterns to route, transform, and mediate messages between systems using a wide range of connectors and [...] - "headers" : { - "x-request-id" : "req_9815d7db45994ed687d0e50c1d2c280e", - "x-ratelimit-limit-tokens" : "500000", - "openai-organization" : "user-nvrq0gduw4i0ooapnshoh6gw", - "CF-RAY" : "9c479411eb3333fe-LHR", - "Server" : "cloudflare", - "X-Content-Type-Options" : "nosniff", - "x-ratelimit-reset-requests" : "120ms", - "x-openai-proxy-wasm" : "v0.1", - "x-ratelimit-remaining-tokens" : "499988", - "cf-cache-status" : "DYNAMIC", - "x-ratelimit-remaining-requests" : "499", - "Date" : "Tue, 27 Jan 2026 10:31:08 GMT", - "x-ratelimit-reset-tokens" : "1ms", - "access-control-expose-headers" : "X-Request-ID", - "Strict-Transport-Security" : "max-age=31536000; includeSubDomains; preload", - "x-ratelimit-limit-requests" : "500", - "Set-Cookie" : [ "__cf_bm=T9eL.pfXGoicZCWWEh3JoIymqHyonP3NQT3ybqP5uJM-1769509868-1.0.1.1-g2IwAYQcOxKWsbEzb7JAeW.eqCmgd9b5OPcIIR2gpybdiMZ9hfcWbci81tG3Y9OKz95.XJYEwHI7EXofta4vzn3Dqb6HwvtJmtUWbtCKaCs; path=/; expires=Tue, 27-Jan-26 11:01:08 GMT; domain=.api.openai.com; HttpOnly; Secure; SameSite=None", "_cfuvid=jlzIJcuAOE7EBxWLG.y39y8a2dsoeSRKDgnVZOcJbQc-1769509868234-0.0.1.1-604800000; path=/; domain=.api.openai.com; HttpOnly; Secure; SameSite=None" ], - "openai-version" : "2020-10-01", - "openai-processing-ms" : "2648", - "alt-svc" : "h3=\":443\"; ma=86400", - "Content-Type" : "application/json" - } - }, - "uuid" : "371c2c6c-ace6-42bd-ac5d-6214ba9cdceb", - "persistent" : true, - "scenarioName" : "scenario-1-chat-completions", - "requiredScenarioState" : "Started", - "newScenarioState" : "scenario-1-chat-completions-2", - "insertionIndex" : 6 -} \ No newline at end of file diff --git a/integration-tests/openai/src/test/resources/mappings/chat_completions-45c75cdd-225c-4e51-a133-a3146fff462b.json b/integration-tests/openai/src/test/resources/mappings/chat_completions-45c75cdd-225c-4e51-a133-a3146fff462b.json new file mode 100644 index 0000000000..f1e2651254 --- /dev/null +++ b/integration-tests/openai/src/test/resources/mappings/chat_completions-45c75cdd-225c-4e51-a133-a3146fff462b.json @@ -0,0 +1,43 @@ +{ + "id" : "45c75cdd-225c-4e51-a133-a3146fff462b", + "name" : "chat_completions", + "request" : { + "url" : "/chat/completions", + "method" : "POST", + "bodyPatterns" : [ { + "equalToJson" : "{\"messages\":[{\"role\":\"assistant\",\"content\":\"Hello, Camelus dromedarius! Nice to meet you. How can I help you today?\\n\\nOptions:\\n- Quick facts about dromedaries (diet, habitat, adaptations)\\n- A short story or monologue from your perspective\\n- Comparison with Bactrian camels\\n- Q&A about behavior, physiology, or history\\n\\nTell me what you’re in the mood for.\"},{\"content\":\"What is my Camel species?\",\"role\":\"user\"}],\"model\":\"gpt-5\"}", + "ignoreArrayOrder" : true, + "ignoreExtraElements" : true + } ] + }, + "response" : { + "status" : 200, + "body" : "{\n \"id\": \"chatcmpl-D6Fg8qzpwpUTx79NLTY7g5II4FnYz\",\n \"object\": \"chat.completion\",\n \"created\": 1770382608,\n \"model\": \"gpt-5-2025-08-07\",\n \"choices\": [\n {\n \"index\": 0,\n \"message\": {\n \"role\": \"assistant\",\n \"content\": \"You’re a dromedary camel: Camelus dromedarius.\\n\\nQuick ID:\\n- One hump (vs. two in Bactrian camels)\\n- Origin in Arabian/North African regions; now widespread\\n- Makes up ~90% of the world’ [...] + "headers" : { + "x-request-id" : "req_0e75d17071994b3f996151aafe448380", + "x-ratelimit-limit-tokens" : "500000", + "openai-organization" : "user-fc32zjefei81sjxkd0c7bqkx", + "CF-RAY" : "9c9acf455f46aa2f-PRG", + "Server" : "cloudflare", + "X-Content-Type-Options" : "nosniff", + "x-ratelimit-reset-requests" : "120ms", + "x-openai-proxy-wasm" : "v0.1", + "x-ratelimit-remaining-tokens" : "499912", + "cf-cache-status" : "DYNAMIC", + "x-ratelimit-remaining-requests" : "499", + "Date" : "Fri, 06 Feb 2026 12:56:57 GMT", + "x-ratelimit-reset-tokens" : "10ms", + "access-control-expose-headers" : "X-Request-ID", + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains; preload", + "x-ratelimit-limit-requests" : "500", + "Set-Cookie" : [ "__cf_bm=qW97blIbb83rwuIR1xHkihHw59wJZRgOALV_K8IYmhk-1770382617-1.0.1.1-TtTzMzw6agG.d7L6eTqX1HeSBJuRE8AXFbQ8jhdkhPd8sowtlo8hCsEAM6XG2cJjXP7KmyPKlpn46pSATn_Efu52ZmEC71eluPPqFuScxfE; path=/; expires=Fri, 06-Feb-26 13:26:57 GMT; domain=.api.openai.com; HttpOnly; Secure; SameSite=None", "_cfuvid=ox_..EPBHMNZ_OH5MnxAzYwFJ4r4zFDNq_gXIzwtzWc-1770382617946-0.0.1.1-604800000; path=/; domain=.api.openai.com; HttpOnly; Secure; SameSite=None" ], + "openai-version" : "2020-10-01", + "openai-processing-ms" : "9548", + "alt-svc" : "h3=\":443\"; ma=86400", + "Content-Type" : "application/json" + } + }, + "uuid" : "45c75cdd-225c-4e51-a133-a3146fff462b", + "persistent" : true, + "insertionIndex" : 7 +} \ No newline at end of file diff --git a/integration-tests/openai/src/test/resources/mappings/chat_completions-6424a591-8168-4708-9e85-18266a335435.json b/integration-tests/openai/src/test/resources/mappings/chat_completions-6424a591-8168-4708-9e85-18266a335435.json deleted file mode 100644 index 1719fedf5a..0000000000 --- a/integration-tests/openai/src/test/resources/mappings/chat_completions-6424a591-8168-4708-9e85-18266a335435.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "id" : "6424a591-8168-4708-9e85-18266a335435", - "name" : "chat_completions", - "request" : { - "url" : "/chat/completions", - "method" : "POST", - "bodyPatterns" : [ { - "equalToJson" : "{\"messages\":[{\"content\":\"Stream the numbers 1 to 10 on a new line each time and nothing else.\",\"role\":\"user\"}],\"model\":\"gpt-5\",\"temperature\":1.0,\"stream\":true}", - "ignoreArrayOrder" : true, - "ignoreExtraElements" : true - } ] - }, - "response" : { - "status" : 200, - "body" : "data: {\"id\":\"chatcmpl-D2aeAjgif1gBVAPu9GH45QUEeM595\",\"object\":\"chat.completion.chunk\",\"created\":1769509898,\"model\":\"gpt-5-2025-08-07\",\"service_tier\":\"default\",\"system_fingerprint\":null,\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\"\",\"refusal\":null},\"finish_reason\":null}],\"obfuscation\":\"OawGDTE\"}\n\ndata: {\"id\":\"chatcmpl-D2aeAjgif1gBVAPu9GH45QUEeM595\",\"object\":\"chat.completion.chunk\",\"created\":1769509898,\"mo [...] - "headers" : { - "x-request-id" : "req_999fb5204cd840dda154e7ce979d509f", - "x-ratelimit-limit-tokens" : "500000", - "openai-organization" : "user-nvrq0gduw4i0ooapnshoh6gw", - "CF-RAY" : "9c4794deaab51179-LHR", - "Server" : "cloudflare", - "X-Content-Type-Options" : "nosniff", - "x-ratelimit-reset-requests" : "120ms", - "x-openai-proxy-wasm" : "v0.1", - "x-ratelimit-remaining-tokens" : "499981", - "cf-cache-status" : "DYNAMIC", - "x-ratelimit-remaining-requests" : "499", - "Date" : "Tue, 27 Jan 2026 10:31:39 GMT", - "x-ratelimit-reset-tokens" : "2ms", - "access-control-expose-headers" : "X-Request-ID", - "Strict-Transport-Security" : "max-age=31536000; includeSubDomains; preload", - "x-ratelimit-limit-requests" : "500", - "Set-Cookie" : [ "__cf_bm=FmQ83ZDP77tCY4DWrYu6kHtDgQAtDbHaX9X39W3RA5I-1769509899-1.0.1.1-0gvxDpfDmIUPFkcyK2r6Vw0PR6ZThH5aQb0z__jSaAy4LYoesF7vy_Isp7uHr7y_tlwKjXgvfDAGGizzfdwx5Yjj2Tf05D6NVj.emhrSwfc; path=/; expires=Tue, 27-Jan-26 11:01:39 GMT; domain=.api.openai.com; HttpOnly; Secure; SameSite=None", "_cfuvid=vHD0D_Dm6mz2b1mEwlY0Ys8AbDU.LOG17CtwdT860Xc-1769509899926-0.0.1.1-604800000; path=/; domain=.api.openai.com; HttpOnly; Secure; SameSite=None" ], - "openai-version" : "2020-10-01", - "openai-processing-ms" : "1749", - "alt-svc" : "h3=\":443\"; ma=86400", - "Content-Type" : "text/event-stream; charset=utf-8" - } - }, - "uuid" : "6424a591-8168-4708-9e85-18266a335435", - "persistent" : true, - "insertionIndex" : 2 -} \ No newline at end of file diff --git a/integration-tests/openai/src/test/resources/mappings/chat_completions-8454f54f-99d3-46a6-b443-720151e4d73a.json b/integration-tests/openai/src/test/resources/mappings/chat_completions-6dcb56c2-44cf-48e5-9ea0-a1696d851b90.json similarity index 90% rename from integration-tests/openai/src/test/resources/mappings/chat_completions-8454f54f-99d3-46a6-b443-720151e4d73a.json rename to integration-tests/openai/src/test/resources/mappings/chat_completions-6dcb56c2-44cf-48e5-9ea0-a1696d851b90.json index cad37f5f3e..8bbb052dcf 100644 --- a/integration-tests/openai/src/test/resources/mappings/chat_completions-8454f54f-99d3-46a6-b443-720151e4d73a.json +++ b/integration-tests/openai/src/test/resources/mappings/chat_completions-6dcb56c2-44cf-48e5-9ea0-a1696d851b90.json @@ -1,18 +1,18 @@ { - "id" : "8454f54f-99d3-46a6-b443-720151e4d73a", + "id" : "6dcb56c2-44cf-48e5-9ea0-a1696d851b90", "name" : "chat_completions", "request" : { "url" : "/chat/completions", "method" : "POST", "bodyPatterns" : [ { - "equalToJson" : "{\"messages\":[{\"content\":[{\"text\":\"Describe what you see in this image\",\"type\":\"text\"},{\"image_url\":{\"url\":\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIgAAACACAYAAADQ6SE/AAAKomlDQ1BJQ0MgUHJvZmlsZQAASImVlwdQk9kWx+/3pYeElhA6hN6ktwBSQg+9NxshCRBKDAlBxa4sruBaEBEBRdBVEQXXAogdUWyLgGLXDbKIKOtiQVRU3gcMYXffvPfmnZkz9zf/nHvuuXfu/eYEALIiWyjMghUByBbkiqICvOkJiUl03CsAAQKQBwrAiM0RC5kRESEAsZnx7/bxHhKN2B3LyVz//vt/NSUuT8wBAIpAOIUr5mQjfBLxYY5QlAsAai+iGyzJFU5yO8JUEVI [...] + "equalToJson" : "{\"messages\":[{\"content\":[{\"text\":\"Describe what you see in this image\",\"type\":\"text\"},{\"image_url\":{\"url\":\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIgAAACACAYAAADQ6SE/AAAKomlDQ1BJQ0MgUHJvZmlsZQAASImVlwdQk9kWx+/3pYeElhA6hN6ktwBSQg+9NxshCRBKDAlBxa4sruBaEBEBRdBVEQXXAogdUWyLgGLXDbKIKOtiQVRU3gcMYXffvPfmnZkz9zf/nHvuuXfu/eYEALIiWyjMghUByBbkiqICvOkJiUl03CsAAQKQBwrAiM0RC5kRESEAsZnx7/bxHhKN2B3LyVz//vt/NSUuT8wBAIpAOIUr5mQjfBLxYY5QlAsAai+iGyzJFU5yO8JUEVI [...] "ignoreArrayOrder" : true, "ignoreExtraElements" : true } ] }, "response" : { "status" : 200, - "body" : "{\n \"id\": \"chatcmpl-D2ae3F39KqqvDYmRCB8ytK4uivhk8\",\n \"object\": \"chat.completion\",\n \"created\": 1769509891,\n \"model\": \"gpt-5-2025-08-07\",\n \"choices\": [\n {\n \"index\": 0,\n \"message\": {\n \"role\": \"assistant\",\n \"content\": \"A minimalist logo showing a white camel silhouette inside an orange circle. The background has orange and brown shapes resembling desert dunes.\",\n \"refusal\": null,\n \"annotatio [...] + "body" : "{\n \"id\": \"chatcmpl-D6FgaNoDxKIPWVL7AX3tUPCKuoEnO\",\n \"object\": \"chat.completion\",\n \"created\": 1770382636,\n \"model\": \"gpt-5-2025-08-07\",\n \"choices\": [\n {\n \"index\": 0,\n \"message\": {\n \"role\": \"assistant\",\n \"content\": \"It’s a circular icon with an orange-to-yellow gradient background suggesting desert dunes. In the foreground is a white, stylized silhouette of a camel’s head and neck, curving upward from left t [...] "headers" : { "Server" : "cloudflare", "x-ratelimit-reset-input-images" : "1ms", @@ -20,27 +20,27 @@ "x-ratelimit-limit-input-images" : "50000", "Strict-Transport-Security" : "max-age=31536000; includeSubDomains; preload", "x-ratelimit-remaining-input-images" : "49999", - "Set-Cookie" : [ "__cf_bm=zPu326k25_oKkl.tdR0o6S90RsNw8nGm2ksOXYvBjfo-1769509897-1.0.1.1-cKkSZO6QVoyyYzU4QsH2XebZbyXWrXpGgFVAGzALvH1n5vZw0bCGw_W1DQOv8pkRGWIZs9u8SZO2zmihgfjxwJ_1wDsdfpNlrVHh5qC6ES0; path=/; expires=Tue, 27-Jan-26 11:01:37 GMT; domain=.api.openai.com; HttpOnly; Secure; SameSite=None", "_cfuvid=tVCs6wDcvX6z0mZeIFCM18FQ4sgbX.5Ie78JUwxAxMY-1769509897907-0.0.1.1-604800000; path=/; domain=.api.openai.com; HttpOnly; Secure; SameSite=None" ], + "Set-Cookie" : [ "__cf_bm=dVAYpWOZg1MM9rIs_6qgdQoB5lk0DK_5pWlFYG0IIEY-1770382647-1.0.1.1-3oSHC5xc6WGnp1bW4NVHACSHGJJucAUBFLHFMMIJo1CLPK_VlD2_eT7YlAx1A6YNJlA8PwTQ9N2OZmEKg7x2S_.pJiP72N6aAeP3pVKmx64; path=/; expires=Fri, 06-Feb-26 13:27:27 GMT; domain=.api.openai.com; HttpOnly; Secure; SameSite=None", "_cfuvid=cHgRYlzleVXSl_ETc0vfL.xVHnX6HwUNe7TjCPVr1zc-1770382647201-0.0.1.1-604800000; path=/; domain=.api.openai.com; HttpOnly; Secure; SameSite=None" ], "Content-Type" : "application/json", - "x-request-id" : "req_53c5adcfb8b049c68382a8ba1ae8f23c", + "x-request-id" : "req_fe923a62278644b5a7df954c94fb1552", "x-ratelimit-limit-tokens" : "500000", - "openai-organization" : "user-nvrq0gduw4i0ooapnshoh6gw", - "CF-RAY" : "9c4794b6f86fbd74-LHR", + "openai-organization" : "user-fc32zjefei81sjxkd0c7bqkx", + "CF-RAY" : "9c9acff2d832f99a-PRG", "X-Content-Type-Options" : "nosniff", "x-ratelimit-reset-requests" : "120ms", "x-openai-proxy-wasm" : "v0.1", "x-ratelimit-remaining-tokens" : "499224", "cf-cache-status" : "DYNAMIC", "x-ratelimit-remaining-requests" : "499", - "Date" : "Tue, 27 Jan 2026 10:31:37 GMT", + "Date" : "Fri, 06 Feb 2026 12:57:27 GMT", "access-control-expose-headers" : "X-Request-ID", "x-ratelimit-limit-requests" : "500", "openai-version" : "2020-10-01", - "openai-processing-ms" : "6049", + "openai-processing-ms" : "11052", "alt-svc" : "h3=\":443\"; ma=86400" } }, - "uuid" : "8454f54f-99d3-46a6-b443-720151e4d73a", + "uuid" : "6dcb56c2-44cf-48e5-9ea0-a1696d851b90", "persistent" : true, "insertionIndex" : 3 } \ No newline at end of file diff --git a/integration-tests/openai/src/test/resources/mappings/chat_completions-741db9c0-e3ee-4dea-a702-ea609f5a10c5.json b/integration-tests/openai/src/test/resources/mappings/chat_completions-741db9c0-e3ee-4dea-a702-ea609f5a10c5.json new file mode 100644 index 0000000000..c354af3283 --- /dev/null +++ b/integration-tests/openai/src/test/resources/mappings/chat_completions-741db9c0-e3ee-4dea-a702-ea609f5a10c5.json @@ -0,0 +1,43 @@ +{ + "id" : "741db9c0-e3ee-4dea-a702-ea609f5a10c5", + "name" : "chat_completions", + "request" : { + "url" : "/chat/completions", + "method" : "POST", + "bodyPatterns" : [ { + "equalToJson" : "{\"messages\":[{\"content\":\"I am a Camel and my species is Camelus Dromedarius.\",\"role\":\"user\"}],\"model\":\"gpt-5\"}", + "ignoreArrayOrder" : true, + "ignoreExtraElements" : true + } ] + }, + "response" : { + "status" : 200, + "body" : "{\n \"id\": \"chatcmpl-D6Ffyz4I0pRVRTXvgSDNRsRChSmW7\",\n \"object\": \"chat.completion\",\n \"created\": 1770382598,\n \"model\": \"gpt-5-2025-08-07\",\n \"choices\": [\n {\n \"index\": 0,\n \"message\": {\n \"role\": \"assistant\",\n \"content\": \"Hello, Camelus dromedarius! Nice to meet you. How can I help you today?\\n\\nOptions:\\n- Quick facts about dromedaries (diet, habitat, adaptations)\\n- A short story or monologue from your persp [...] + "headers" : { + "x-request-id" : "req_5c9f0c40ce964b55942182be48c41290", + "x-ratelimit-limit-tokens" : "500000", + "openai-organization" : "user-fc32zjefei81sjxkd0c7bqkx", + "CF-RAY" : "9c9acf054ee2fc6d-PRG", + "Server" : "cloudflare", + "X-Content-Type-Options" : "nosniff", + "x-ratelimit-reset-requests" : "120ms", + "x-openai-proxy-wasm" : "v0.1", + "x-ratelimit-remaining-tokens" : "499985", + "cf-cache-status" : "DYNAMIC", + "x-ratelimit-remaining-requests" : "499", + "Date" : "Fri, 06 Feb 2026 12:56:48 GMT", + "x-ratelimit-reset-tokens" : "1ms", + "access-control-expose-headers" : "X-Request-ID", + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains; preload", + "x-ratelimit-limit-requests" : "500", + "Set-Cookie" : [ "__cf_bm=vtW9uERXzdJf3BlggmoJn0cCfi.YT_TRnOXJjKX6Ek8-1770382608-1.0.1.1-XJ49x5qS7FoBecbW5Bu7I4YHUJjRNoInY6R5059k2Y.PfBS_kJ8gTUGlWnUCbmlF3iC1a5CVB8uG.INVMnAldOKCEqXkIJbLg5JFwxRfhOg; path=/; expires=Fri, 06-Feb-26 13:26:48 GMT; domain=.api.openai.com; HttpOnly; Secure; SameSite=None", "_cfuvid=tHSbpy4f35FNLJRI0VSwHmibgOcyefRprw3e8GGlJME-1770382608088-0.0.1.1-604800000; path=/; domain=.api.openai.com; HttpOnly; Secure; SameSite=None" ], + "openai-version" : "2020-10-01", + "openai-processing-ms" : "9881", + "alt-svc" : "h3=\":443\"; ma=86400", + "Content-Type" : "application/json" + } + }, + "uuid" : "741db9c0-e3ee-4dea-a702-ea609f5a10c5", + "persistent" : true, + "insertionIndex" : 8 +} \ No newline at end of file diff --git a/integration-tests/openai/src/test/resources/mappings/chat_completions-74689f85-f209-4129-b2c8-5e4d38c8eb54.json b/integration-tests/openai/src/test/resources/mappings/chat_completions-74689f85-f209-4129-b2c8-5e4d38c8eb54.json deleted file mode 100644 index 7d93275d04..0000000000 --- a/integration-tests/openai/src/test/resources/mappings/chat_completions-74689f85-f209-4129-b2c8-5e4d38c8eb54.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "id" : "74689f85-f209-4129-b2c8-5e4d38c8eb54", - "name" : "chat_completions", - "request" : { - "url" : "/chat/completions", - "method" : "POST", - "bodyPatterns" : [ { - "equalToJson" : "{\"messages\":[{\"content\":\"I am a Camel and my species is Camelus Dromedarius.\",\"role\":\"user\"}],\"model\":\"gpt-5\",\"temperature\":1.0}", - "ignoreArrayOrder" : true, - "ignoreExtraElements" : true - } ] - }, - "response" : { - "status" : 200, - "body" : "{\n \"id\": \"chatcmpl-D2acuKCizPKhRtRg7za2XobaULzIZ\",\n \"object\": \"chat.completion\",\n \"created\": 1769509820,\n \"model\": \"gpt-5-2025-08-07\",\n \"choices\": [\n {\n \"index\": 0,\n \"message\": {\n \"role\": \"assistant\",\n \"content\": \"Hello, noble dromedary (Camelus dromedarius)! The one‑humped desert specialist.\\n\\nQuick facts:\\n- Adapted to heat: can lose ~25% body water and rehydrate fast (up to ~100 liters).\\n- Hump st [...] - "headers" : { - "x-request-id" : "req_235a97c40a5946a2b4f47c7cac94fb73", - "x-ratelimit-limit-tokens" : "500000", - "openai-organization" : "user-nvrq0gduw4i0ooapnshoh6gw", - "CF-RAY" : "9c4792f3f89ec16b-LHR", - "Server" : "cloudflare", - "X-Content-Type-Options" : "nosniff", - "x-ratelimit-reset-requests" : "120ms", - "x-openai-proxy-wasm" : "v0.1", - "x-ratelimit-remaining-tokens" : "499985", - "cf-cache-status" : "DYNAMIC", - "x-ratelimit-remaining-requests" : "499", - "Date" : "Tue, 27 Jan 2026 10:30:40 GMT", - "x-ratelimit-reset-tokens" : "1ms", - "access-control-expose-headers" : "X-Request-ID", - "Strict-Transport-Security" : "max-age=31536000; includeSubDomains; preload", - "x-ratelimit-limit-requests" : "500", - "Set-Cookie" : [ "__cf_bm=33byza1OYC15qC511TZS_ytkkbXGjCsihf2Va75m_C8-1769509840-1.0.1.1-sWlxikX3h1CzbG8teJ.NIMKqaY9olMkhsGOwWTdUQ11VE9fnrHXw1pyHz7.VvD_de8N3UMVBNPkCtPBQR9wbiMwCJ.9XvESHkoDQf3RQli0; path=/; expires=Tue, 27-Jan-26 11:00:40 GMT; domain=.api.openai.com; HttpOnly; Secure; SameSite=None", "_cfuvid=kpNFQ_OqqCEUnWomGoWgeWYqAfsLVf9zPWIQ5NXN2S4-1769509840956-0.0.1.1-604800000; path=/; domain=.api.openai.com; HttpOnly; Secure; SameSite=None" ], - "openai-version" : "2020-10-01", - "openai-processing-ms" : "20843", - "alt-svc" : "h3=\":443\"; ma=86400", - "Content-Type" : "application/json" - } - }, - "uuid" : "74689f85-f209-4129-b2c8-5e4d38c8eb54", - "persistent" : true, - "insertionIndex" : 8 -} \ No newline at end of file diff --git a/integration-tests/openai/src/test/resources/mappings/chat_completions-9368b026-c5a6-4dc2-ad3a-d34eaa1c149b.json b/integration-tests/openai/src/test/resources/mappings/chat_completions-9368b026-c5a6-4dc2-ad3a-d34eaa1c149b.json deleted file mode 100644 index 31026d3387..0000000000 --- a/integration-tests/openai/src/test/resources/mappings/chat_completions-9368b026-c5a6-4dc2-ad3a-d34eaa1c149b.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "id" : "9368b026-c5a6-4dc2-ad3a-d34eaa1c149b", - "name" : "chat_completions", - "request" : { - "url" : "/chat/completions", - "method" : "POST", - "bodyPatterns" : [ { - "equalToJson" : "{\"messages\":[{\"content\":\"Create an example product description.\",\"role\":\"user\"}],\"model\":\"gpt-5\",\"response_format\":{\"json_schema\":{\"name\":\"camel_schema\",\"schema\":{\"type\":\"object\",\"properties\":{\"name\":{\"type\":\"string\"},\"price\":{\"type\":\"number\"}}}},\"type\":\"json_schema\"},\"temperature\":1.0}", - "ignoreArrayOrder" : true, - "ignoreExtraElements" : true - } ] - }, - "response" : { - "status" : 200, - "body" : "{\n \"id\": \"chatcmpl-D2adkRbYAuoCLZFmOSbydHCztd0Jx\",\n \"object\": \"chat.completion\",\n \"created\": 1769509872,\n \"model\": \"gpt-5-2025-08-07\",\n \"choices\": [\n {\n \"index\": 0,\n \"message\": {\n \"role\": \"assistant\",\n \"content\": \"{\\\"name\\\":\\\"Aurora Smart Mug (12 oz, Temperature-Controlled)\\\",\\\"price\\\":129.99}\",\n \"refusal\": null,\n \"annotations\": []\n },\n \"finish_reason\": \"stop [...] - "headers" : { - "x-request-id" : "req_c8cd80a34c514cf39a913625256dfb9c", - "x-ratelimit-limit-tokens" : "500000", - "openai-organization" : "user-nvrq0gduw4i0ooapnshoh6gw", - "CF-RAY" : "9c479440789735ca-LHR", - "Server" : "cloudflare", - "X-Content-Type-Options" : "nosniff", - "x-ratelimit-reset-requests" : "120ms", - "x-openai-proxy-wasm" : "v0.1", - "x-ratelimit-remaining-tokens" : "499988", - "cf-cache-status" : "DYNAMIC", - "x-ratelimit-remaining-requests" : "499", - "Date" : "Tue, 27 Jan 2026 10:31:31 GMT", - "x-ratelimit-reset-tokens" : "1ms", - "access-control-expose-headers" : "X-Request-ID", - "Strict-Transport-Security" : "max-age=31536000; includeSubDomains; preload", - "x-ratelimit-limit-requests" : "500", - "Set-Cookie" : [ "__cf_bm=d0AxkyftuYYziAnrqHz..8QdV9pLr63OWpq5cUnC.7k-1769509891-1.0.1.1-KGITVe8dMxwpFIZC5yByRG51C4L_Mvs81l7kheCwI5Q7oSbeGn8R5L3pHCwkISkMbWHsL4m115KnxUGo1h9kfgUvGUHrcbObZ3wpq0xza.M; path=/; expires=Tue, 27-Jan-26 11:01:31 GMT; domain=.api.openai.com; HttpOnly; Secure; SameSite=None", "_cfuvid=nMBpOA30JgxvHJZTVFpzf1SoQBJnneKeAZaEPqHIrTg-1769509891388-0.0.1.1-604800000; path=/; domain=.api.openai.com; HttpOnly; Secure; SameSite=None" ], - "openai-version" : "2020-10-01", - "openai-processing-ms" : "18380", - "alt-svc" : "h3=\":443\"; ma=86400", - "Content-Type" : "application/json" - } - }, - "uuid" : "9368b026-c5a6-4dc2-ad3a-d34eaa1c149b", - "persistent" : true, - "insertionIndex" : 4 -} \ No newline at end of file diff --git a/integration-tests/openai/src/test/resources/mappings/chat_completions-c2de863e-db3e-4692-968c-ab2b5bd4beaa.json b/integration-tests/openai/src/test/resources/mappings/chat_completions-c2de863e-db3e-4692-968c-ab2b5bd4beaa.json new file mode 100644 index 0000000000..94aa0c0e1e --- /dev/null +++ b/integration-tests/openai/src/test/resources/mappings/chat_completions-c2de863e-db3e-4692-968c-ab2b5bd4beaa.json @@ -0,0 +1,45 @@ +{ + "id" : "c2de863e-db3e-4692-968c-ab2b5bd4beaa", + "name" : "chat_completions", + "request" : { + "url" : "/chat/completions", + "method" : "POST", + "bodyPatterns" : [ { + "equalToJson" : "{\"messages\":[{\"content\":\"In one sentence, what is Apache Camel?\",\"role\":\"user\"}],\"model\":\"gpt-5\"}", + "ignoreArrayOrder" : true, + "ignoreExtraElements" : true + } ] + }, + "response" : { + "status" : 200, + "body" : "{\n \"id\": \"chatcmpl-D6FgMDJMTI1zej0c6RXdr4hzWr46a\",\n \"object\": \"chat.completion\",\n \"created\": 1770382622,\n \"model\": \"gpt-5-2025-08-07\",\n \"choices\": [\n {\n \"index\": 0,\n \"message\": {\n \"role\": \"assistant\",\n \"content\": \"Apache Camel is an open-source JVM-based integration framework that implements Enterprise Integration Patterns, providing a lightweight routing and mediation engine with hundreds of connectors an [...] + "headers" : { + "x-request-id" : "req_894c60a8dcf64dc3a67847e05374b8b1", + "x-ratelimit-limit-tokens" : "500000", + "openai-organization" : "user-fc32zjefei81sjxkd0c7bqkx", + "CF-RAY" : "9c9acf9deeae1e28-PRG", + "Server" : "cloudflare", + "X-Content-Type-Options" : "nosniff", + "x-ratelimit-reset-requests" : "120ms", + "x-openai-proxy-wasm" : "v0.1", + "x-ratelimit-remaining-tokens" : "499988", + "cf-cache-status" : "DYNAMIC", + "x-ratelimit-remaining-requests" : "499", + "Date" : "Fri, 06 Feb 2026 12:57:06 GMT", + "x-ratelimit-reset-tokens" : "1ms", + "access-control-expose-headers" : "X-Request-ID", + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains; preload", + "x-ratelimit-limit-requests" : "500", + "Set-Cookie" : [ "__cf_bm=2fPmtc9RdICp.NFbWsQ1AeQBkHZp_.pYxUyiCMpdDZE-1770382626-1.0.1.1-7E.n_ZkRK0Vepc0Qo0hpwcPqCJJtm2lG2CosQXf3ZWtOkiyDEzRaebljbVzIBti.lQba4FvoRrMMU2CGU0ZjkAkoZfU.bQvNqfJTcwb018I; path=/; expires=Fri, 06-Feb-26 13:27:06 GMT; domain=.api.openai.com; HttpOnly; Secure; SameSite=None", "_cfuvid=DGxsQQ19NXGNV_qb8MtkBt66tyQh.qKojcFibn7UO2Q-1770382626449-0.0.1.1-604800000; path=/; domain=.api.openai.com; HttpOnly; Secure; SameSite=None" ], + "openai-version" : "2020-10-01", + "openai-processing-ms" : "3885", + "alt-svc" : "h3=\":443\"; ma=86400", + "Content-Type" : "application/json" + } + }, + "uuid" : "c2de863e-db3e-4692-968c-ab2b5bd4beaa", + "persistent" : true, + "scenarioName" : "scenario-1-chat-completions", + "requiredScenarioState" : "scenario-1-chat-completions-2", + "insertionIndex" : 5 +} \ No newline at end of file diff --git a/integration-tests/openai/src/test/resources/mappings/chat_completions-e3409921-1e95-4efe-a299-cc8202215d5a.json b/integration-tests/openai/src/test/resources/mappings/chat_completions-e3409921-1e95-4efe-a299-cc8202215d5a.json new file mode 100644 index 0000000000..c49f5d3184 --- /dev/null +++ b/integration-tests/openai/src/test/resources/mappings/chat_completions-e3409921-1e95-4efe-a299-cc8202215d5a.json @@ -0,0 +1,43 @@ +{ + "id" : "e3409921-1e95-4efe-a299-cc8202215d5a", + "name" : "chat_completions", + "request" : { + "url" : "/chat/completions", + "method" : "POST", + "bodyPatterns" : [ { + "equalToJson" : "{\"messages\":[{\"content\":\"Create an example product description.\",\"role\":\"user\"}],\"model\":\"gpt-5\",\"response_format\":{\"json_schema\":{\"name\":\"camel_schema\",\"schema\":{\"type\":\"object\",\"properties\":{\"name\":{\"type\":\"string\"},\"price\":{\"type\":\"number\"}}}},\"type\":\"json_schema\"}}", + "ignoreArrayOrder" : true, + "ignoreExtraElements" : true + } ] + }, + "response" : { + "status" : 200, + "body" : "{\n \"id\": \"chatcmpl-D6FgQFP84kkJHFYIGmNRSuumMKs60\",\n \"object\": \"chat.completion\",\n \"created\": 1770382626,\n \"model\": \"gpt-5-2025-08-07\",\n \"choices\": [\n {\n \"index\": 0,\n \"message\": {\n \"role\": \"assistant\",\n \"content\": \"{\\\"name\\\":\\\"Nimbus Noise‑Cancelling Wireless Headphones\\\",\\\"price\\\":149.99}\",\n \"refusal\": null,\n \"annotations\": []\n },\n \"finish_reason\": \"stop\"\n [...] + "headers" : { + "x-request-id" : "req_3fb758d207124b90bd83b6000cba24b5", + "x-ratelimit-limit-tokens" : "500000", + "openai-organization" : "user-fc32zjefei81sjxkd0c7bqkx", + "CF-RAY" : "9c9acfb7df6d8a9b-PRG", + "Server" : "cloudflare", + "X-Content-Type-Options" : "nosniff", + "x-ratelimit-reset-requests" : "120ms", + "x-openai-proxy-wasm" : "v0.1", + "x-ratelimit-remaining-tokens" : "499988", + "cf-cache-status" : "DYNAMIC", + "x-ratelimit-remaining-requests" : "499", + "Date" : "Fri, 06 Feb 2026 12:57:15 GMT", + "x-ratelimit-reset-tokens" : "1ms", + "access-control-expose-headers" : "X-Request-ID", + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains; preload", + "x-ratelimit-limit-requests" : "500", + "Set-Cookie" : [ "__cf_bm=yuzjAErLURfyv9i3on9hnWhG5Obbm8F8DkMk2qaiXp4-1770382635-1.0.1.1-czYHL1V66cc50MxqZaX.HGhXdKLxIdtpqYHjz4CrpuXxUE6ze7JAbb84qYnqoRCaf66w71D_OKqycxI81x4FKKH7sGK38dkC.83C8mTnaxo; path=/; expires=Fri, 06-Feb-26 13:27:15 GMT; domain=.api.openai.com; HttpOnly; Secure; SameSite=None", "_cfuvid=rE.OOynH9e5aokJczm4.M6pdQm5.ysxClY810HiTlWo-1770382635697-0.0.1.1-604800000; path=/; domain=.api.openai.com; HttpOnly; Secure; SameSite=None" ], + "openai-version" : "2020-10-01", + "openai-processing-ms" : "8901", + "alt-svc" : "h3=\":443\"; ma=86400", + "Content-Type" : "application/json" + } + }, + "uuid" : "e3409921-1e95-4efe-a299-cc8202215d5a", + "persistent" : true, + "insertionIndex" : 4 +} \ No newline at end of file diff --git a/integration-tests/openai/src/test/resources/mappings/chat_completions-e61cd29d-a5ff-42ad-a4de-9975902e0f87.json b/integration-tests/openai/src/test/resources/mappings/chat_completions-e61cd29d-a5ff-42ad-a4de-9975902e0f87.json deleted file mode 100644 index b4181c6e27..0000000000 --- a/integration-tests/openai/src/test/resources/mappings/chat_completions-e61cd29d-a5ff-42ad-a4de-9975902e0f87.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "id" : "e61cd29d-a5ff-42ad-a4de-9975902e0f87", - "name" : "chat_completions", - "request" : { - "url" : "/chat/completions", - "method" : "POST", - "bodyPatterns" : [ { - "equalToJson" : "{\"messages\":[{\"content\":\"In one sentence, what is Apache Camel?\",\"role\":\"user\"}],\"model\":\"gpt-5\",\"temperature\":1.0}", - "ignoreArrayOrder" : true, - "ignoreExtraElements" : true - } ] - }, - "response" : { - "status" : 200, - "body" : "{\n \"id\": \"chatcmpl-D2adh1LgAqGNfZ25hExQ533tA6821\",\n \"object\": \"chat.completion\",\n \"created\": 1769509869,\n \"model\": \"gpt-5-2025-08-07\",\n \"choices\": [\n {\n \"index\": 0,\n \"message\": {\n \"role\": \"assistant\",\n \"content\": \"Apache Camel is an open-source integration framework that implements Enterprise Integration Patterns, providing a lightweight routing and mediation engine with a DSL and many components to connec [...] - "headers" : { - "x-request-id" : "req_fd57ef25ac39465dad43036765d84e03", - "x-ratelimit-limit-tokens" : "500000", - "openai-organization" : "user-nvrq0gduw4i0ooapnshoh6gw", - "CF-RAY" : "9c47942b8b1fc418-LHR", - "Server" : "cloudflare", - "X-Content-Type-Options" : "nosniff", - "x-ratelimit-reset-requests" : "120ms", - "x-openai-proxy-wasm" : "v0.1", - "x-ratelimit-remaining-tokens" : "499988", - "cf-cache-status" : "DYNAMIC", - "x-ratelimit-remaining-requests" : "499", - "Date" : "Tue, 27 Jan 2026 10:31:12 GMT", - "x-ratelimit-reset-tokens" : "1ms", - "access-control-expose-headers" : "X-Request-ID", - "Strict-Transport-Security" : "max-age=31536000; includeSubDomains; preload", - "x-ratelimit-limit-requests" : "500", - "Set-Cookie" : [ "__cf_bm=ymu_2KZQC_t.c3L3JOAbeixy9wtmC2xyPxxr7APetmw-1769509872-1.0.1.1-rN7ays_witJLb0asu6T5a747LRHyO5hFxHCe7upipi_vI.KVjQ26v8i7jnpXhmFN.j6Uh6mWCRV8Lw9mo58NAhs1mTkYS3KoDvMVFj2krfg; path=/; expires=Tue, 27-Jan-26 11:01:12 GMT; domain=.api.openai.com; HttpOnly; Secure; SameSite=None", "_cfuvid=MjSpddawvuLLIbFr1xePQ9B9VzLv1KFPhYOcvPeQYq4-1769509872549-0.0.1.1-604800000; path=/; domain=.api.openai.com; HttpOnly; Secure; SameSite=None" ], - "openai-version" : "2020-10-01", - "openai-processing-ms" : "2914", - "alt-svc" : "h3=\":443\"; ma=86400", - "Content-Type" : "application/json" - } - }, - "uuid" : "e61cd29d-a5ff-42ad-a4de-9975902e0f87", - "persistent" : true, - "scenarioName" : "scenario-1-chat-completions", - "requiredScenarioState" : "scenario-1-chat-completions-2", - "insertionIndex" : 5 -} \ No newline at end of file diff --git a/integration-tests/openai/src/test/resources/mappings/chat_completions-f0e11826-78d1-4bf6-988f-f6d31ae30e0b.json b/integration-tests/openai/src/test/resources/mappings/chat_completions-f0e11826-78d1-4bf6-988f-f6d31ae30e0b.json deleted file mode 100644 index dba12c5c4d..0000000000 --- a/integration-tests/openai/src/test/resources/mappings/chat_completions-f0e11826-78d1-4bf6-988f-f6d31ae30e0b.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "id" : "f0e11826-78d1-4bf6-988f-f6d31ae30e0b", - "name" : "chat_completions", - "request" : { - "url" : "/chat/completions", - "method" : "POST", - "bodyPatterns" : [ { - "equalToJson" : "{\"messages\":[{\"role\":\"assistant\",\"content\":\"Hello, noble dromedary (Camelus dromedarius)! The one‑humped desert specialist.\\n\\nQuick facts:\\n- Adapted to heat: can lose ~25% body water and rehydrate fast (up to ~100 liters).\\n- Hump stores fat for energy; not water.\\n- Three-chambered foregut fermenter; eats tough, thorny plants.\\n- Long lashes and closable nostrils keep out sand.\\n- Top speed ~65 km/h; good endurance around 40 km/h.\\n- Gestation ~ [...] - "ignoreArrayOrder" : true, - "ignoreExtraElements" : true - } ] - }, - "response" : { - "status" : 200, - "body" : "{\n \"id\": \"chatcmpl-D2adFTDPvRuxRRcmU1pPQDGGiQxyL\",\n \"object\": \"chat.completion\",\n \"created\": 1769509841,\n \"model\": \"gpt-5-2025-08-07\",\n \"choices\": [\n {\n \"index\": 0,\n \"message\": {\n \"role\": \"assistant\",\n \"content\": \"I can’t tell without a photo or details, but here’s a quick way to identify it—answer these and I’ll confirm:\\n\\n1) How many humps?\\n- One hump → Dromedary (Camelus dromedarius)\\n- Two humps [...] - "headers" : { - "x-request-id" : "req_3edf3b20977140a2a68d78a29f6307dd", - "x-ratelimit-limit-tokens" : "500000", - "openai-organization" : "user-nvrq0gduw4i0ooapnshoh6gw", - "CF-RAY" : "9c47937afc62946b-LHR", - "Server" : "cloudflare", - "X-Content-Type-Options" : "nosniff", - "x-ratelimit-reset-requests" : "120ms", - "x-openai-proxy-wasm" : "v0.1", - "x-ratelimit-remaining-tokens" : "499841", - "cf-cache-status" : "DYNAMIC", - "x-ratelimit-remaining-requests" : "499", - "Date" : "Tue, 27 Jan 2026 10:31:05 GMT", - "x-ratelimit-reset-tokens" : "19ms", - "access-control-expose-headers" : "X-Request-ID", - "Strict-Transport-Security" : "max-age=31536000; includeSubDomains; preload", - "x-ratelimit-limit-requests" : "500", - "Set-Cookie" : [ "__cf_bm=nfCEMBx8kR84HbjzNLM4sadXOLDwgVdaOpvzXlaK.8A-1769509865-1.0.1.1-v7K1nUcOBZQ1IWz1eA0rxZEGtUcrt7pfmwHkvwPSCZGofgLjDeLQNAwyAnAt6O73_fz2EVYXMEhEWUc8UPlnWSJLrecbC.CEYtqXKlsXC6Q; path=/; expires=Tue, 27-Jan-26 11:01:05 GMT; domain=.api.openai.com; HttpOnly; Secure; SameSite=None", "_cfuvid=Hwb3.ovfE31QNem57HVJNi3IvP9FuaLFzSpTz1ziU2M-1769509865016-0.0.1.1-604800000; path=/; domain=.api.openai.com; HttpOnly; Secure; SameSite=None" ], - "openai-version" : "2020-10-01", - "openai-processing-ms" : "23727", - "alt-svc" : "h3=\":443\"; ma=86400", - "Content-Type" : "application/json" - } - }, - "uuid" : "f0e11826-78d1-4bf6-988f-f6d31ae30e0b", - "persistent" : true, - "insertionIndex" : 7 -} \ No newline at end of file
