diff --git a/instrumentation/elastic-opentelemetry-instrumentation-openai/README.md b/instrumentation/elastic-opentelemetry-instrumentation-openai/README.md index 1e1008b..98ab69a 100644 --- a/instrumentation/elastic-opentelemetry-instrumentation-openai/README.md +++ b/instrumentation/elastic-opentelemetry-instrumentation-openai/README.md @@ -96,27 +96,38 @@ Integration tests default to using ollama, to avoid cost and leaking sensitive i However, unit test recordings should use the authoritative OpenAI platform unless the test is about a specific portability corner case. -To refresh a test, delete its cassette file in tests/cassettes and make sure you have the -following environment variables set for OpenAI recordings: +To refresh a test, delete its cassette file in tests/cassettes and make sure you have environment +variables set for recordings, detailed later. + +If writing a new test, start with the test logic with no assertions. If extending an existing unit test +rather than writing a new one, remove the corresponding recorded response from [cassettes](./tests/cassettes/) +instead. + +Then, run `pytest` as normal. It will execute a request against the LLM and record it. Update the +test with correct assertions until it passes. Following executions of `pytest` will use the recorded +response without querying the LLM. + +### OpenAI Environment Variables * `OPENAI_API_KEY` - from https://platform.openai.com/settings/profile?tab=api-keys * It should look like `sk-...` -and the following for Azure recordings, deployment url and api key are available for each deployment -in https://oai.azure.com/resource/deployments: +### Azure OpenAI Environment Variables + +Azure is different from OpenAI primarily in that a URL has an implicit model. This means it ignores +the model parameter set by the OpenAI SDK. The implication is that one endpoint cannot serve both +chat and embeddings at the same time. Hence, we need separate environment variables for chat and +embeddings. In either case, the `DEPLOYMENT_URL` is the "Endpoint Target URI" and the `API_KEY` is +the `Endpoint Key` for a corresponding deployment in https://oai.azure.com/resource/deployments * `AZURE_CHAT_COMPLETIONS_DEPLOYMENT_URL` + * It should look like https://endpoint.com/openai/deployments/my-deployment/chat/completions?api-version=2023-05-15 * `AZURE_CHAT_COMPLETIONS_API_KEY` + * It should be in hex like `abc01...` and possibly the same as `AZURE_EMBEDDINGS_API_KEY` * `AZURE_EMBEDDINGS_DEPLOYMENT_URL` + * It should look like https://endpoint.com/openai/deployments/my-deployment/embeddings?api-version=2023-05-15 * `AZURE_EMBEDDINGS_API_KEY` - -If writing a new test, start with the test logic with no assertions. If extending an existing unit test -rather than writing a new one, remove the corresponding recorded response from [cassettes](./tests/cassettes/) -instead. - -Then, run `pytest` as normal. It will execute a request against the LLM and record it. Update the -test with correct assertions until it passes. Following executions of `pytest` will use the recorded -response without querying the LLM. + * It should be in hex like `abc01...` and possibly the same as `AZURE_CHAT_COMPLETIONS_API_KEY` ## License diff --git a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_all_the_client_options[azure_provider_chat_completions].yaml b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_all_the_client_options[azure_provider_chat_completions].yaml index 9ccdbdc..0b7cbdc 100644 --- a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_all_the_client_options[azure_provider_chat_completions].yaml +++ b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_all_the_client_options[azure_provider_chat_completions].yaml @@ -1,9 +1,21 @@ interactions: - request: - body: '{"messages": [{"role": "user", "content": "Answer in up to 3 words: Which - ocean contains the falkland islands?"}], "model": "gpt-4o-mini", "frequency_penalty": - 0, "max_tokens": 100, "presence_penalty": 0, "stop": "foo", "temperature": 1, - "top_p": 1}' + body: |- + { + "messages": [ + { + "role": "user", + "content": "Answer in up to 3 words: Which ocean contains the falkland islands?" + } + ], + "model": "unused", + "frequency_penalty": 0, + "max_tokens": 100, + "presence_penalty": 0, + "stop": "foo", + "temperature": 1, + "top_p": 1 + } headers: accept: - application/json @@ -16,70 +28,133 @@ interactions: connection: - keep-alive content-length: - - '249' + - '244' content-type: - application/json host: - test.openai.azure.com user-agent: - - AzureOpenAI/Python 1.50.0 + - AzureOpenAI/Python 1.54.3 x-stainless-arch: - - x64 + - arm64 x-stainless-async: - 'false' x-stainless-lang: - python x-stainless-os: - - Linux + - MacOS x-stainless-package-version: - - 1.50.0 + - 1.54.3 x-stainless-retry-count: - '0' x-stainless-runtime: - CPython x-stainless-runtime-version: - - 3.10.12 + - 3.12.6 method: POST - uri: https://test.openai.azure.com/openai/deployments/test-azure-deployment/chat/completions?api-version=2023-03-15-preview + uri: https://test.openai.azure.com/openai/deployments/test-azure-deployment/chat/completions?api-version=2024-08-01-preview response: body: - string: '{"choices":[{"finish_reason":"stop","index":0,"message":{"content":"South - Atlantic Ocean.","role":"assistant"}}],"created":1727962531,"id":"chatcmpl-AEGHLLqYkgJxUgLgX8RCLeL85irQR","model":"gpt-4o-mini","object":"chat.completion","system_fingerprint":"fp_878413d04d","usage":{"completion_tokens":4,"prompt_tokens":24,"total_tokens":28}} - - ' + string: |- + { + "choices": [ + { + "content_filter_results": { + "hate": { + "filtered": false, + "severity": "safe" + }, + "self_harm": { + "filtered": false, + "severity": "safe" + }, + "sexual": { + "filtered": false, + "severity": "safe" + }, + "violence": { + "filtered": false, + "severity": "safe" + } + }, + "finish_reason": "stop", + "index": 0, + "logprobs": null, + "message": { + "content": "Atlantic Ocean", + "role": "assistant" + } + } + ], + "created": 1731466203, + "id": "chatcmpl-ASxkBZGOa53uXX1Ciygl77IrF8PbB", + "model": "gpt-4-32k", + "object": "chat.completion", + "prompt_filter_results": [ + { + "prompt_index": 0, + "content_filter_results": { + "hate": { + "filtered": false, + "severity": "safe" + }, + "self_harm": { + "filtered": false, + "severity": "safe" + }, + "sexual": { + "filtered": false, + "severity": "safe" + }, + "violence": { + "filtered": false, + "severity": "safe" + } + } + } + ], + "system_fingerprint": null, + "usage": { + "completion_tokens": 2, + "prompt_tokens": 24, + "total_tokens": 26 + } + } headers: + Cache-Control: + - no-cache, must-revalidate Content-Length: - - '336' + - '805' Content-Type: - application/json Date: - - Thu, 03 Oct 2024 13:35:31 GMT + - Wed, 13 Nov 2024 02:50:02 GMT Set-Cookie: test_set_cookie Strict-Transport-Security: - max-age=31536000; includeSubDomains; preload + access-control-allow-origin: + - '*' apim-request-id: - - c017b850-54f6-40dd-9505-d1a9ee9a45b5 + - f0e5ae5b-b609-4908-bedb-533ec71e9bfa azureml-model-session: - - d009-20240925074800 - openai-organization: test_openai_org_key + - d156-20241010120317 + openai-organization: test_openai_org_id x-accel-buffering: - 'no' x-content-type-options: - nosniff - x-envoy-upstream-service-time: - - '249' x-ms-client-request-id: - - c017b850-54f6-40dd-9505-d1a9ee9a45b5 + - f0e5ae5b-b609-4908-bedb-533ec71e9bfa x-ms-rai-invoked: - 'true' x-ms-region: - - East US + - Switzerland North x-ratelimit-remaining-requests: - - '909' + - '78' x-ratelimit-remaining-tokens: - - '90883' + - '79884' x-request-id: - - fba991b8-1a4f-4c6e-8a53-8b826a61a78a + - 3a1ee803-cce9-472f-ad04-2d0757009288 status: code: 200 message: OK diff --git a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_all_the_client_options[ollama_provider_chat_completions].yaml b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_all_the_client_options[ollama_provider_chat_completions].yaml index 316fc6a..fb66019 100644 --- a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_all_the_client_options[ollama_provider_chat_completions].yaml +++ b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_all_the_client_options[ollama_provider_chat_completions].yaml @@ -1,9 +1,21 @@ interactions: - request: - body: '{"messages": [{"role": "user", "content": "Answer in up to 3 words: Which - ocean contains the falkland islands?"}], "model": "qwen2.5:0.5b", "frequency_penalty": - 0, "max_completion_tokens": 100, "presence_penalty": 0, "stop": "foo", "temperature": - 1, "top_p": 1}' + body: |- + { + "messages": [ + { + "role": "user", + "content": "Answer in up to 3 words: Which ocean contains the falkland islands?" + } + ], + "model": "qwen2.5:0.5b", + "frequency_penalty": 0, + "max_tokens": 100, + "presence_penalty": 0, + "stop": "foo", + "temperature": 1, + "top_p": 1 + } headers: accept: - application/json @@ -14,44 +26,63 @@ interactions: connection: - keep-alive content-length: - - '261' + - '250' content-type: - application/json host: - localhost:11434 user-agent: - - OpenAI/Python 1.50.0 + - OpenAI/Python 1.50.2 x-stainless-arch: - - x64 + - arm64 x-stainless-async: - 'false' x-stainless-lang: - python x-stainless-os: - - Linux + - MacOS x-stainless-package-version: - - 1.50.0 + - 1.50.2 x-stainless-retry-count: - '0' x-stainless-runtime: - CPython x-stainless-runtime-version: - - 3.10.12 + - 3.12.6 method: POST uri: http://localhost:11434/v1/chat/completions response: body: - string: '{"id":"chatcmpl-398","object":"chat.completion","created":1727962341,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"message":{"role":"assistant","content":"The - Great British Oceanic Peninsula."},"finish_reason":"stop"}],"usage":{"prompt_tokens":46,"completion_tokens":8,"total_tokens":54}} - - ' + string: |- + { + "id": "chatcmpl-46", + "object": "chat.completion", + "created": 1731311779, + "model": "qwen2.5:0.5b", + "system_fingerprint": "fp_ollama", + "choices": [ + { + "index": 0, + "message": { + "role": "assistant", + "content": "The Falklands Islands are located in Atlantic Oceans." + }, + "finish_reason": "stop" + } + ], + "usage": { + "prompt_tokens": 46, + "completion_tokens": 12, + "total_tokens": 58 + } + } headers: Content-Length: - - '322' + - '339' Content-Type: - application/json Date: - - Thu, 03 Oct 2024 13:32:21 GMT + - Mon, 11 Nov 2024 07:56:19 GMT Set-Cookie: test_set_cookie openai-organization: test_openai_org_key status: diff --git a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_all_the_client_options[openai_provider_chat_completions].yaml b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_all_the_client_options[openai_provider_chat_completions].yaml index ac2d32e..10ac250 100644 --- a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_all_the_client_options[openai_provider_chat_completions].yaml +++ b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_all_the_client_options[openai_provider_chat_completions].yaml @@ -1,9 +1,21 @@ interactions: - request: - body: '{"messages": [{"role": "user", "content": "Answer in up to 3 words: Which - ocean contains the falkland islands?"}], "model": "gpt-4o-mini", "frequency_penalty": - 0, "max_completion_tokens": 100, "presence_penalty": 0, "stop": "foo", "temperature": - 1, "top_p": 1}' + body: |- + { + "messages": [ + { + "role": "user", + "content": "Answer in up to 3 words: Which ocean contains the falkland islands?" + } + ], + "model": "gpt-4o-mini", + "frequency_penalty": 0, + "max_tokens": 100, + "presence_penalty": 0, + "stop": "foo", + "temperature": 1, + "top_p": 1 + } headers: accept: - application/json @@ -14,53 +26,79 @@ interactions: connection: - keep-alive content-length: - - '260' + - '249' content-type: - application/json host: - api.openai.com user-agent: - - OpenAI/Python 1.50.0 + - OpenAI/Python 1.54.3 x-stainless-arch: - - x64 + - arm64 x-stainless-async: - 'false' x-stainless-lang: - python x-stainless-os: - - Linux + - MacOS x-stainless-package-version: - - 1.50.0 + - 1.54.3 x-stainless-retry-count: - '0' x-stainless-runtime: - CPython x-stainless-runtime-version: - - 3.10.12 + - 3.12.6 method: POST uri: https://api.openai.com/v1/chat/completions response: body: - string: "{\n \"id\": \"chatcmpl-AEGEFRHEOGpX0H3Nx84zgOEbJ8g6Y\",\n \"object\": - \"chat.completion\",\n \"created\": 1727962339,\n \"model\": \"gpt-4o-mini-2024-07-18\",\n - \ \"choices\": [\n {\n \"index\": 0,\n \"message\": {\n \"role\": - \"assistant\",\n \"content\": \"South Atlantic Ocean.\",\n \"refusal\": - null\n },\n \"logprobs\": null,\n \"finish_reason\": \"stop\"\n - \ }\n ],\n \"usage\": {\n \"prompt_tokens\": 24,\n \"completion_tokens\": - 4,\n \"total_tokens\": 28,\n \"prompt_tokens_details\": {\n \"cached_tokens\": - 0\n },\n \"completion_tokens_details\": {\n \"reasoning_tokens\": - 0\n }\n },\n \"system_fingerprint\": \"fp_74ba47b4ac\"\n}\n" + string: |- + { + "id": "chatcmpl-ASfa7XMQNQ9K4GKZSSrBU3zSmIyx5", + "object": "chat.completion", + "created": 1731396387, + "model": "gpt-4o-mini-2024-07-18", + "choices": [ + { + "index": 0, + "message": { + "role": "assistant", + "content": "South Atlantic Ocean.", + "refusal": null + }, + "logprobs": null, + "finish_reason": "stop" + } + ], + "usage": { + "prompt_tokens": 24, + "completion_tokens": 4, + "total_tokens": 28, + "prompt_tokens_details": { + "cached_tokens": 0, + "audio_tokens": 0 + }, + "completion_tokens_details": { + "reasoning_tokens": 0, + "audio_tokens": 0, + "accepted_prediction_tokens": 0, + "rejected_prediction_tokens": 0 + } + }, + "system_fingerprint": "fp_0ba0d124f1" + } headers: CF-Cache-Status: - DYNAMIC CF-RAY: - - 8ccd4c2c8867baa3-MXP + - 8e14cb399f01ce22-SIN Connection: - keep-alive Content-Type: - application/json Date: - - Thu, 03 Oct 2024 13:32:19 GMT + - Tue, 12 Nov 2024 07:26:27 GMT Server: - cloudflare Set-Cookie: test_set_cookie @@ -70,11 +108,13 @@ interactions: - nosniff access-control-expose-headers: - X-Request-ID + alt-svc: + - h3=":443"; ma=86400 content-length: - - '643' + - '771' openai-organization: test_openai_org_key openai-processing-ms: - - '172' + - '361' openai-version: - '2020-10-01' strict-transport-security: @@ -84,15 +124,15 @@ interactions: x-ratelimit-limit-tokens: - '200000' x-ratelimit-remaining-requests: - - '9999' + - '9998' x-ratelimit-remaining-tokens: - - '199966' + - '199882' x-ratelimit-reset-requests: - - 8.64s + - 16.631s x-ratelimit-reset-tokens: - - 10ms + - 35ms x-request-id: - - req_52bb30269bd34cf18e783d9b405dac00 + - req_120179cc582bf2745ab0b81a089ea639 status: code: 200 message: OK diff --git a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_async_basic[azure_provider_chat_completions].yaml b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_async_basic[azure_provider_chat_completions].yaml index 41a2891..dd757dd 100644 --- a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_async_basic[azure_provider_chat_completions].yaml +++ b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_async_basic[azure_provider_chat_completions].yaml @@ -1,7 +1,15 @@ interactions: - request: - body: '{"messages": [{"role": "user", "content": "Answer in up to 3 words: Which - ocean contains the falkland islands?"}], "model": "gpt-4o-mini"}' + body: |- + { + "messages": [ + { + "role": "user", + "content": "Answer in up to 3 words: Which ocean contains the falkland islands?" + } + ], + "model": "unused" + } headers: accept: - application/json @@ -14,70 +22,133 @@ interactions: connection: - keep-alive content-length: - - '138' + - '133' content-type: - application/json host: - test.openai.azure.com user-agent: - - AsyncAzureOpenAI/Python 1.50.0 + - AsyncAzureOpenAI/Python 1.54.3 x-stainless-arch: - - x64 + - arm64 x-stainless-async: - async:asyncio x-stainless-lang: - python x-stainless-os: - - Linux + - MacOS x-stainless-package-version: - - 1.50.0 + - 1.54.3 x-stainless-retry-count: - '0' x-stainless-runtime: - CPython x-stainless-runtime-version: - - 3.10.12 + - 3.12.6 method: POST - uri: https://test.openai.azure.com/openai/deployments/test-azure-deployment/chat/completions?api-version=2023-03-15-preview + uri: https://test.openai.azure.com/openai/deployments/test-azure-deployment/chat/completions?api-version=2024-08-01-preview response: body: - string: '{"choices":[{"finish_reason":"stop","index":0,"message":{"content":"South - Atlantic Ocean.","role":"assistant"}}],"created":1727964734,"id":"chatcmpl-AEGqs0IFKsicvFYSaiyWFpZVr6OHe","model":"gpt-4o-mini","object":"chat.completion","system_fingerprint":"fp_878413d04d","usage":{"completion_tokens":4,"prompt_tokens":24,"total_tokens":28}} - - ' + string: |- + { + "choices": [ + { + "content_filter_results": { + "hate": { + "filtered": false, + "severity": "safe" + }, + "self_harm": { + "filtered": false, + "severity": "safe" + }, + "sexual": { + "filtered": false, + "severity": "safe" + }, + "violence": { + "filtered": false, + "severity": "safe" + } + }, + "finish_reason": "stop", + "index": 0, + "logprobs": null, + "message": { + "content": "Atlantic Ocean", + "role": "assistant" + } + } + ], + "created": 1731466219, + "id": "chatcmpl-ASxkRs5B2H6Nyi9F1xV78yBVkiBbi", + "model": "gpt-4-32k", + "object": "chat.completion", + "prompt_filter_results": [ + { + "prompt_index": 0, + "content_filter_results": { + "hate": { + "filtered": false, + "severity": "safe" + }, + "self_harm": { + "filtered": false, + "severity": "safe" + }, + "sexual": { + "filtered": false, + "severity": "safe" + }, + "violence": { + "filtered": false, + "severity": "safe" + } + } + } + ], + "system_fingerprint": null, + "usage": { + "completion_tokens": 2, + "prompt_tokens": 24, + "total_tokens": 26 + } + } headers: + Cache-Control: + - no-cache, must-revalidate Content-Length: - - '336' + - '805' Content-Type: - application/json Date: - - Thu, 03 Oct 2024 14:12:13 GMT + - Wed, 13 Nov 2024 02:50:19 GMT Set-Cookie: test_set_cookie Strict-Transport-Security: - max-age=31536000; includeSubDomains; preload + access-control-allow-origin: + - '*' apim-request-id: - - 120798e0-3e81-4492-881e-f03f9a6c6195 + - 230cd9b4-7a13-465b-8fdf-63a73dca9329 azureml-model-session: - - d010-20240925083720 - openai-organization: test_openai_org_key + - d160-20241010151341 + openai-organization: test_openai_org_id x-accel-buffering: - 'no' x-content-type-options: - nosniff - x-envoy-upstream-service-time: - - '203' x-ms-client-request-id: - - 120798e0-3e81-4492-881e-f03f9a6c6195 + - 230cd9b4-7a13-465b-8fdf-63a73dca9329 x-ms-rai-invoked: - 'true' x-ms-region: - - East US + - Switzerland North x-ratelimit-remaining-requests: - - '909' + - '72' x-ratelimit-remaining-tokens: - - '90343' + - '79676' x-request-id: - - c668fdd4-14a6-4033-aa51-ac196c8f6133 + - 931875ce-e959-432a-ae4d-36dbc949ab73 status: code: 200 message: OK diff --git a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_async_basic[ollama_provider_chat_completions].yaml b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_async_basic[ollama_provider_chat_completions].yaml index 4986777..aa92242 100644 --- a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_async_basic[ollama_provider_chat_completions].yaml +++ b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_async_basic[ollama_provider_chat_completions].yaml @@ -1,7 +1,15 @@ interactions: - request: - body: '{"messages": [{"role": "user", "content": "Answer in up to 3 words: Which - ocean contains the falkland islands?"}], "model": "qwen2.5:0.5b"}' + body: |- + { + "messages": [ + { + "role": "user", + "content": "Answer in up to 3 words: Which ocean contains the falkland islands?" + } + ], + "model": "qwen2.5:0.5b" + } headers: accept: - application/json @@ -18,38 +26,57 @@ interactions: host: - localhost:11434 user-agent: - - AsyncOpenAI/Python 1.50.0 + - AsyncOpenAI/Python 1.50.2 x-stainless-arch: - - x64 + - arm64 x-stainless-async: - async:asyncio x-stainless-lang: - python x-stainless-os: - - Linux + - MacOS x-stainless-package-version: - - 1.50.0 + - 1.50.2 x-stainless-retry-count: - '0' x-stainless-runtime: - CPython x-stainless-runtime-version: - - 3.10.12 + - 3.12.6 method: POST uri: http://localhost:11434/v1/chat/completions response: body: - string: '{"id":"chatcmpl-425","object":"chat.completion","created":1727964736,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"message":{"role":"assistant","content":"Atlantic - Ocean"},"finish_reason":"stop"}],"usage":{"prompt_tokens":46,"completion_tokens":3,"total_tokens":49}} - - ' + string: |- + { + "id": "chatcmpl-95", + "object": "chat.completion", + "created": 1731311784, + "model": "qwen2.5:0.5b", + "system_fingerprint": "fp_ollama", + "choices": [ + { + "index": 0, + "message": { + "role": "assistant", + "content": "The Falkland Islands belong to Argentina." + }, + "finish_reason": "stop" + } + ], + "usage": { + "prompt_tokens": 46, + "completion_tokens": 9, + "total_tokens": 55 + } + } headers: Content-Length: - - '300' + - '326' Content-Type: - application/json Date: - - Thu, 03 Oct 2024 14:12:16 GMT + - Mon, 11 Nov 2024 07:56:24 GMT Set-Cookie: test_set_cookie openai-organization: test_openai_org_key status: diff --git a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_async_basic[openai_provider_chat_completions].yaml b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_async_basic[openai_provider_chat_completions].yaml index 9e51dc3..00839bf 100644 --- a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_async_basic[openai_provider_chat_completions].yaml +++ b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_async_basic[openai_provider_chat_completions].yaml @@ -1,7 +1,15 @@ interactions: - request: - body: '{"messages": [{"role": "user", "content": "Answer in up to 3 words: Which - ocean contains the falkland islands?"}], "model": "gpt-4o-mini"}' + body: |- + { + "messages": [ + { + "role": "user", + "content": "Answer in up to 3 words: Which ocean contains the falkland islands?" + } + ], + "model": "gpt-4o-mini" + } headers: accept: - application/json @@ -18,47 +26,73 @@ interactions: host: - api.openai.com user-agent: - - AsyncOpenAI/Python 1.50.0 + - AsyncOpenAI/Python 1.54.3 x-stainless-arch: - - x64 + - arm64 x-stainless-async: - async:asyncio x-stainless-lang: - python x-stainless-os: - - Linux + - MacOS x-stainless-package-version: - - 1.50.0 + - 1.54.3 x-stainless-retry-count: - '0' x-stainless-runtime: - CPython x-stainless-runtime-version: - - 3.10.12 + - 3.12.6 method: POST uri: https://api.openai.com/v1/chat/completions response: body: - string: "{\n \"id\": \"chatcmpl-AEGqstM7lJ74sLzKJxMyhZZJixowh\",\n \"object\": - \"chat.completion\",\n \"created\": 1727964734,\n \"model\": \"gpt-4o-mini-2024-07-18\",\n - \ \"choices\": [\n {\n \"index\": 0,\n \"message\": {\n \"role\": - \"assistant\",\n \"content\": \"South Atlantic Ocean.\",\n \"refusal\": - null\n },\n \"logprobs\": null,\n \"finish_reason\": \"stop\"\n - \ }\n ],\n \"usage\": {\n \"prompt_tokens\": 24,\n \"completion_tokens\": - 4,\n \"total_tokens\": 28,\n \"prompt_tokens_details\": {\n \"cached_tokens\": - 0\n },\n \"completion_tokens_details\": {\n \"reasoning_tokens\": - 0\n }\n },\n \"system_fingerprint\": \"fp_f85bea6784\"\n}\n" + string: |- + { + "id": "chatcmpl-ASfaN2cUXcaAFQ7uFS83Kuvc0iKdp", + "object": "chat.completion", + "created": 1731396403, + "model": "gpt-4o-mini-2024-07-18", + "choices": [ + { + "index": 0, + "message": { + "role": "assistant", + "content": "South Atlantic Ocean.", + "refusal": null + }, + "logprobs": null, + "finish_reason": "stop" + } + ], + "usage": { + "prompt_tokens": 24, + "completion_tokens": 4, + "total_tokens": 28, + "prompt_tokens_details": { + "cached_tokens": 0, + "audio_tokens": 0 + }, + "completion_tokens_details": { + "reasoning_tokens": 0, + "audio_tokens": 0, + "accepted_prediction_tokens": 0, + "rejected_prediction_tokens": 0 + } + }, + "system_fingerprint": "fp_0ba0d124f1" + } headers: CF-Cache-Status: - DYNAMIC CF-RAY: - - 8ccd86a298050e5e-MXP + - 8e14cb9f28152eb6-SIN Connection: - keep-alive Content-Type: - application/json Date: - - Thu, 03 Oct 2024 14:12:14 GMT + - Tue, 12 Nov 2024 07:26:43 GMT Server: - cloudflare Set-Cookie: test_set_cookie @@ -68,11 +102,13 @@ interactions: - nosniff access-control-expose-headers: - X-Request-ID + alt-svc: + - h3=":443"; ma=86400 content-length: - - '643' + - '771' openai-organization: test_openai_org_key openai-processing-ms: - - '125' + - '357' openai-version: - '2020-10-01' strict-transport-security: @@ -82,15 +118,15 @@ interactions: x-ratelimit-limit-tokens: - '200000' x-ratelimit-remaining-requests: - - '9999' + - '9984' x-ratelimit-remaining-tokens: - '199966' x-ratelimit-reset-requests: - - 8.64s + - 2m9.973s x-ratelimit-reset-tokens: - 10ms x-request-id: - - req_9602b00f6e97ba89d9559b67a68016f2 + - req_8dac16cb50ad07741b1ce2a55e441f49 status: code: 200 message: OK diff --git a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_async_basic_with_capture_message_content[azure_provider_chat_completions].yaml b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_async_basic_with_capture_message_content[azure_provider_chat_completions].yaml index c0e93eb..e1fcb26 100644 --- a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_async_basic_with_capture_message_content[azure_provider_chat_completions].yaml +++ b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_async_basic_with_capture_message_content[azure_provider_chat_completions].yaml @@ -1,7 +1,15 @@ interactions: - request: - body: '{"messages": [{"role": "user", "content": "Answer in up to 3 words: Which - ocean contains the falkland islands?"}], "model": "gpt-4o-mini"}' + body: |- + { + "messages": [ + { + "role": "user", + "content": "Answer in up to 3 words: Which ocean contains the falkland islands?" + } + ], + "model": "unused" + } headers: accept: - application/json @@ -14,70 +22,133 @@ interactions: connection: - keep-alive content-length: - - '138' + - '133' content-type: - application/json host: - test.openai.azure.com user-agent: - - AsyncAzureOpenAI/Python 1.50.0 + - AsyncAzureOpenAI/Python 1.54.3 x-stainless-arch: - - x64 + - arm64 x-stainless-async: - async:asyncio x-stainless-lang: - python x-stainless-os: - - Linux + - MacOS x-stainless-package-version: - - 1.50.0 + - 1.54.3 x-stainless-retry-count: - '0' x-stainless-runtime: - CPython x-stainless-runtime-version: - - 3.10.12 + - 3.12.6 method: POST - uri: https://test.openai.azure.com/openai/deployments/test-azure-deployment/chat/completions?api-version=2023-03-15-preview + uri: https://test.openai.azure.com/openai/deployments/test-azure-deployment/chat/completions?api-version=2024-08-01-preview response: body: - string: '{"choices":[{"finish_reason":"stop","index":0,"message":{"content":"South - Atlantic Ocean.","role":"assistant"}}],"created":1727964737,"id":"chatcmpl-AEGqv0J1RJgG477zKEayzIFWtBfoN","model":"gpt-4o-mini","object":"chat.completion","system_fingerprint":"fp_878413d04d","usage":{"completion_tokens":4,"prompt_tokens":24,"total_tokens":28}} - - ' + string: |- + { + "choices": [ + { + "content_filter_results": { + "hate": { + "filtered": false, + "severity": "safe" + }, + "self_harm": { + "filtered": false, + "severity": "safe" + }, + "sexual": { + "filtered": false, + "severity": "safe" + }, + "violence": { + "filtered": false, + "severity": "safe" + } + }, + "finish_reason": "stop", + "index": 0, + "logprobs": null, + "message": { + "content": "Atlantic Ocean", + "role": "assistant" + } + } + ], + "created": 1731468960, + "id": "chatcmpl-ASySeHu4TgKtlulOVp4LU8yTNRvoM", + "model": "gpt-4-32k", + "object": "chat.completion", + "prompt_filter_results": [ + { + "prompt_index": 0, + "content_filter_results": { + "hate": { + "filtered": false, + "severity": "safe" + }, + "self_harm": { + "filtered": false, + "severity": "safe" + }, + "sexual": { + "filtered": false, + "severity": "safe" + }, + "violence": { + "filtered": false, + "severity": "safe" + } + } + } + ], + "system_fingerprint": null, + "usage": { + "completion_tokens": 2, + "prompt_tokens": 24, + "total_tokens": 26 + } + } headers: + Cache-Control: + - no-cache, must-revalidate Content-Length: - - '336' + - '805' Content-Type: - application/json Date: - - Thu, 03 Oct 2024 14:12:17 GMT + - Wed, 13 Nov 2024 03:36:00 GMT Set-Cookie: test_set_cookie Strict-Transport-Security: - max-age=31536000; includeSubDomains; preload + access-control-allow-origin: + - '*' apim-request-id: - - 7a43e9ed-16ef-43a6-8f7b-b3cc2de1467a + - 38407302-010e-4318-8ba2-cd1c61e474c5 azureml-model-session: - - d008-20240925065407 - openai-organization: test_openai_org_key + - d156-20241010120317 + openai-organization: test_openai_org_id x-accel-buffering: - 'no' x-content-type-options: - nosniff - x-envoy-upstream-service-time: - - '214' x-ms-client-request-id: - - 7a43e9ed-16ef-43a6-8f7b-b3cc2de1467a + - 38407302-010e-4318-8ba2-cd1c61e474c5 x-ms-rai-invoked: - 'true' x-ms-region: - - East US + - Switzerland North x-ratelimit-remaining-requests: - - '908' + - '79' x-ratelimit-remaining-tokens: - - '89686' + - '79968' x-request-id: - - 500ce7ae-2708-4d07-9d79-b2a91edd6643 + - 3910c5ca-854a-481d-b76c-e4140883c952 status: code: 200 message: OK diff --git a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_async_basic_with_capture_message_content[ollama_provider_chat_completions].yaml b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_async_basic_with_capture_message_content[ollama_provider_chat_completions].yaml index ab9aa85..b2e071a 100644 --- a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_async_basic_with_capture_message_content[ollama_provider_chat_completions].yaml +++ b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_async_basic_with_capture_message_content[ollama_provider_chat_completions].yaml @@ -1,7 +1,15 @@ interactions: - request: - body: '{"messages": [{"role": "user", "content": "Answer in up to 3 words: Which - ocean contains the falkland islands?"}], "model": "qwen2.5:0.5b"}' + body: |- + { + "messages": [ + { + "role": "user", + "content": "Answer in up to 3 words: Which ocean contains the falkland islands?" + } + ], + "model": "qwen2.5:0.5b" + } headers: accept: - application/json @@ -18,37 +26,57 @@ interactions: host: - localhost:11434 user-agent: - - AsyncOpenAI/Python 1.50.0 + - AsyncOpenAI/Python 1.50.2 x-stainless-arch: - - x64 + - arm64 x-stainless-async: - async:asyncio x-stainless-lang: - python x-stainless-os: - - Linux + - MacOS x-stainless-package-version: - - 1.50.0 + - 1.50.2 x-stainless-retry-count: - '0' x-stainless-runtime: - CPython x-stainless-runtime-version: - - 3.10.12 + - 3.12.6 method: POST uri: http://localhost:11434/v1/chat/completions response: body: - string: '{"id":"chatcmpl-280","object":"chat.completion","created":1727964738,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"message":{"role":"assistant","content":"Antarctica"},"finish_reason":"stop"}],"usage":{"prompt_tokens":46,"completion_tokens":4,"total_tokens":50}} - - ' + string: |- + { + "id": "chatcmpl-816", + "object": "chat.completion", + "created": 1731311784, + "model": "qwen2.5:0.5b", + "system_fingerprint": "fp_ollama", + "choices": [ + { + "index": 0, + "message": { + "role": "assistant", + "content": "Antarctica ocean." + }, + "finish_reason": "stop" + } + ], + "usage": { + "prompt_tokens": 46, + "completion_tokens": 6, + "total_tokens": 52 + } + } headers: Content-Length: - - '296' + - '303' Content-Type: - application/json Date: - - Thu, 03 Oct 2024 14:12:18 GMT + - Mon, 11 Nov 2024 07:56:24 GMT Set-Cookie: test_set_cookie openai-organization: test_openai_org_key status: diff --git a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_async_basic_with_capture_message_content[openai_provider_chat_completions].yaml b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_async_basic_with_capture_message_content[openai_provider_chat_completions].yaml index 831391d..6998876 100644 --- a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_async_basic_with_capture_message_content[openai_provider_chat_completions].yaml +++ b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_async_basic_with_capture_message_content[openai_provider_chat_completions].yaml @@ -1,7 +1,15 @@ interactions: - request: - body: '{"messages": [{"role": "user", "content": "Answer in up to 3 words: Which - ocean contains the falkland islands?"}], "model": "gpt-4o-mini"}' + body: |- + { + "messages": [ + { + "role": "user", + "content": "Answer in up to 3 words: Which ocean contains the falkland islands?" + } + ], + "model": "gpt-4o-mini" + } headers: accept: - application/json @@ -18,47 +26,73 @@ interactions: host: - api.openai.com user-agent: - - AsyncOpenAI/Python 1.50.0 + - AsyncOpenAI/Python 1.54.3 x-stainless-arch: - - x64 + - arm64 x-stainless-async: - async:asyncio x-stainless-lang: - python x-stainless-os: - - Linux + - MacOS x-stainless-package-version: - - 1.50.0 + - 1.54.3 x-stainless-retry-count: - '0' x-stainless-runtime: - CPython x-stainless-runtime-version: - - 3.10.12 + - 3.12.6 method: POST uri: https://api.openai.com/v1/chat/completions response: body: - string: "{\n \"id\": \"chatcmpl-AEGquKdflabT1q3yPFXFggu0hn6Cg\",\n \"object\": - \"chat.completion\",\n \"created\": 1727964736,\n \"model\": \"gpt-4o-mini-2024-07-18\",\n - \ \"choices\": [\n {\n \"index\": 0,\n \"message\": {\n \"role\": - \"assistant\",\n \"content\": \"South Atlantic Ocean.\",\n \"refusal\": - null\n },\n \"logprobs\": null,\n \"finish_reason\": \"stop\"\n - \ }\n ],\n \"usage\": {\n \"prompt_tokens\": 24,\n \"completion_tokens\": - 4,\n \"total_tokens\": 28,\n \"prompt_tokens_details\": {\n \"cached_tokens\": - 0\n },\n \"completion_tokens_details\": {\n \"reasoning_tokens\": - 0\n }\n },\n \"system_fingerprint\": \"fp_f85bea6784\"\n}\n" + string: |- + { + "id": "chatcmpl-ASfaOHHT6qOYpFc5M7uzSkgfXnnpJ", + "object": "chat.completion", + "created": 1731396404, + "model": "gpt-4o-mini-2024-07-18", + "choices": [ + { + "index": 0, + "message": { + "role": "assistant", + "content": "South Atlantic Ocean.", + "refusal": null + }, + "logprobs": null, + "finish_reason": "stop" + } + ], + "usage": { + "prompt_tokens": 24, + "completion_tokens": 4, + "total_tokens": 28, + "prompt_tokens_details": { + "cached_tokens": 0, + "audio_tokens": 0 + }, + "completion_tokens_details": { + "reasoning_tokens": 0, + "audio_tokens": 0, + "accepted_prediction_tokens": 0, + "rejected_prediction_tokens": 0 + } + }, + "system_fingerprint": "fp_0ba0d124f1" + } headers: CF-Cache-Status: - DYNAMIC CF-RAY: - - 8ccd86b28aea0e5a-MXP + - 8e14cba439f0ce22-SIN Connection: - keep-alive Content-Type: - application/json Date: - - Thu, 03 Oct 2024 14:12:17 GMT + - Tue, 12 Nov 2024 07:26:44 GMT Server: - cloudflare Set-Cookie: test_set_cookie @@ -68,11 +102,13 @@ interactions: - nosniff access-control-expose-headers: - X-Request-ID + alt-svc: + - h3=":443"; ma=86400 content-length: - - '643' + - '771' openai-organization: test_openai_org_key openai-processing-ms: - - '411' + - '213' openai-version: - '2020-10-01' strict-transport-security: @@ -82,15 +118,15 @@ interactions: x-ratelimit-limit-tokens: - '200000' x-ratelimit-remaining-requests: - - '9998' + - '9984' x-ratelimit-remaining-tokens: - '199966' x-ratelimit-reset-requests: - - 14.731s + - 2m17.802s x-ratelimit-reset-tokens: - 10ms x-request-id: - - req_0b79cfb4cff6e27693a5278876194bb4 + - req_e6b1a7306539cbcad166c1907ae46d4f status: code: 200 message: OK diff --git a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_async_basic_with_capture_message_content_log_events[azure_provider_chat_completions].yaml b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_async_basic_with_capture_message_content_log_events[azure_provider_chat_completions].yaml index 5567e0b..754b043 100644 --- a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_async_basic_with_capture_message_content_log_events[azure_provider_chat_completions].yaml +++ b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_async_basic_with_capture_message_content_log_events[azure_provider_chat_completions].yaml @@ -1,7 +1,15 @@ interactions: - request: - body: '{"messages": [{"role": "user", "content": "Answer in up to 3 words: Which - ocean contains the falkland islands?"}], "model": "gpt-4o-mini"}' + body: |- + { + "messages": [ + { + "role": "user", + "content": "Answer in up to 3 words: Which ocean contains the falkland islands?" + } + ], + "model": "unused" + } headers: accept: - application/json @@ -14,68 +22,133 @@ interactions: connection: - keep-alive content-length: - - '138' + - '133' content-type: - application/json host: - test.openai.azure.com user-agent: - - AsyncAzureOpenAI/Python 1.34.0 + - AsyncAzureOpenAI/Python 1.54.3 x-stainless-arch: - - x64 + - arm64 x-stainless-async: - async:asyncio x-stainless-lang: - python x-stainless-os: - - Linux + - MacOS x-stainless-package-version: - - 1.34.0 + - 1.54.3 + x-stainless-retry-count: + - '0' x-stainless-runtime: - CPython x-stainless-runtime-version: - - 3.10.12 + - 3.12.6 method: POST - uri: https://test.openai.azure.com/openai/deployments/test-azure-deployment/chat/completions?api-version=2023-03-15-preview + uri: https://test.openai.azure.com/openai/deployments/test-azure-deployment/chat/completions?api-version=2024-08-01-preview response: body: - string: '{"choices":[{"finish_reason":"stop","index":0,"message":{"content":"South - Atlantic Ocean.","role":"assistant"}}],"created":1728909022,"id":"chatcmpl-AIEVKUfan2sD0ScQLHPSMYn7Fet3Y","model":"gpt-4o-mini","object":"chat.completion","system_fingerprint":"fp_878413d04d","usage":{"completion_tokens":4,"prompt_tokens":24,"total_tokens":28}} - - ' + string: |- + { + "choices": [ + { + "content_filter_results": { + "hate": { + "filtered": false, + "severity": "safe" + }, + "self_harm": { + "filtered": false, + "severity": "safe" + }, + "sexual": { + "filtered": false, + "severity": "safe" + }, + "violence": { + "filtered": false, + "severity": "safe" + } + }, + "finish_reason": "stop", + "index": 0, + "logprobs": null, + "message": { + "content": "Atlantic Ocean", + "role": "assistant" + } + } + ], + "created": 1731466221, + "id": "chatcmpl-ASxkTeNjqCBy25d2g18faeBtc66GG", + "model": "gpt-4-32k", + "object": "chat.completion", + "prompt_filter_results": [ + { + "prompt_index": 0, + "content_filter_results": { + "hate": { + "filtered": false, + "severity": "safe" + }, + "self_harm": { + "filtered": false, + "severity": "safe" + }, + "sexual": { + "filtered": false, + "severity": "safe" + }, + "violence": { + "filtered": false, + "severity": "safe" + } + } + } + ], + "system_fingerprint": null, + "usage": { + "completion_tokens": 2, + "prompt_tokens": 24, + "total_tokens": 26 + } + } headers: + Cache-Control: + - no-cache, must-revalidate Content-Length: - - '336' + - '805' Content-Type: - application/json Date: - - Mon, 14 Oct 2024 12:30:21 GMT + - Wed, 13 Nov 2024 02:50:21 GMT Set-Cookie: test_set_cookie Strict-Transport-Security: - max-age=31536000; includeSubDomains; preload + access-control-allow-origin: + - '*' apim-request-id: - - aa7e6892-0666-4025-9c04-90d2a1f32987 + - 53c69374-78ff-4de0-a446-253028228455 azureml-model-session: - - d009-20240926131256 - openai-organization: test_openai_org_key + - d158-20241010133731 + openai-organization: test_openai_org_id x-accel-buffering: - 'no' x-content-type-options: - nosniff - x-envoy-upstream-service-time: - - '142' x-ms-client-request-id: - - aa7e6892-0666-4025-9c04-90d2a1f32987 + - 53c69374-78ff-4de0-a446-253028228455 x-ms-rai-invoked: - 'true' x-ms-region: - - East US + - Switzerland North x-ratelimit-remaining-requests: - - '906' + - '71' x-ratelimit-remaining-tokens: - - '88284' + - '79644' x-request-id: - - ce524e90-581f-4d11-b86f-0e5f2b47f5fc + - 54470131-0498-4318-a448-5d99d1e57699 status: code: 200 message: OK diff --git a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_async_basic_with_capture_message_content_log_events[ollama_provider_chat_completions].yaml b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_async_basic_with_capture_message_content_log_events[ollama_provider_chat_completions].yaml index 02a3eb7..2c78822 100644 --- a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_async_basic_with_capture_message_content_log_events[ollama_provider_chat_completions].yaml +++ b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_async_basic_with_capture_message_content_log_events[ollama_provider_chat_completions].yaml @@ -1,7 +1,15 @@ interactions: - request: - body: '{"messages": [{"role": "user", "content": "Answer in up to 3 words: Which - ocean contains the falkland islands?"}], "model": "qwen2.5:0.5b"}' + body: |- + { + "messages": [ + { + "role": "user", + "content": "Answer in up to 3 words: Which ocean contains the falkland islands?" + } + ], + "model": "qwen2.5:0.5b" + } headers: accept: - application/json @@ -18,37 +26,57 @@ interactions: host: - localhost:11434 user-agent: - - AsyncOpenAI/Python 1.34.0 + - AsyncOpenAI/Python 1.50.2 x-stainless-arch: - - x64 + - arm64 x-stainless-async: - async:asyncio x-stainless-lang: - python x-stainless-os: - - Linux + - MacOS x-stainless-package-version: - - 1.34.0 + - 1.50.2 + x-stainless-retry-count: + - '0' x-stainless-runtime: - CPython x-stainless-runtime-version: - - 3.10.12 + - 3.12.6 method: POST uri: http://localhost:11434/v1/chat/completions response: body: - string: '{"id":"chatcmpl-472","object":"chat.completion","created":1728909023,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"message":{"role":"assistant","content":"The - Falkland Islands are located within the southern waters of the South Atlantic - Ocean."},"finish_reason":"stop"}],"usage":{"prompt_tokens":46,"completion_tokens":17,"total_tokens":63}} - - ' + string: |- + { + "id": "chatcmpl-295", + "object": "chat.completion", + "created": 1731311784, + "model": "qwen2.5:0.5b", + "system_fingerprint": "fp_ollama", + "choices": [ + { + "index": 0, + "message": { + "role": "assistant", + "content": "The Falkland Islands are located in which ocean?" + }, + "finish_reason": "stop" + } + ], + "usage": { + "prompt_tokens": 46, + "completion_tokens": 11, + "total_tokens": 57 + } + } headers: Content-Length: - - '375' + - '335' Content-Type: - application/json Date: - - Mon, 14 Oct 2024 12:30:23 GMT + - Mon, 11 Nov 2024 07:56:24 GMT Set-Cookie: test_set_cookie openai-organization: test_openai_org_key status: diff --git a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_async_basic_with_capture_message_content_log_events[openai_provider_chat_completions].yaml b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_async_basic_with_capture_message_content_log_events[openai_provider_chat_completions].yaml index 058eba5..7745538 100644 --- a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_async_basic_with_capture_message_content_log_events[openai_provider_chat_completions].yaml +++ b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_async_basic_with_capture_message_content_log_events[openai_provider_chat_completions].yaml @@ -1,7 +1,15 @@ interactions: - request: - body: '{"messages": [{"role": "user", "content": "Answer in up to 3 words: Which - ocean contains the falkland islands?"}], "model": "gpt-4o-mini"}' + body: |- + { + "messages": [ + { + "role": "user", + "content": "Answer in up to 3 words: Which ocean contains the falkland islands?" + } + ], + "model": "gpt-4o-mini" + } headers: accept: - application/json @@ -18,45 +26,73 @@ interactions: host: - api.openai.com user-agent: - - AsyncOpenAI/Python 1.34.0 + - AsyncOpenAI/Python 1.54.3 x-stainless-arch: - - x64 + - arm64 x-stainless-async: - async:asyncio x-stainless-lang: - python x-stainless-os: - - Linux + - MacOS x-stainless-package-version: - - 1.34.0 + - 1.54.3 + x-stainless-retry-count: + - '0' x-stainless-runtime: - CPython x-stainless-runtime-version: - - 3.10.12 + - 3.12.6 method: POST uri: https://api.openai.com/v1/chat/completions response: body: - string: "{\n \"id\": \"chatcmpl-AIEVJxmbMtOSyVurjk73oqE0uQhAX\",\n \"object\": - \"chat.completion\",\n \"created\": 1728909021,\n \"model\": \"gpt-4o-mini-2024-07-18\",\n - \ \"choices\": [\n {\n \"index\": 0,\n \"message\": {\n \"role\": - \"assistant\",\n \"content\": \"South Atlantic Ocean.\",\n \"refusal\": - null\n },\n \"logprobs\": null,\n \"finish_reason\": \"stop\"\n - \ }\n ],\n \"usage\": {\n \"prompt_tokens\": 24,\n \"completion_tokens\": - 4,\n \"total_tokens\": 28,\n \"prompt_tokens_details\": {\n \"cached_tokens\": - 0\n },\n \"completion_tokens_details\": {\n \"reasoning_tokens\": - 0\n }\n },\n \"system_fingerprint\": \"fp_e2bde53e6e\"\n}\n" + string: |- + { + "id": "chatcmpl-ASfaOykfLmr5qdUddSbFIDNGReNRJ", + "object": "chat.completion", + "created": 1731396404, + "model": "gpt-4o-mini-2024-07-18", + "choices": [ + { + "index": 0, + "message": { + "role": "assistant", + "content": "South Atlantic Ocean.", + "refusal": null + }, + "logprobs": null, + "finish_reason": "stop" + } + ], + "usage": { + "prompt_tokens": 24, + "completion_tokens": 4, + "total_tokens": 28, + "prompt_tokens_details": { + "cached_tokens": 0, + "audio_tokens": 0 + }, + "completion_tokens_details": { + "reasoning_tokens": 0, + "audio_tokens": 0, + "accepted_prediction_tokens": 0, + "rejected_prediction_tokens": 0 + } + }, + "system_fingerprint": "fp_0ba0d124f1" + } headers: CF-Cache-Status: - DYNAMIC CF-RAY: - - 8d279486aaf1bae7-MXP + - 8e14cba7eed66bbd-SIN Connection: - keep-alive Content-Type: - application/json Date: - - Mon, 14 Oct 2024 12:30:21 GMT + - Tue, 12 Nov 2024 07:26:44 GMT Server: - cloudflare Set-Cookie: test_set_cookie @@ -69,10 +105,10 @@ interactions: alt-svc: - h3=":443"; ma=86400 content-length: - - '643' + - '771' openai-organization: test_openai_org_key openai-processing-ms: - - '575' + - '249' openai-version: - '2020-10-01' strict-transport-security: @@ -82,15 +118,15 @@ interactions: x-ratelimit-limit-tokens: - '200000' x-ratelimit-remaining-requests: - - '9997' + - '9983' x-ratelimit-remaining-tokens: - '199966' x-ratelimit-reset-requests: - - 24.489s + - 2m25.844s x-ratelimit-reset-tokens: - 10ms x-request-id: - - req_ffe4e6ff8b66c569921f76182eab65cd + - req_3bef9643428bce1d1e43d476d8ef1c43 status: code: 200 message: OK diff --git a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_async_stream[azure_provider_chat_completions].yaml b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_async_stream[azure_provider_chat_completions].yaml index e5a99c0..7029a4f 100644 --- a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_async_stream[azure_provider_chat_completions].yaml +++ b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_async_stream[azure_provider_chat_completions].yaml @@ -1,7 +1,16 @@ interactions: - request: - body: '{"messages": [{"role": "user", "content": "Answer in up to 3 words: Which - ocean contains the falkland islands?"}], "model": "gpt-4o-mini", "stream": true}' + body: |- + { + "messages": [ + { + "role": "user", + "content": "Answer in up to 3 words: Which ocean contains the falkland islands?" + } + ], + "model": "unused", + "stream": true + } headers: accept: - application/json @@ -14,88 +23,81 @@ interactions: connection: - keep-alive content-length: - - '154' + - '149' content-type: - application/json host: - test.openai.azure.com user-agent: - - AsyncAzureOpenAI/Python 1.50.0 + - AsyncAzureOpenAI/Python 1.54.3 x-stainless-arch: - - x64 + - arm64 x-stainless-async: - async:asyncio x-stainless-lang: - python x-stainless-os: - - Linux + - MacOS x-stainless-package-version: - - 1.50.0 + - 1.54.3 x-stainless-retry-count: - '0' x-stainless-runtime: - CPython x-stainless-runtime-version: - - 3.10.12 + - 3.12.6 method: POST - uri: https://test.openai.azure.com/openai/deployments/test-azure-deployment/chat/completions?api-version=2023-03-15-preview + uri: https://test.openai.azure.com/openai/deployments/test-azure-deployment/chat/completions?api-version=2024-08-01-preview response: body: - string: 'data: {"choices":[{"delta":{"role":"assistant"},"finish_reason":null,"index":0}],"created":1727964739,"id":"chatcmpl-AEGqxYYCkiihSc05nBzHlYVwwUmzl","model":"gpt-4o-mini","object":"chat.completion.chunk","system_fingerprint":"fp_878413d04d"} + string: |+ + data: {"choices":[],"created":0,"id":"","model":"","object":"","prompt_filter_results":[{"prompt_index":0,"content_filter_results":{"hate":{"filtered":false,"severity":"safe"},"self_harm":{"filtered":false,"severity":"safe"},"sexual":{"filtered":false,"severity":"safe"},"violence":{"filtered":false,"severity":"safe"}}}]} + data: {"choices":[{"content_filter_results":{},"delta":{"content":"","role":"assistant"},"finish_reason":null,"index":0,"logprobs":null}],"created":1731466222,"id":"chatcmpl-ASxkU7Rz5UnZqCWoV86xfgDVgc719","model":"gpt-4-32k","object":"chat.completion.chunk","system_fingerprint":null} - data: {"choices":[{"delta":{"content":"South"},"finish_reason":null,"index":0}],"created":1727964739,"id":"chatcmpl-AEGqxYYCkiihSc05nBzHlYVwwUmzl","model":"gpt-4o-mini","object":"chat.completion.chunk","system_fingerprint":"fp_878413d04d"} + data: {"choices":[{"content_filter_results":{"hate":{"filtered":false,"severity":"safe"},"self_harm":{"filtered":false,"severity":"safe"},"sexual":{"filtered":false,"severity":"safe"},"violence":{"filtered":false,"severity":"safe"}},"delta":{"content":"Atlantic"},"finish_reason":null,"index":0,"logprobs":null}],"created":1731466222,"id":"chatcmpl-ASxkU7Rz5UnZqCWoV86xfgDVgc719","model":"gpt-4-32k","object":"chat.completion.chunk","system_fingerprint":null} + data: {"choices":[{"content_filter_results":{"hate":{"filtered":false,"severity":"safe"},"self_harm":{"filtered":false,"severity":"safe"},"sexual":{"filtered":false,"severity":"safe"},"violence":{"filtered":false,"severity":"safe"}},"delta":{"content":" Ocean"},"finish_reason":null,"index":0,"logprobs":null}],"created":1731466222,"id":"chatcmpl-ASxkU7Rz5UnZqCWoV86xfgDVgc719","model":"gpt-4-32k","object":"chat.completion.chunk","system_fingerprint":null} - data: {"choices":[{"delta":{"content":" Atlantic"},"finish_reason":null,"index":0}],"created":1727964739,"id":"chatcmpl-AEGqxYYCkiihSc05nBzHlYVwwUmzl","model":"gpt-4o-mini","object":"chat.completion.chunk","system_fingerprint":"fp_878413d04d"} - - - data: {"choices":[{"delta":{"content":" Ocean"},"finish_reason":null,"index":0}],"created":1727964739,"id":"chatcmpl-AEGqxYYCkiihSc05nBzHlYVwwUmzl","model":"gpt-4o-mini","object":"chat.completion.chunk","system_fingerprint":"fp_878413d04d"} - - - data: {"choices":[{"delta":{"content":"."},"finish_reason":null,"index":0}],"created":1727964739,"id":"chatcmpl-AEGqxYYCkiihSc05nBzHlYVwwUmzl","model":"gpt-4o-mini","object":"chat.completion.chunk","system_fingerprint":"fp_878413d04d"} - - - data: {"choices":[{"delta":{},"finish_reason":"stop","index":0}],"created":1727964739,"id":"chatcmpl-AEGqxYYCkiihSc05nBzHlYVwwUmzl","model":"gpt-4o-mini","object":"chat.completion.chunk","system_fingerprint":"fp_878413d04d"} - + data: {"choices":[{"content_filter_results":{},"delta":{},"finish_reason":"stop","index":0,"logprobs":null}],"created":1731466222,"id":"chatcmpl-ASxkU7Rz5UnZqCWoV86xfgDVgc719","model":"gpt-4-32k","object":"chat.completion.chunk","system_fingerprint":null} data: [DONE] - - ' headers: + Cache-Control: + - no-cache, must-revalidate Content-Type: - - text/event-stream; charset=utf-8 + - text/event-stream Date: - - Thu, 03 Oct 2024 14:12:19 GMT + - Wed, 13 Nov 2024 02:50:21 GMT Set-Cookie: test_set_cookie Strict-Transport-Security: - max-age=31536000; includeSubDomains; preload Transfer-Encoding: - chunked + access-control-allow-origin: + - '*' apim-request-id: - - 36b04c91-b5c0-46c7-8257-668127c68d4d + - 8df4370d-2e29-4f45-9d18-6eec74cb08a0 azureml-model-session: - - d007-20240926131035 - openai-organization: test_openai_org_key + - d156-20241010120317 + openai-organization: test_openai_org_id x-accel-buffering: - 'no' x-content-type-options: - nosniff - x-envoy-upstream-service-time: - - '257' x-ms-client-request-id: - - 36b04c91-b5c0-46c7-8257-668127c68d4d + - 8df4370d-2e29-4f45-9d18-6eec74cb08a0 x-ms-rai-invoked: - 'true' x-ms-region: - - East US + - Switzerland North x-ratelimit-remaining-requests: - - '907' + - '71' x-ratelimit-remaining-tokens: - - '89029' + - '79628' x-request-id: - - 6a8d5f20-8dfe-4869-9005-a4cf4a9654c8 + - c5fcf788-a9b6-49f9-80e8-bd9b668d37c0 status: code: 200 message: OK diff --git a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_async_stream[ollama_provider_chat_completions].yaml b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_async_stream[ollama_provider_chat_completions].yaml index f9bbd24..1daf8e9 100644 --- a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_async_stream[ollama_provider_chat_completions].yaml +++ b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_async_stream[ollama_provider_chat_completions].yaml @@ -1,8 +1,16 @@ interactions: - request: - body: '{"messages": [{"role": "user", "content": "Answer in up to 3 words: Which - ocean contains the falkland islands?"}], "model": "qwen2.5:0.5b", "stream": - true}' + body: |- + { + "messages": [ + { + "role": "user", + "content": "Answer in up to 3 words: Which ocean contains the falkland islands?" + } + ], + "model": "qwen2.5:0.5b", + "stream": true + } headers: accept: - application/json @@ -19,76 +27,45 @@ interactions: host: - localhost:11434 user-agent: - - AsyncOpenAI/Python 1.50.0 + - AsyncOpenAI/Python 1.50.2 x-stainless-arch: - - x64 + - arm64 x-stainless-async: - async:asyncio x-stainless-lang: - python x-stainless-os: - - Linux + - MacOS x-stainless-package-version: - - 1.50.0 + - 1.50.2 x-stainless-retry-count: - '0' x-stainless-runtime: - CPython x-stainless-runtime-version: - - 3.10.12 + - 3.12.6 method: POST uri: http://localhost:11434/v1/chat/completions response: body: - string: 'data: {"id":"chatcmpl-325","object":"chat.completion.chunk","created":1727964739,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"The"},"finish_reason":null}]} + string: |+ + data: {"id":"chatcmpl-232","object":"chat.completion.chunk","created":1731311784,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"The"},"finish_reason":null}]} + data: {"id":"chatcmpl-232","object":"chat.completion.chunk","created":1731311784,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" Southern"},"finish_reason":null}]} - data: {"id":"chatcmpl-325","object":"chat.completion.chunk","created":1727964739,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - Falk"},"finish_reason":null}]} + data: {"id":"chatcmpl-232","object":"chat.completion.chunk","created":1731311784,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" Ocean"},"finish_reason":null}]} + data: {"id":"chatcmpl-232","object":"chat.completion.chunk","created":1731311784,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"."},"finish_reason":null}]} - data: {"id":"chatcmpl-325","object":"chat.completion.chunk","created":1727964739,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"land"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-325","object":"chat.completion.chunk","created":1727964739,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - Islands"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-325","object":"chat.completion.chunk","created":1727964739,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - are"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-325","object":"chat.completion.chunk","created":1727964739,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - located"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-325","object":"chat.completion.chunk","created":1727964739,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - on"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-325","object":"chat.completion.chunk","created":1727964739,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - which"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-325","object":"chat.completion.chunk","created":1727964739,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - ocean"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-325","object":"chat.completion.chunk","created":1727964739,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"?"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-325","object":"chat.completion.chunk","created":1727964739,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":"stop"}]} - + data: {"id":"chatcmpl-232","object":"chat.completion.chunk","created":1731311784,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":"stop"}]} data: [DONE] - - ' headers: Content-Type: - text/event-stream Date: - - Thu, 03 Oct 2024 14:12:19 GMT + - Mon, 11 Nov 2024 07:56:24 GMT Set-Cookie: test_set_cookie Transfer-Encoding: - chunked diff --git a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_async_stream[openai_provider_chat_completions].yaml b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_async_stream[openai_provider_chat_completions].yaml index bb8fa85..d7e7015 100644 --- a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_async_stream[openai_provider_chat_completions].yaml +++ b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_async_stream[openai_provider_chat_completions].yaml @@ -1,7 +1,16 @@ interactions: - request: - body: '{"messages": [{"role": "user", "content": "Answer in up to 3 words: Which - ocean contains the falkland islands?"}], "model": "gpt-4o-mini", "stream": true}' + body: |- + { + "messages": [ + { + "role": "user", + "content": "Answer in up to 3 words: Which ocean contains the falkland islands?" + } + ], + "model": "gpt-4o-mini", + "stream": true + } headers: accept: - application/json @@ -18,62 +27,53 @@ interactions: host: - api.openai.com user-agent: - - AsyncOpenAI/Python 1.50.0 + - AsyncOpenAI/Python 1.54.3 x-stainless-arch: - - x64 + - arm64 x-stainless-async: - async:asyncio x-stainless-lang: - python x-stainless-os: - - Linux + - MacOS x-stainless-package-version: - - 1.50.0 + - 1.54.3 x-stainless-retry-count: - '0' x-stainless-runtime: - CPython x-stainless-runtime-version: - - 3.10.12 + - 3.12.6 method: POST uri: https://api.openai.com/v1/chat/completions response: body: - string: 'data: {"id":"chatcmpl-AEGqwO8cO97nJK1gMyVlzL9Mfyv7E","object":"chat.completion.chunk","created":1727964738,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_f85bea6784","choices":[{"index":0,"delta":{"role":"assistant","content":"","refusal":null},"logprobs":null,"finish_reason":null}]} + string: |+ + data: {"id":"chatcmpl-ASfaPgUOEfxcTVUSEfUINfcFkVQ8x","object":"chat.completion.chunk","created":1731396405,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_0ba0d124f1","choices":[{"index":0,"delta":{"role":"assistant","content":"","refusal":null},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-ASfaPgUOEfxcTVUSEfUINfcFkVQ8x","object":"chat.completion.chunk","created":1731396405,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_0ba0d124f1","choices":[{"index":0,"delta":{"content":"South"},"logprobs":null,"finish_reason":null}]} - data: {"id":"chatcmpl-AEGqwO8cO97nJK1gMyVlzL9Mfyv7E","object":"chat.completion.chunk","created":1727964738,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_f85bea6784","choices":[{"index":0,"delta":{"content":"South"},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-ASfaPgUOEfxcTVUSEfUINfcFkVQ8x","object":"chat.completion.chunk","created":1731396405,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_0ba0d124f1","choices":[{"index":0,"delta":{"content":" Atlantic"},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-ASfaPgUOEfxcTVUSEfUINfcFkVQ8x","object":"chat.completion.chunk","created":1731396405,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_0ba0d124f1","choices":[{"index":0,"delta":{"content":" Ocean"},"logprobs":null,"finish_reason":null}]} - data: {"id":"chatcmpl-AEGqwO8cO97nJK1gMyVlzL9Mfyv7E","object":"chat.completion.chunk","created":1727964738,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_f85bea6784","choices":[{"index":0,"delta":{"content":" - Atlantic"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-AEGqwO8cO97nJK1gMyVlzL9Mfyv7E","object":"chat.completion.chunk","created":1727964738,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_f85bea6784","choices":[{"index":0,"delta":{"content":" - Ocean"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-AEGqwO8cO97nJK1gMyVlzL9Mfyv7E","object":"chat.completion.chunk","created":1727964738,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_f85bea6784","choices":[{"index":0,"delta":{"content":"."},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-AEGqwO8cO97nJK1gMyVlzL9Mfyv7E","object":"chat.completion.chunk","created":1727964738,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_f85bea6784","choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"stop"}]} + data: {"id":"chatcmpl-ASfaPgUOEfxcTVUSEfUINfcFkVQ8x","object":"chat.completion.chunk","created":1731396405,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_0ba0d124f1","choices":[{"index":0,"delta":{"content":"."},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-ASfaPgUOEfxcTVUSEfUINfcFkVQ8x","object":"chat.completion.chunk","created":1731396405,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_0ba0d124f1","choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"stop"}]} data: [DONE] - - ' headers: CF-Cache-Status: - DYNAMIC CF-RAY: - - 8ccd86bd984e375f-MXP + - 8e14cbabe83a3db0-SIN Connection: - keep-alive Content-Type: - text/event-stream; charset=utf-8 Date: - - Thu, 03 Oct 2024 14:12:18 GMT + - Tue, 12 Nov 2024 07:26:45 GMT Server: - cloudflare Set-Cookie: test_set_cookie @@ -83,9 +83,11 @@ interactions: - nosniff access-control-expose-headers: - X-Request-ID + alt-svc: + - h3=":443"; ma=86400 openai-organization: test_openai_org_key openai-processing-ms: - - '129' + - '150' openai-version: - '2020-10-01' strict-transport-security: @@ -95,15 +97,15 @@ interactions: x-ratelimit-limit-tokens: - '200000' x-ratelimit-remaining-requests: - - '9997' + - '9982' x-ratelimit-remaining-tokens: - '199966' x-ratelimit-reset-requests: - - 21.613s + - 2m33.847s x-ratelimit-reset-tokens: - 10ms x-request-id: - - req_75b95a1a6b7e7ab044aff092dc595d3e + - req_5e0df3eef7c0af36ad75f406e04753fc status: code: 200 message: OK diff --git a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_async_stream_with_capture_message_content[azure_provider_chat_completions].yaml b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_async_stream_with_capture_message_content[azure_provider_chat_completions].yaml index 6b89565..ead3805 100644 --- a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_async_stream_with_capture_message_content[azure_provider_chat_completions].yaml +++ b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_async_stream_with_capture_message_content[azure_provider_chat_completions].yaml @@ -1,7 +1,16 @@ interactions: - request: - body: '{"messages": [{"role": "user", "content": "Answer in up to 3 words: Which - ocean contains the falkland islands?"}], "model": "gpt-4o-mini", "stream": true}' + body: |- + { + "messages": [ + { + "role": "user", + "content": "Answer in up to 3 words: Which ocean contains the falkland islands?" + } + ], + "model": "unused", + "stream": true + } headers: accept: - application/json @@ -14,88 +23,81 @@ interactions: connection: - keep-alive content-length: - - '154' + - '149' content-type: - application/json host: - test.openai.azure.com user-agent: - - AsyncAzureOpenAI/Python 1.50.0 + - AsyncAzureOpenAI/Python 1.54.3 x-stainless-arch: - - x64 + - arm64 x-stainless-async: - async:asyncio x-stainless-lang: - python x-stainless-os: - - Linux + - MacOS x-stainless-package-version: - - 1.50.0 + - 1.54.3 x-stainless-retry-count: - '0' x-stainless-runtime: - CPython x-stainless-runtime-version: - - 3.10.12 + - 3.12.6 method: POST - uri: https://test.openai.azure.com/openai/deployments/test-azure-deployment/chat/completions?api-version=2023-03-15-preview + uri: https://test.openai.azure.com/openai/deployments/test-azure-deployment/chat/completions?api-version=2024-08-01-preview response: body: - string: 'data: {"choices":[{"delta":{"role":"assistant"},"finish_reason":null,"index":0}],"created":1727964741,"id":"chatcmpl-AEGqzfynQK4iCO7EXRy3kGXYyuxF5","model":"gpt-4o-mini","object":"chat.completion.chunk","system_fingerprint":"fp_878413d04d"} + string: |+ + data: {"choices":[],"created":0,"id":"","model":"","object":"","prompt_filter_results":[{"prompt_index":0,"content_filter_results":{"hate":{"filtered":false,"severity":"safe"},"self_harm":{"filtered":false,"severity":"safe"},"sexual":{"filtered":false,"severity":"safe"},"violence":{"filtered":false,"severity":"safe"}}}]} + data: {"choices":[{"content_filter_results":{},"delta":{"content":"","role":"assistant"},"finish_reason":null,"index":0,"logprobs":null}],"created":1731466223,"id":"chatcmpl-ASxkVWhWg2yeY7IV8yr6Lywa7fke4","model":"gpt-4-32k","object":"chat.completion.chunk","system_fingerprint":null} - data: {"choices":[{"delta":{"content":"South"},"finish_reason":null,"index":0}],"created":1727964741,"id":"chatcmpl-AEGqzfynQK4iCO7EXRy3kGXYyuxF5","model":"gpt-4o-mini","object":"chat.completion.chunk","system_fingerprint":"fp_878413d04d"} + data: {"choices":[{"content_filter_results":{"hate":{"filtered":false,"severity":"safe"},"self_harm":{"filtered":false,"severity":"safe"},"sexual":{"filtered":false,"severity":"safe"},"violence":{"filtered":false,"severity":"safe"}},"delta":{"content":"Atlantic"},"finish_reason":null,"index":0,"logprobs":null}],"created":1731466223,"id":"chatcmpl-ASxkVWhWg2yeY7IV8yr6Lywa7fke4","model":"gpt-4-32k","object":"chat.completion.chunk","system_fingerprint":null} + data: {"choices":[{"content_filter_results":{"hate":{"filtered":false,"severity":"safe"},"self_harm":{"filtered":false,"severity":"safe"},"sexual":{"filtered":false,"severity":"safe"},"violence":{"filtered":false,"severity":"safe"}},"delta":{"content":" Ocean"},"finish_reason":null,"index":0,"logprobs":null}],"created":1731466223,"id":"chatcmpl-ASxkVWhWg2yeY7IV8yr6Lywa7fke4","model":"gpt-4-32k","object":"chat.completion.chunk","system_fingerprint":null} - data: {"choices":[{"delta":{"content":" Atlantic"},"finish_reason":null,"index":0}],"created":1727964741,"id":"chatcmpl-AEGqzfynQK4iCO7EXRy3kGXYyuxF5","model":"gpt-4o-mini","object":"chat.completion.chunk","system_fingerprint":"fp_878413d04d"} - - - data: {"choices":[{"delta":{"content":" Ocean"},"finish_reason":null,"index":0}],"created":1727964741,"id":"chatcmpl-AEGqzfynQK4iCO7EXRy3kGXYyuxF5","model":"gpt-4o-mini","object":"chat.completion.chunk","system_fingerprint":"fp_878413d04d"} - - - data: {"choices":[{"delta":{"content":"."},"finish_reason":null,"index":0}],"created":1727964741,"id":"chatcmpl-AEGqzfynQK4iCO7EXRy3kGXYyuxF5","model":"gpt-4o-mini","object":"chat.completion.chunk","system_fingerprint":"fp_878413d04d"} - - - data: {"choices":[{"delta":{},"finish_reason":"stop","index":0}],"created":1727964741,"id":"chatcmpl-AEGqzfynQK4iCO7EXRy3kGXYyuxF5","model":"gpt-4o-mini","object":"chat.completion.chunk","system_fingerprint":"fp_878413d04d"} - + data: {"choices":[{"content_filter_results":{},"delta":{},"finish_reason":"stop","index":0,"logprobs":null}],"created":1731466223,"id":"chatcmpl-ASxkVWhWg2yeY7IV8yr6Lywa7fke4","model":"gpt-4-32k","object":"chat.completion.chunk","system_fingerprint":null} data: [DONE] - - ' headers: + Cache-Control: + - no-cache, must-revalidate Content-Type: - - text/event-stream; charset=utf-8 + - text/event-stream Date: - - Thu, 03 Oct 2024 14:12:21 GMT + - Wed, 13 Nov 2024 02:50:23 GMT Set-Cookie: test_set_cookie Strict-Transport-Security: - max-age=31536000; includeSubDomains; preload Transfer-Encoding: - chunked + access-control-allow-origin: + - '*' apim-request-id: - - b43f4547-c4fd-4fa5-ac31-8c1c1ac95f13 + - 32da387e-289d-4876-8d37-adc936ab09da azureml-model-session: - - d008-20240925051300 - openai-organization: test_openai_org_key + - d156-20241010120317 + openai-organization: test_openai_org_id x-accel-buffering: - 'no' x-content-type-options: - nosniff - x-envoy-upstream-service-time: - - '155' x-ms-client-request-id: - - b43f4547-c4fd-4fa5-ac31-8c1c1ac95f13 + - 32da387e-289d-4876-8d37-adc936ab09da x-ms-rai-invoked: - 'true' x-ms-region: - - East US + - Switzerland North x-ratelimit-remaining-requests: - - '906' + - '71' x-ratelimit-remaining-tokens: - - '88372' + - '79612' x-request-id: - - e9c64286-f767-46a7-b0b4-cb7876d451a0 + - 132f6f5c-067a-47e2-bc7d-79aa543876b4 status: code: 200 message: OK diff --git a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_async_stream_with_capture_message_content[ollama_provider_chat_completions].yaml b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_async_stream_with_capture_message_content[ollama_provider_chat_completions].yaml index 8efb651..f13de93 100644 --- a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_async_stream_with_capture_message_content[ollama_provider_chat_completions].yaml +++ b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_async_stream_with_capture_message_content[ollama_provider_chat_completions].yaml @@ -1,8 +1,16 @@ interactions: - request: - body: '{"messages": [{"role": "user", "content": "Answer in up to 3 words: Which - ocean contains the falkland islands?"}], "model": "qwen2.5:0.5b", "stream": - true}' + body: |- + { + "messages": [ + { + "role": "user", + "content": "Answer in up to 3 words: Which ocean contains the falkland islands?" + } + ], + "model": "qwen2.5:0.5b", + "stream": true + } headers: accept: - application/json @@ -19,72 +27,49 @@ interactions: host: - localhost:11434 user-agent: - - AsyncOpenAI/Python 1.50.0 + - AsyncOpenAI/Python 1.50.2 x-stainless-arch: - - x64 + - arm64 x-stainless-async: - async:asyncio x-stainless-lang: - python x-stainless-os: - - Linux + - MacOS x-stainless-package-version: - - 1.50.0 + - 1.50.2 x-stainless-retry-count: - '0' x-stainless-runtime: - CPython x-stainless-runtime-version: - - 3.10.12 + - 3.12.6 method: POST uri: http://localhost:11434/v1/chat/completions response: body: - string: 'data: {"id":"chatcmpl-644","object":"chat.completion.chunk","created":1727964741,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"The"},"finish_reason":null}]} + string: |+ + data: {"id":"chatcmpl-752","object":"chat.completion.chunk","created":1731311784,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"South"},"finish_reason":null}]} + data: {"id":"chatcmpl-752","object":"chat.completion.chunk","created":1731311784,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" America"},"finish_reason":null}]} - data: {"id":"chatcmpl-644","object":"chat.completion.chunk","created":1727964741,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - Falk"},"finish_reason":null}]} + data: {"id":"chatcmpl-752","object":"chat.completion.chunk","created":1731311784,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"'s"},"finish_reason":null}]} + data: {"id":"chatcmpl-752","object":"chat.completion.chunk","created":1731311784,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" Atlantic"},"finish_reason":null}]} - data: {"id":"chatcmpl-644","object":"chat.completion.chunk","created":1727964741,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"land"},"finish_reason":null}]} + data: {"id":"chatcmpl-752","object":"chat.completion.chunk","created":1731311784,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" Ocean"},"finish_reason":null}]} + data: {"id":"chatcmpl-752","object":"chat.completion.chunk","created":1731311784,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"."},"finish_reason":null}]} - data: {"id":"chatcmpl-644","object":"chat.completion.chunk","created":1727964741,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - Islands"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-644","object":"chat.completion.chunk","created":1727964741,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - lie"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-644","object":"chat.completion.chunk","created":1727964741,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - within"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-644","object":"chat.completion.chunk","created":1727964741,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - which"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-644","object":"chat.completion.chunk","created":1727964741,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - ocean"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-644","object":"chat.completion.chunk","created":1727964741,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"?"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-644","object":"chat.completion.chunk","created":1727964741,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":"stop"}]} - + data: {"id":"chatcmpl-752","object":"chat.completion.chunk","created":1731311784,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":"stop"}]} data: [DONE] - - ' headers: Content-Type: - text/event-stream Date: - - Thu, 03 Oct 2024 14:12:21 GMT + - Mon, 11 Nov 2024 07:56:24 GMT Set-Cookie: test_set_cookie Transfer-Encoding: - chunked diff --git a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_async_stream_with_capture_message_content[openai_provider_chat_completions].yaml b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_async_stream_with_capture_message_content[openai_provider_chat_completions].yaml index 3e4c7b4..5cc7e03 100644 --- a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_async_stream_with_capture_message_content[openai_provider_chat_completions].yaml +++ b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_async_stream_with_capture_message_content[openai_provider_chat_completions].yaml @@ -1,7 +1,16 @@ interactions: - request: - body: '{"messages": [{"role": "user", "content": "Answer in up to 3 words: Which - ocean contains the falkland islands?"}], "model": "gpt-4o-mini", "stream": true}' + body: |- + { + "messages": [ + { + "role": "user", + "content": "Answer in up to 3 words: Which ocean contains the falkland islands?" + } + ], + "model": "gpt-4o-mini", + "stream": true + } headers: accept: - application/json @@ -18,62 +27,53 @@ interactions: host: - api.openai.com user-agent: - - AsyncOpenAI/Python 1.50.0 + - AsyncOpenAI/Python 1.54.3 x-stainless-arch: - - x64 + - arm64 x-stainless-async: - async:asyncio x-stainless-lang: - python x-stainless-os: - - Linux + - MacOS x-stainless-package-version: - - 1.50.0 + - 1.54.3 x-stainless-retry-count: - '0' x-stainless-runtime: - CPython x-stainless-runtime-version: - - 3.10.12 + - 3.12.6 method: POST uri: https://api.openai.com/v1/chat/completions response: body: - string: 'data: {"id":"chatcmpl-AEGqyZRrj9GUzDNw5te55gt1r7eus","object":"chat.completion.chunk","created":1727964740,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_f85bea6784","choices":[{"index":0,"delta":{"role":"assistant","content":"","refusal":null},"logprobs":null,"finish_reason":null}]} + string: |+ + data: {"id":"chatcmpl-ASfaPHhHlSFtYDMa1S0QSWewTPhuS","object":"chat.completion.chunk","created":1731396405,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_0ba0d124f1","choices":[{"index":0,"delta":{"role":"assistant","content":"","refusal":null},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-ASfaPHhHlSFtYDMa1S0QSWewTPhuS","object":"chat.completion.chunk","created":1731396405,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_0ba0d124f1","choices":[{"index":0,"delta":{"content":"South"},"logprobs":null,"finish_reason":null}]} - data: {"id":"chatcmpl-AEGqyZRrj9GUzDNw5te55gt1r7eus","object":"chat.completion.chunk","created":1727964740,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_f85bea6784","choices":[{"index":0,"delta":{"content":"South"},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-ASfaPHhHlSFtYDMa1S0QSWewTPhuS","object":"chat.completion.chunk","created":1731396405,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_0ba0d124f1","choices":[{"index":0,"delta":{"content":" Atlantic"},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-ASfaPHhHlSFtYDMa1S0QSWewTPhuS","object":"chat.completion.chunk","created":1731396405,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_0ba0d124f1","choices":[{"index":0,"delta":{"content":" Ocean"},"logprobs":null,"finish_reason":null}]} - data: {"id":"chatcmpl-AEGqyZRrj9GUzDNw5te55gt1r7eus","object":"chat.completion.chunk","created":1727964740,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_f85bea6784","choices":[{"index":0,"delta":{"content":" - Atlantic"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-AEGqyZRrj9GUzDNw5te55gt1r7eus","object":"chat.completion.chunk","created":1727964740,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_f85bea6784","choices":[{"index":0,"delta":{"content":" - Ocean"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-AEGqyZRrj9GUzDNw5te55gt1r7eus","object":"chat.completion.chunk","created":1727964740,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_f85bea6784","choices":[{"index":0,"delta":{"content":"."},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-AEGqyZRrj9GUzDNw5te55gt1r7eus","object":"chat.completion.chunk","created":1727964740,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_f85bea6784","choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"stop"}]} + data: {"id":"chatcmpl-ASfaPHhHlSFtYDMa1S0QSWewTPhuS","object":"chat.completion.chunk","created":1731396405,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_0ba0d124f1","choices":[{"index":0,"delta":{"content":"."},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-ASfaPHhHlSFtYDMa1S0QSWewTPhuS","object":"chat.completion.chunk","created":1731396405,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_0ba0d124f1","choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"stop"}]} data: [DONE] - - ' headers: CF-Cache-Status: - DYNAMIC CF-RAY: - - 8ccd86c82a0159e9-MXP + - 8e14cbaf8f6d49b4-SIN Connection: - keep-alive Content-Type: - text/event-stream; charset=utf-8 Date: - - Thu, 03 Oct 2024 14:12:20 GMT + - Tue, 12 Nov 2024 07:26:46 GMT Server: - cloudflare Set-Cookie: test_set_cookie @@ -83,9 +83,11 @@ interactions: - nosniff access-control-expose-headers: - X-Request-ID + alt-svc: + - h3=":443"; ma=86400 openai-organization: test_openai_org_key openai-processing-ms: - - '532' + - '203' openai-version: - '2020-10-01' strict-transport-security: @@ -95,15 +97,15 @@ interactions: x-ratelimit-limit-tokens: - '200000' x-ratelimit-remaining-requests: - - '9996' + - '9981' x-ratelimit-remaining-tokens: - '199966' x-ratelimit-reset-requests: - - 28.518s + - 2m41.915s x-ratelimit-reset-tokens: - 10ms x-request-id: - - req_618ce2f84edee62527626249f110d78e + - req_cdcc4e2158d7bd20d7769f8ed24a54a1 status: code: 200 message: OK diff --git a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_async_stream_with_capture_message_content_log_events[azure_provider_chat_completions].yaml b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_async_stream_with_capture_message_content_log_events[azure_provider_chat_completions].yaml index 1355593..15113eb 100644 --- a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_async_stream_with_capture_message_content_log_events[azure_provider_chat_completions].yaml +++ b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_async_stream_with_capture_message_content_log_events[azure_provider_chat_completions].yaml @@ -1,7 +1,16 @@ interactions: - request: - body: '{"messages": [{"role": "user", "content": "Answer in up to 3 words: Which - ocean contains the falkland islands?"}], "model": "gpt-4o-mini", "stream": true}' + body: |- + { + "messages": [ + { + "role": "user", + "content": "Answer in up to 3 words: Which ocean contains the falkland islands?" + } + ], + "model": "unused", + "stream": true + } headers: accept: - application/json @@ -14,86 +23,81 @@ interactions: connection: - keep-alive content-length: - - '154' + - '149' content-type: - application/json host: - test.openai.azure.com user-agent: - - AsyncAzureOpenAI/Python 1.34.0 + - AsyncAzureOpenAI/Python 1.54.3 x-stainless-arch: - - x64 + - arm64 x-stainless-async: - async:asyncio x-stainless-lang: - python x-stainless-os: - - Linux + - MacOS x-stainless-package-version: - - 1.34.0 + - 1.54.3 + x-stainless-retry-count: + - '0' x-stainless-runtime: - CPython x-stainless-runtime-version: - - 3.10.12 + - 3.12.6 method: POST - uri: https://test.openai.azure.com/openai/deployments/test-azure-deployment/chat/completions?api-version=2023-03-15-preview + uri: https://test.openai.azure.com/openai/deployments/test-azure-deployment/chat/completions?api-version=2024-08-01-preview response: body: - string: 'data: {"choices":[{"delta":{"role":"assistant"},"finish_reason":null,"index":0}],"created":1728909025,"id":"chatcmpl-AIEVNaNWKhuoMnRJtcPUJNjbAz9Ib","model":"gpt-4o-mini","object":"chat.completion.chunk","system_fingerprint":"fp_878413d04d"} + string: |+ + data: {"choices":[],"created":0,"id":"","model":"","object":"","prompt_filter_results":[{"prompt_index":0,"content_filter_results":{"hate":{"filtered":false,"severity":"safe"},"self_harm":{"filtered":false,"severity":"safe"},"sexual":{"filtered":false,"severity":"safe"},"violence":{"filtered":false,"severity":"safe"}}}]} + data: {"choices":[{"content_filter_results":{},"delta":{"content":"","role":"assistant"},"finish_reason":null,"index":0,"logprobs":null}],"created":1731468911,"id":"chatcmpl-ASyRrEoGtgeeLRtFd7mM1CePrJUac","model":"gpt-4-32k","object":"chat.completion.chunk","system_fingerprint":null} - data: {"choices":[{"delta":{"content":"South"},"finish_reason":null,"index":0}],"created":1728909025,"id":"chatcmpl-AIEVNaNWKhuoMnRJtcPUJNjbAz9Ib","model":"gpt-4o-mini","object":"chat.completion.chunk","system_fingerprint":"fp_878413d04d"} + data: {"choices":[{"content_filter_results":{"hate":{"filtered":false,"severity":"safe"},"self_harm":{"filtered":false,"severity":"safe"},"sexual":{"filtered":false,"severity":"safe"},"violence":{"filtered":false,"severity":"safe"}},"delta":{"content":"Atlantic"},"finish_reason":null,"index":0,"logprobs":null}],"created":1731468911,"id":"chatcmpl-ASyRrEoGtgeeLRtFd7mM1CePrJUac","model":"gpt-4-32k","object":"chat.completion.chunk","system_fingerprint":null} + data: {"choices":[{"content_filter_results":{"hate":{"filtered":false,"severity":"safe"},"self_harm":{"filtered":false,"severity":"safe"},"sexual":{"filtered":false,"severity":"safe"},"violence":{"filtered":false,"severity":"safe"}},"delta":{"content":" Ocean"},"finish_reason":null,"index":0,"logprobs":null}],"created":1731468911,"id":"chatcmpl-ASyRrEoGtgeeLRtFd7mM1CePrJUac","model":"gpt-4-32k","object":"chat.completion.chunk","system_fingerprint":null} - data: {"choices":[{"delta":{"content":" Atlantic"},"finish_reason":null,"index":0}],"created":1728909025,"id":"chatcmpl-AIEVNaNWKhuoMnRJtcPUJNjbAz9Ib","model":"gpt-4o-mini","object":"chat.completion.chunk","system_fingerprint":"fp_878413d04d"} - - - data: {"choices":[{"delta":{"content":" Ocean"},"finish_reason":null,"index":0}],"created":1728909025,"id":"chatcmpl-AIEVNaNWKhuoMnRJtcPUJNjbAz9Ib","model":"gpt-4o-mini","object":"chat.completion.chunk","system_fingerprint":"fp_878413d04d"} - - - data: {"choices":[{"delta":{"content":"."},"finish_reason":null,"index":0}],"created":1728909025,"id":"chatcmpl-AIEVNaNWKhuoMnRJtcPUJNjbAz9Ib","model":"gpt-4o-mini","object":"chat.completion.chunk","system_fingerprint":"fp_878413d04d"} - - - data: {"choices":[{"delta":{},"finish_reason":"stop","index":0}],"created":1728909025,"id":"chatcmpl-AIEVNaNWKhuoMnRJtcPUJNjbAz9Ib","model":"gpt-4o-mini","object":"chat.completion.chunk","system_fingerprint":"fp_878413d04d"} - + data: {"choices":[{"content_filter_results":{},"delta":{},"finish_reason":"stop","index":0,"logprobs":null}],"created":1731468911,"id":"chatcmpl-ASyRrEoGtgeeLRtFd7mM1CePrJUac","model":"gpt-4-32k","object":"chat.completion.chunk","system_fingerprint":null} data: [DONE] - - ' headers: + Cache-Control: + - no-cache, must-revalidate Content-Type: - - text/event-stream; charset=utf-8 + - text/event-stream Date: - - Mon, 14 Oct 2024 12:30:25 GMT + - Wed, 13 Nov 2024 03:35:11 GMT Set-Cookie: test_set_cookie Strict-Transport-Security: - max-age=31536000; includeSubDomains; preload Transfer-Encoding: - chunked + access-control-allow-origin: + - '*' apim-request-id: - - 7db487c8-658f-408a-8cb9-33c834be990c + - 950795c5-f4c5-4a49-8f90-df12358f7c8a azureml-model-session: - - d017-20240921115920 - openai-organization: test_openai_org_key + - d156-20241010120317 + openai-organization: test_openai_org_id x-accel-buffering: - 'no' x-content-type-options: - nosniff - x-envoy-upstream-service-time: - - '60' x-ms-client-request-id: - - 7db487c8-658f-408a-8cb9-33c834be990c + - 950795c5-f4c5-4a49-8f90-df12358f7c8a x-ms-rai-invoked: - 'true' x-ms-region: - - East US + - Switzerland North x-ratelimit-remaining-requests: - - '905' + - '79' x-ratelimit-remaining-tokens: - - '87627' + - '79984' x-request-id: - - 6a36c78f-3505-4ae8-8450-124faf425179 + - 9b878e38-8cfd-434d-8e04-71ba2e5bb8e0 status: code: 200 message: OK diff --git a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_async_stream_with_capture_message_content_log_events[ollama_provider_chat_completions].yaml b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_async_stream_with_capture_message_content_log_events[ollama_provider_chat_completions].yaml index 1be0613..600ae73 100644 --- a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_async_stream_with_capture_message_content_log_events[ollama_provider_chat_completions].yaml +++ b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_async_stream_with_capture_message_content_log_events[ollama_provider_chat_completions].yaml @@ -1,8 +1,16 @@ interactions: - request: - body: '{"messages": [{"role": "user", "content": "Answer in up to 3 words: Which - ocean contains the falkland islands?"}], "model": "qwen2.5:0.5b", "stream": - true}' + body: |- + { + "messages": [ + { + "role": "user", + "content": "Answer in up to 3 words: Which ocean contains the falkland islands?" + } + ], + "model": "qwen2.5:0.5b", + "stream": true + } headers: accept: - application/json @@ -19,74 +27,53 @@ interactions: host: - localhost:11434 user-agent: - - AsyncOpenAI/Python 1.34.0 + - AsyncOpenAI/Python 1.50.2 x-stainless-arch: - - x64 + - arm64 x-stainless-async: - async:asyncio x-stainless-lang: - python x-stainless-os: - - Linux + - MacOS x-stainless-package-version: - - 1.34.0 + - 1.50.2 + x-stainless-retry-count: + - '0' x-stainless-runtime: - CPython x-stainless-runtime-version: - - 3.10.12 + - 3.12.6 method: POST uri: http://localhost:11434/v1/chat/completions response: body: - string: 'data: {"id":"chatcmpl-466","object":"chat.completion.chunk","created":1728909025,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"The"},"finish_reason":null}]} + string: |+ + data: {"id":"chatcmpl-465","object":"chat.completion.chunk","created":1731314345,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"The"},"finish_reason":null}]} + data: {"id":"chatcmpl-465","object":"chat.completion.chunk","created":1731314345,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" Falk"},"finish_reason":null}]} - data: {"id":"chatcmpl-466","object":"chat.completion.chunk","created":1728909025,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - Falk"},"finish_reason":null}]} + data: {"id":"chatcmpl-465","object":"chat.completion.chunk","created":1731314345,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"land"},"finish_reason":null}]} + data: {"id":"chatcmpl-465","object":"chat.completion.chunk","created":1731314345,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" Islands"},"finish_reason":null}]} - data: {"id":"chatcmpl-466","object":"chat.completion.chunk","created":1728909025,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"land"},"finish_reason":null}]} + data: {"id":"chatcmpl-465","object":"chat.completion.chunk","created":1731314345,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" belong"},"finish_reason":null}]} + data: {"id":"chatcmpl-465","object":"chat.completion.chunk","created":1731314345,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" to"},"finish_reason":null}]} - data: {"id":"chatcmpl-466","object":"chat.completion.chunk","created":1728909025,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - Islands"},"finish_reason":null}]} + data: {"id":"chatcmpl-465","object":"chat.completion.chunk","created":1731314345,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" Argentina"},"finish_reason":null}]} + data: {"id":"chatcmpl-465","object":"chat.completion.chunk","created":1731314345,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"."},"finish_reason":null}]} - data: {"id":"chatcmpl-466","object":"chat.completion.chunk","created":1728909025,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - contain"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-466","object":"chat.completion.chunk","created":1728909025,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - the"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-466","object":"chat.completion.chunk","created":1728909025,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - South"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-466","object":"chat.completion.chunk","created":1728909025,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - Atlantic"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-466","object":"chat.completion.chunk","created":1728909025,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - Ocean"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-466","object":"chat.completion.chunk","created":1728909025,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"."},"finish_reason":null}]} - - - data: {"id":"chatcmpl-466","object":"chat.completion.chunk","created":1728909025,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":"stop"}]} - + data: {"id":"chatcmpl-465","object":"chat.completion.chunk","created":1731314345,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":"stop"}]} data: [DONE] - - ' headers: Content-Type: - text/event-stream Date: - - Mon, 14 Oct 2024 12:30:25 GMT + - Mon, 11 Nov 2024 08:39:05 GMT Set-Cookie: test_set_cookie Transfer-Encoding: - chunked diff --git a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_async_stream_with_capture_message_content_log_events[openai_provider_chat_completions].yaml b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_async_stream_with_capture_message_content_log_events[openai_provider_chat_completions].yaml index 0294556..dd4dce5 100644 --- a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_async_stream_with_capture_message_content_log_events[openai_provider_chat_completions].yaml +++ b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_async_stream_with_capture_message_content_log_events[openai_provider_chat_completions].yaml @@ -1,7 +1,16 @@ interactions: - request: - body: '{"messages": [{"role": "user", "content": "Answer in up to 3 words: Which - ocean contains the falkland islands?"}], "model": "gpt-4o-mini", "stream": true}' + body: |- + { + "messages": [ + { + "role": "user", + "content": "Answer in up to 3 words: Which ocean contains the falkland islands?" + } + ], + "model": "gpt-4o-mini", + "stream": true + } headers: accept: - application/json @@ -18,60 +27,53 @@ interactions: host: - api.openai.com user-agent: - - AsyncOpenAI/Python 1.34.0 + - AsyncOpenAI/Python 1.54.3 x-stainless-arch: - - x64 + - arm64 x-stainless-async: - async:asyncio x-stainless-lang: - python x-stainless-os: - - Linux + - MacOS x-stainless-package-version: - - 1.34.0 + - 1.54.3 + x-stainless-retry-count: + - '0' x-stainless-runtime: - CPython x-stainless-runtime-version: - - 3.10.12 + - 3.12.6 method: POST uri: https://api.openai.com/v1/chat/completions response: body: - string: 'data: {"id":"chatcmpl-AIEVLVduixLA39qqzjDIfJ2u2dPcJ","object":"chat.completion.chunk","created":1728909023,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_e2bde53e6e","choices":[{"index":0,"delta":{"role":"assistant","content":"","refusal":null},"logprobs":null,"finish_reason":null}]} + string: |+ + data: {"id":"chatcmpl-ASfaQS4L6eLFljyu9h8zZRbp2hf5j","object":"chat.completion.chunk","created":1731396406,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_9b78b61c52","choices":[{"index":0,"delta":{"role":"assistant","content":"","refusal":null},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-ASfaQS4L6eLFljyu9h8zZRbp2hf5j","object":"chat.completion.chunk","created":1731396406,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_9b78b61c52","choices":[{"index":0,"delta":{"content":"South"},"logprobs":null,"finish_reason":null}]} - data: {"id":"chatcmpl-AIEVLVduixLA39qqzjDIfJ2u2dPcJ","object":"chat.completion.chunk","created":1728909023,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_e2bde53e6e","choices":[{"index":0,"delta":{"content":"South"},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-ASfaQS4L6eLFljyu9h8zZRbp2hf5j","object":"chat.completion.chunk","created":1731396406,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_9b78b61c52","choices":[{"index":0,"delta":{"content":" Atlantic"},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-ASfaQS4L6eLFljyu9h8zZRbp2hf5j","object":"chat.completion.chunk","created":1731396406,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_9b78b61c52","choices":[{"index":0,"delta":{"content":" Ocean"},"logprobs":null,"finish_reason":null}]} - data: {"id":"chatcmpl-AIEVLVduixLA39qqzjDIfJ2u2dPcJ","object":"chat.completion.chunk","created":1728909023,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_e2bde53e6e","choices":[{"index":0,"delta":{"content":" - Atlantic"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-AIEVLVduixLA39qqzjDIfJ2u2dPcJ","object":"chat.completion.chunk","created":1728909023,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_e2bde53e6e","choices":[{"index":0,"delta":{"content":" - Ocean"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-AIEVLVduixLA39qqzjDIfJ2u2dPcJ","object":"chat.completion.chunk","created":1728909023,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_e2bde53e6e","choices":[{"index":0,"delta":{"content":"."},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-AIEVLVduixLA39qqzjDIfJ2u2dPcJ","object":"chat.completion.chunk","created":1728909023,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_e2bde53e6e","choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"stop"}]} + data: {"id":"chatcmpl-ASfaQS4L6eLFljyu9h8zZRbp2hf5j","object":"chat.completion.chunk","created":1731396406,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_9b78b61c52","choices":[{"index":0,"delta":{"content":"."},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-ASfaQS4L6eLFljyu9h8zZRbp2hf5j","object":"chat.completion.chunk","created":1731396406,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_9b78b61c52","choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"stop"}]} data: [DONE] - - ' headers: CF-Cache-Status: - DYNAMIC CF-RAY: - - 8d279493ad9ebb14-MXP + - 8e14cbb39856833c-SIN Connection: - keep-alive Content-Type: - text/event-stream; charset=utf-8 Date: - - Mon, 14 Oct 2024 12:30:24 GMT + - Tue, 12 Nov 2024 07:26:47 GMT Server: - cloudflare Set-Cookie: test_set_cookie @@ -85,7 +87,7 @@ interactions: - h3=":443"; ma=86400 openai-organization: test_openai_org_key openai-processing-ms: - - '729' + - '543' openai-version: - '2020-10-01' strict-transport-security: @@ -95,15 +97,15 @@ interactions: x-ratelimit-limit-tokens: - '200000' x-ratelimit-remaining-requests: - - '9996' + - '9980' x-ratelimit-remaining-tokens: - '199966' x-ratelimit-reset-requests: - - 31.045s + - 2m49.899s x-ratelimit-reset-tokens: - 10ms x-request-id: - - req_d4104d88846db07a1d0156b1eaee178a + - req_85a0e7015e1b6b6b1b7536fdc4c967b4 status: code: 200 message: OK diff --git a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_async_tools_with_capture_message_content[azure_provider_chat_completions].yaml b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_async_tools_with_capture_message_content[azure_provider_chat_completions].yaml index a88eee0..5044176 100644 --- a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_async_tools_with_capture_message_content[azure_provider_chat_completions].yaml +++ b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_async_tools_with_capture_message_content[azure_provider_chat_completions].yaml @@ -1,16 +1,49 @@ interactions: - request: - body: '{"messages": [{"role": "system", "content": "You are a helpful customer - support assistant. Use the supplied tools to assist the user."}, {"role": "user", - "content": "Hi, can you tell me the delivery date for my order?"}, {"role": - "assistant", "content": "Hi there! I can help with that. Can you please provide - your order ID?"}, {"role": "user", "content": "i think it is order_12345"}], - "model": "gpt-4o-mini", "tools": [{"type": "function", "function": {"name": - "get_delivery_date", "description": "Get the delivery date for a customer''s - order. Call this whenever you need to know the delivery date, for example when - a customer asks ''Where is my package''", "parameters": {"type": "object", "properties": - {"order_id": {"type": "string", "description": "The customer''s order ID."}}, - "required": ["order_id"], "additionalProperties": false}}}]}' + body: |- + { + "messages": [ + { + "role": "system", + "content": "You are a helpful customer support assistant. Use the supplied tools to assist the user." + }, + { + "role": "user", + "content": "Hi, can you tell me the delivery date for my order?" + }, + { + "role": "assistant", + "content": "Hi there! I can help with that. Can you please provide your order ID?" + }, + { + "role": "user", + "content": "i think it is order_12345" + } + ], + "model": "unused", + "tools": [ + { + "type": "function", + "function": { + "name": "get_delivery_date", + "description": "Get the delivery date for a customer's order. Call this whenever you need to know the delivery date, for example when a customer asks 'Where is my package'", + "parameters": { + "type": "object", + "properties": { + "order_id": { + "type": "string", + "description": "The customer's order ID." + } + }, + "required": [ + "order_id" + ], + "additionalProperties": false + } + } + } + ] + } headers: accept: - application/json @@ -23,69 +56,126 @@ interactions: connection: - keep-alive content-length: - - '842' + - '837' content-type: - application/json host: - test.openai.azure.com user-agent: - - AsyncAzureOpenAI/Python 1.50.0 + - AsyncAzureOpenAI/Python 1.54.3 x-stainless-arch: - - x64 + - arm64 x-stainless-async: - async:asyncio x-stainless-lang: - python x-stainless-os: - - Linux + - MacOS x-stainless-package-version: - - 1.50.0 + - 1.54.3 x-stainless-retry-count: - '0' x-stainless-runtime: - CPython x-stainless-runtime-version: - - 3.10.12 + - 3.12.6 method: POST - uri: https://test.openai.azure.com/openai/deployments/test-azure-deployment/chat/completions?api-version=2023-03-15-preview + uri: https://test.openai.azure.com/openai/deployments/test-azure-deployment/chat/completions?api-version=2024-08-01-preview response: body: - string: '{"choices":[{"finish_reason":"tool_calls","index":0,"message":{"content":null,"role":"assistant","tool_calls":[{"function":{"arguments":"{\"order_id\":\"order_12345\"}","name":"get_delivery_date"},"id":"call_46cgdzJzy50oQJwWeUVWIwC3","type":"function"}]}}],"created":1727964743,"id":"chatcmpl-AEGr1X6ieLFOD5hlXZBx2BL2BrSLe","model":"gpt-4o-mini","object":"chat.completion","system_fingerprint":"fp_878413d04d","usage":{"completion_tokens":19,"prompt_tokens":140,"total_tokens":159}} - - ' + string: |- + { + "choices": [ + { + "content_filter_results": {}, + "finish_reason": "tool_calls", + "index": 0, + "logprobs": null, + "message": { + "content": null, + "role": "assistant", + "tool_calls": [ + { + "function": { + "arguments": "{\n \"order_id\": \"order_12345\"\n}", + "name": "get_delivery_date" + }, + "id": "call_Lm5cpl4sJy5b1FfEjsnbbjlL", + "type": "function" + } + ] + } + } + ], + "created": 1731466225, + "id": "chatcmpl-ASxkX3IDac2dYI6AB8L4iA7SJaNii", + "model": "gpt-4-32k", + "object": "chat.completion", + "prompt_filter_results": [ + { + "prompt_index": 0, + "content_filter_results": { + "hate": { + "filtered": false, + "severity": "safe" + }, + "self_harm": { + "filtered": false, + "severity": "safe" + }, + "sexual": { + "filtered": false, + "severity": "safe" + }, + "violence": { + "filtered": false, + "severity": "safe" + } + } + } + ], + "system_fingerprint": null, + "usage": { + "completion_tokens": 20, + "prompt_tokens": 144, + "total_tokens": 164 + } + } headers: + Cache-Control: + - no-cache, must-revalidate Content-Length: - - '483' + - '780' Content-Type: - application/json Date: - - Thu, 03 Oct 2024 14:12:23 GMT + - Wed, 13 Nov 2024 02:50:25 GMT Set-Cookie: test_set_cookie Strict-Transport-Security: - max-age=31536000; includeSubDomains; preload + access-control-allow-origin: + - '*' apim-request-id: - - 16057ea8-73e9-4aab-997f-4b19bf7fc0f0 + - d0d1d8a8-c031-48c8-b8f5-20fa4a9789ed azureml-model-session: - - d025-20240921204623 - openai-organization: test_openai_org_key + - d160-20241010151341 + openai-organization: test_openai_org_id x-accel-buffering: - 'no' x-content-type-options: - nosniff - x-envoy-upstream-service-time: - - '215' x-ms-client-request-id: - - 16057ea8-73e9-4aab-997f-4b19bf7fc0f0 + - d0d1d8a8-c031-48c8-b8f5-20fa4a9789ed x-ms-rai-invoked: - 'true' x-ms-region: - - East US + - Switzerland North x-ratelimit-remaining-requests: - - '905' + - '71' x-ratelimit-remaining-tokens: - - '87671' + - '79580' x-request-id: - - 8609bc6f-4788-4a2e-9c10-d85497a92928 + - 14c4426a-d72d-4c3c-aa90-5026d7d7e314 status: code: 200 message: OK diff --git a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_async_tools_with_capture_message_content[openai_provider_chat_completions].yaml b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_async_tools_with_capture_message_content[openai_provider_chat_completions].yaml index 25f8895..914e6e8 100644 --- a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_async_tools_with_capture_message_content[openai_provider_chat_completions].yaml +++ b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_async_tools_with_capture_message_content[openai_provider_chat_completions].yaml @@ -1,16 +1,49 @@ interactions: - request: - body: '{"messages": [{"role": "system", "content": "You are a helpful customer - support assistant. Use the supplied tools to assist the user."}, {"role": "user", - "content": "Hi, can you tell me the delivery date for my order?"}, {"role": - "assistant", "content": "Hi there! I can help with that. Can you please provide - your order ID?"}, {"role": "user", "content": "i think it is order_12345"}], - "model": "gpt-4o-mini", "tools": [{"type": "function", "function": {"name": - "get_delivery_date", "description": "Get the delivery date for a customer''s - order. Call this whenever you need to know the delivery date, for example when - a customer asks ''Where is my package''", "parameters": {"type": "object", "properties": - {"order_id": {"type": "string", "description": "The customer''s order ID."}}, - "required": ["order_id"], "additionalProperties": false}}}]}' + body: |- + { + "messages": [ + { + "role": "system", + "content": "You are a helpful customer support assistant. Use the supplied tools to assist the user." + }, + { + "role": "user", + "content": "Hi, can you tell me the delivery date for my order?" + }, + { + "role": "assistant", + "content": "Hi there! I can help with that. Can you please provide your order ID?" + }, + { + "role": "user", + "content": "i think it is order_12345" + } + ], + "model": "gpt-4o-mini", + "tools": [ + { + "type": "function", + "function": { + "name": "get_delivery_date", + "description": "Get the delivery date for a customer's order. Call this whenever you need to know the delivery date, for example when a customer asks 'Where is my package'", + "parameters": { + "type": "object", + "properties": { + "order_id": { + "type": "string", + "description": "The customer's order ID." + } + }, + "required": [ + "order_id" + ], + "additionalProperties": false + } + } + } + ] + } headers: accept: - application/json @@ -27,51 +60,83 @@ interactions: host: - api.openai.com user-agent: - - AsyncOpenAI/Python 1.50.0 + - AsyncOpenAI/Python 1.54.3 x-stainless-arch: - - x64 + - arm64 x-stainless-async: - async:asyncio x-stainless-lang: - python x-stainless-os: - - Linux + - MacOS x-stainless-package-version: - - 1.50.0 + - 1.54.3 x-stainless-retry-count: - '0' x-stainless-runtime: - CPython x-stainless-runtime-version: - - 3.10.12 + - 3.12.6 method: POST uri: https://api.openai.com/v1/chat/completions response: body: - string: "{\n \"id\": \"chatcmpl-AEGr0SsAhppNLpPXpTtnmBiGGViQb\",\n \"object\": - \"chat.completion\",\n \"created\": 1727964742,\n \"model\": \"gpt-4o-mini-2024-07-18\",\n - \ \"choices\": [\n {\n \"index\": 0,\n \"message\": {\n \"role\": - \"assistant\",\n \"content\": null,\n \"tool_calls\": [\n {\n - \ \"id\": \"call_vZtzXVh5oO3k1IpFfuRejWHv\",\n \"type\": - \"function\",\n \"function\": {\n \"name\": \"get_delivery_date\",\n - \ \"arguments\": \"{\\\"order_id\\\":\\\"order_12345\\\"}\"\n - \ }\n }\n ],\n \"refusal\": null\n },\n - \ \"logprobs\": null,\n \"finish_reason\": \"tool_calls\"\n }\n - \ ],\n \"usage\": {\n \"prompt_tokens\": 140,\n \"completion_tokens\": - 19,\n \"total_tokens\": 159,\n \"prompt_tokens_details\": {\n \"cached_tokens\": - 0\n },\n \"completion_tokens_details\": {\n \"reasoning_tokens\": - 0\n }\n },\n \"system_fingerprint\": \"fp_f85bea6784\"\n}\n" + string: |- + { + "id": "chatcmpl-ASfaRyXEFFt9GzMooIy1bDXqjYnWV", + "object": "chat.completion", + "created": 1731396407, + "model": "gpt-4o-mini-2024-07-18", + "choices": [ + { + "index": 0, + "message": { + "role": "assistant", + "content": null, + "tool_calls": [ + { + "id": "call_fW4XFpzxFZ7Rfj5dsDcZTezg", + "type": "function", + "function": { + "name": "get_delivery_date", + "arguments": "{\"order_id\":\"order_12345\"}" + } + } + ], + "refusal": null + }, + "logprobs": null, + "finish_reason": "tool_calls" + } + ], + "usage": { + "prompt_tokens": 140, + "completion_tokens": 19, + "total_tokens": 159, + "prompt_tokens_details": { + "cached_tokens": 0, + "audio_tokens": 0 + }, + "completion_tokens_details": { + "reasoning_tokens": 0, + "audio_tokens": 0, + "accepted_prediction_tokens": 0, + "rejected_prediction_tokens": 0 + } + }, + "system_fingerprint": "fp_0ba0d124f1" + } headers: CF-Cache-Status: - DYNAMIC CF-RAY: - - 8ccd86d4bed9839d-MXP + - 8e14cbb9deeb49d2-SIN Connection: - keep-alive Content-Type: - application/json Date: - - Thu, 03 Oct 2024 14:12:22 GMT + - Tue, 12 Nov 2024 07:26:48 GMT Server: - cloudflare Set-Cookie: test_set_cookie @@ -81,11 +146,13 @@ interactions: - nosniff access-control-expose-headers: - X-Request-ID + alt-svc: + - h3=":443"; ma=86400 content-length: - - '918' + - '1046' openai-organization: test_openai_org_key openai-processing-ms: - - '830' + - '711' openai-version: - '2020-10-01' strict-transport-security: @@ -95,15 +162,15 @@ interactions: x-ratelimit-limit-tokens: - '200000' x-ratelimit-remaining-requests: - - '9995' + - '9979' x-ratelimit-remaining-tokens: - '199921' x-ratelimit-reset-requests: - - 35.224s + - 2m57.53s x-ratelimit-reset-tokens: - 23ms x-request-id: - - req_f20e0904b378e200a663a40c99bad07b + - req_fb7b2d2cbb3f604371ed39bd6692351b status: code: 200 message: OK diff --git a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_async_tools_with_capture_message_content_log_events[azure_provider_chat_completions].yaml b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_async_tools_with_capture_message_content_log_events[azure_provider_chat_completions].yaml index 09c193f..cf3c6e2 100644 --- a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_async_tools_with_capture_message_content_log_events[azure_provider_chat_completions].yaml +++ b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_async_tools_with_capture_message_content_log_events[azure_provider_chat_completions].yaml @@ -1,16 +1,49 @@ interactions: - request: - body: '{"messages": [{"role": "system", "content": "You are a helpful customer - support assistant. Use the supplied tools to assist the user."}, {"role": "user", - "content": "Hi, can you tell me the delivery date for my order?"}, {"role": - "assistant", "content": "Hi there! I can help with that. Can you please provide - your order ID?"}, {"role": "user", "content": "i think it is order_12345"}], - "model": "gpt-4o-mini", "tools": [{"type": "function", "function": {"name": - "get_delivery_date", "description": "Get the delivery date for a customer''s - order. Call this whenever you need to know the delivery date, for example when - a customer asks ''Where is my package''", "parameters": {"type": "object", "properties": - {"order_id": {"type": "string", "description": "The customer''s order ID."}}, - "required": ["order_id"], "additionalProperties": false}}}]}' + body: |- + { + "messages": [ + { + "role": "system", + "content": "You are a helpful customer support assistant. Use the supplied tools to assist the user." + }, + { + "role": "user", + "content": "Hi, can you tell me the delivery date for my order?" + }, + { + "role": "assistant", + "content": "Hi there! I can help with that. Can you please provide your order ID?" + }, + { + "role": "user", + "content": "i think it is order_12345" + } + ], + "model": "unused", + "tools": [ + { + "type": "function", + "function": { + "name": "get_delivery_date", + "description": "Get the delivery date for a customer's order. Call this whenever you need to know the delivery date, for example when a customer asks 'Where is my package'", + "parameters": { + "type": "object", + "properties": { + "order_id": { + "type": "string", + "description": "The customer's order ID." + } + }, + "required": [ + "order_id" + ], + "additionalProperties": false + } + } + } + ] + } headers: accept: - application/json @@ -23,67 +56,126 @@ interactions: connection: - keep-alive content-length: - - '842' + - '837' content-type: - application/json host: - test.openai.azure.com user-agent: - - AsyncAzureOpenAI/Python 1.34.0 + - AsyncAzureOpenAI/Python 1.54.3 x-stainless-arch: - - x64 + - arm64 x-stainless-async: - async:asyncio x-stainless-lang: - python x-stainless-os: - - Linux + - MacOS x-stainless-package-version: - - 1.34.0 + - 1.54.3 + x-stainless-retry-count: + - '0' x-stainless-runtime: - CPython x-stainless-runtime-version: - - 3.10.12 + - 3.12.6 method: POST - uri: https://test.openai.azure.com/openai/deployments/test-azure-deployment/chat/completions?api-version=2023-03-15-preview + uri: https://test.openai.azure.com/openai/deployments/test-azure-deployment/chat/completions?api-version=2024-08-01-preview response: body: - string: '{"choices":[{"finish_reason":"tool_calls","index":0,"message":{"content":null,"role":"assistant","tool_calls":[{"function":{"arguments":"{\"order_id\":\"order_12345\"}","name":"get_delivery_date"},"id":"call_uO2RgeshT5Xmbwg778qN14d5","type":"function"}]}}],"created":1728909027,"id":"chatcmpl-AIEVPAAgrPcEpkQHXamdD9JpNNPep","model":"gpt-4o-mini","object":"chat.completion","system_fingerprint":"fp_878413d04d","usage":{"completion_tokens":19,"prompt_tokens":140,"total_tokens":159}} - - ' + string: |- + { + "choices": [ + { + "content_filter_results": {}, + "finish_reason": "tool_calls", + "index": 0, + "logprobs": null, + "message": { + "content": null, + "role": "assistant", + "tool_calls": [ + { + "function": { + "arguments": "{\n \"order_id\": \"order_12345\"\n}", + "name": "get_delivery_date" + }, + "id": "call_U0QYBadhpy4pBO6jYPm09KvZ", + "type": "function" + } + ] + } + } + ], + "created": 1731466226, + "id": "chatcmpl-ASxkYrqUQVubUzovieQByym7sxgdm", + "model": "gpt-4-32k", + "object": "chat.completion", + "prompt_filter_results": [ + { + "prompt_index": 0, + "content_filter_results": { + "hate": { + "filtered": false, + "severity": "safe" + }, + "self_harm": { + "filtered": false, + "severity": "safe" + }, + "sexual": { + "filtered": false, + "severity": "safe" + }, + "violence": { + "filtered": false, + "severity": "safe" + } + } + } + ], + "system_fingerprint": null, + "usage": { + "completion_tokens": 20, + "prompt_tokens": 144, + "total_tokens": 164 + } + } headers: + Cache-Control: + - no-cache, must-revalidate Content-Length: - - '483' + - '780' Content-Type: - application/json Date: - - Mon, 14 Oct 2024 12:30:27 GMT + - Wed, 13 Nov 2024 02:50:27 GMT Set-Cookie: test_set_cookie Strict-Transport-Security: - max-age=31536000; includeSubDomains; preload + access-control-allow-origin: + - '*' apim-request-id: - - 5a2ef9fb-86d6-4f22-830a-509cf6ffa56a + - cf22ccd0-88ac-4c8c-9165-cc19ab33cc5b azureml-model-session: - - d010-20240925083720 - openai-organization: test_openai_org_key + - d156-20241010120317 + openai-organization: test_openai_org_id x-accel-buffering: - 'no' x-content-type-options: - nosniff - x-envoy-upstream-service-time: - - '270' x-ms-client-request-id: - - 5a2ef9fb-86d6-4f22-830a-509cf6ffa56a + - cf22ccd0-88ac-4c8c-9165-cc19ab33cc5b x-ms-rai-invoked: - 'true' x-ms-region: - - East US + - Switzerland North x-ratelimit-remaining-requests: - - '904' + - '71' x-ratelimit-remaining-tokens: - - '86926' + - '79564' x-request-id: - - dc8bd70f-cf73-4c46-95ce-3ea309c22f45 + - dad29d09-1214-452a-8433-f0a62873e001 status: code: 200 message: OK diff --git a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_async_tools_with_capture_message_content_log_events[openai_provider_chat_completions].yaml b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_async_tools_with_capture_message_content_log_events[openai_provider_chat_completions].yaml index 1f4a595..70521d3 100644 --- a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_async_tools_with_capture_message_content_log_events[openai_provider_chat_completions].yaml +++ b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_async_tools_with_capture_message_content_log_events[openai_provider_chat_completions].yaml @@ -1,16 +1,49 @@ interactions: - request: - body: '{"messages": [{"role": "system", "content": "You are a helpful customer - support assistant. Use the supplied tools to assist the user."}, {"role": "user", - "content": "Hi, can you tell me the delivery date for my order?"}, {"role": - "assistant", "content": "Hi there! I can help with that. Can you please provide - your order ID?"}, {"role": "user", "content": "i think it is order_12345"}], - "model": "gpt-4o-mini", "tools": [{"type": "function", "function": {"name": - "get_delivery_date", "description": "Get the delivery date for a customer''s - order. Call this whenever you need to know the delivery date, for example when - a customer asks ''Where is my package''", "parameters": {"type": "object", "properties": - {"order_id": {"type": "string", "description": "The customer''s order ID."}}, - "required": ["order_id"], "additionalProperties": false}}}]}' + body: |- + { + "messages": [ + { + "role": "system", + "content": "You are a helpful customer support assistant. Use the supplied tools to assist the user." + }, + { + "role": "user", + "content": "Hi, can you tell me the delivery date for my order?" + }, + { + "role": "assistant", + "content": "Hi there! I can help with that. Can you please provide your order ID?" + }, + { + "role": "user", + "content": "i think it is order_12345" + } + ], + "model": "gpt-4o-mini", + "tools": [ + { + "type": "function", + "function": { + "name": "get_delivery_date", + "description": "Get the delivery date for a customer's order. Call this whenever you need to know the delivery date, for example when a customer asks 'Where is my package'", + "parameters": { + "type": "object", + "properties": { + "order_id": { + "type": "string", + "description": "The customer's order ID." + } + }, + "required": [ + "order_id" + ], + "additionalProperties": false + } + } + } + ] + } headers: accept: - application/json @@ -27,49 +60,83 @@ interactions: host: - api.openai.com user-agent: - - AsyncOpenAI/Python 1.34.0 + - AsyncOpenAI/Python 1.54.3 x-stainless-arch: - - x64 + - arm64 x-stainless-async: - async:asyncio x-stainless-lang: - python x-stainless-os: - - Linux + - MacOS x-stainless-package-version: - - 1.34.0 + - 1.54.3 + x-stainless-retry-count: + - '0' x-stainless-runtime: - CPython x-stainless-runtime-version: - - 3.10.12 + - 3.12.6 method: POST uri: https://api.openai.com/v1/chat/completions response: body: - string: "{\n \"id\": \"chatcmpl-AIEVOegIWRWjNVbjxs4iASh4SNKAj\",\n \"object\": - \"chat.completion\",\n \"created\": 1728909026,\n \"model\": \"gpt-4o-mini-2024-07-18\",\n - \ \"choices\": [\n {\n \"index\": 0,\n \"message\": {\n \"role\": - \"assistant\",\n \"content\": null,\n \"tool_calls\": [\n {\n - \ \"id\": \"call_n4WJq7bu6UsgjdqeNYxRmGno\",\n \"type\": - \"function\",\n \"function\": {\n \"name\": \"get_delivery_date\",\n - \ \"arguments\": \"{\\\"order_id\\\":\\\"order_12345\\\"}\"\n - \ }\n }\n ],\n \"refusal\": null\n },\n - \ \"logprobs\": null,\n \"finish_reason\": \"tool_calls\"\n }\n - \ ],\n \"usage\": {\n \"prompt_tokens\": 140,\n \"completion_tokens\": - 19,\n \"total_tokens\": 159,\n \"prompt_tokens_details\": {\n \"cached_tokens\": - 0\n },\n \"completion_tokens_details\": {\n \"reasoning_tokens\": - 0\n }\n },\n \"system_fingerprint\": \"fp_8552ec53e1\"\n}\n" + string: |- + { + "id": "chatcmpl-ASfaSKFvgQzcktnJhUZmtGmdoKwkW", + "object": "chat.completion", + "created": 1731396408, + "model": "gpt-4o-mini-2024-07-18", + "choices": [ + { + "index": 0, + "message": { + "role": "assistant", + "content": null, + "tool_calls": [ + { + "id": "call_TZeQV35RVjT4iAuUXs85nmkt", + "type": "function", + "function": { + "name": "get_delivery_date", + "arguments": "{\"order_id\":\"order_12345\"}" + } + } + ], + "refusal": null + }, + "logprobs": null, + "finish_reason": "tool_calls" + } + ], + "usage": { + "prompt_tokens": 140, + "completion_tokens": 19, + "total_tokens": 159, + "prompt_tokens_details": { + "cached_tokens": 0, + "audio_tokens": 0 + }, + "completion_tokens_details": { + "reasoning_tokens": 0, + "audio_tokens": 0, + "accepted_prediction_tokens": 0, + "rejected_prediction_tokens": 0 + } + }, + "system_fingerprint": "fp_0ba0d124f1" + } headers: CF-Cache-Status: - DYNAMIC CF-RAY: - - 8d2794a2f9a15252-MXP + - 8e14cbc0b9dd81c0-SIN Connection: - keep-alive Content-Type: - application/json Date: - - Mon, 14 Oct 2024 12:30:26 GMT + - Tue, 12 Nov 2024 07:26:49 GMT Server: - cloudflare Set-Cookie: test_set_cookie @@ -82,10 +149,10 @@ interactions: alt-svc: - h3=":443"; ma=86400 content-length: - - '918' + - '1046' openai-organization: test_openai_org_key openai-processing-ms: - - '757' + - '488' openai-version: - '2020-10-01' strict-transport-security: @@ -95,15 +162,15 @@ interactions: x-ratelimit-limit-tokens: - '200000' x-ratelimit-remaining-requests: - - '9995' + - '9978' x-ratelimit-remaining-tokens: - '199921' x-ratelimit-reset-requests: - - 37.186s + - 3m5.077s x-ratelimit-reset-tokens: - 23ms x-request-id: - - req_562b73aa01066c19e08aa19d847e33f7 + - req_dbdc2eb2289e3488dda3261f8b1f8996 status: code: 200 message: OK diff --git a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_basic[azure_provider_chat_completions].yaml b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_basic[azure_provider_chat_completions].yaml index c5cfe13..0ad5ede 100644 --- a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_basic[azure_provider_chat_completions].yaml +++ b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_basic[azure_provider_chat_completions].yaml @@ -1,7 +1,15 @@ interactions: - request: - body: '{"messages": [{"role": "user", "content": "Answer in up to 3 words: Which - ocean contains the falkland islands?"}], "model": "gpt-4o-mini"}' + body: |- + { + "messages": [ + { + "role": "user", + "content": "Answer in up to 3 words: Which ocean contains the falkland islands?" + } + ], + "model": "unused" + } headers: accept: - application/json @@ -14,70 +22,133 @@ interactions: connection: - keep-alive content-length: - - '138' + - '133' content-type: - application/json host: - test.openai.azure.com user-agent: - - AzureOpenAI/Python 1.50.0 + - AzureOpenAI/Python 1.54.3 x-stainless-arch: - - x64 + - arm64 x-stainless-async: - 'false' x-stainless-lang: - python x-stainless-os: - - Linux + - MacOS x-stainless-package-version: - - 1.50.0 + - 1.54.3 x-stainless-retry-count: - '0' x-stainless-runtime: - CPython x-stainless-runtime-version: - - 3.10.12 + - 3.12.6 method: POST - uri: https://test.openai.azure.com/openai/deployments/test-azure-deployment/chat/completions?api-version=2023-03-15-preview + uri: https://test.openai.azure.com/openai/deployments/test-azure-deployment/chat/completions?api-version=2024-08-01-preview response: body: - string: '{"choices":[{"finish_reason":"stop","index":0,"message":{"content":"South - Atlantic Ocean","role":"assistant"}}],"created":1727957193,"id":"chatcmpl-AEEtFi8N27MCQoHr62DvUowImjwEc","model":"gpt-4o-mini","object":"chat.completion","system_fingerprint":"fp_878413d04d","usage":{"completion_tokens":3,"prompt_tokens":24,"total_tokens":27}} - - ' + string: |- + { + "choices": [ + { + "content_filter_results": { + "hate": { + "filtered": false, + "severity": "safe" + }, + "self_harm": { + "filtered": false, + "severity": "safe" + }, + "sexual": { + "filtered": false, + "severity": "safe" + }, + "violence": { + "filtered": false, + "severity": "safe" + } + }, + "finish_reason": "stop", + "index": 0, + "logprobs": null, + "message": { + "content": "Atlantic Ocean", + "role": "assistant" + } + } + ], + "created": 1731466202, + "id": "chatcmpl-ASxkAADVoG0VU3xx1Q0D1afSVpqLQ", + "model": "gpt-4-32k", + "object": "chat.completion", + "prompt_filter_results": [ + { + "prompt_index": 0, + "content_filter_results": { + "hate": { + "filtered": false, + "severity": "safe" + }, + "self_harm": { + "filtered": false, + "severity": "safe" + }, + "sexual": { + "filtered": false, + "severity": "safe" + }, + "violence": { + "filtered": false, + "severity": "safe" + } + } + } + ], + "system_fingerprint": null, + "usage": { + "completion_tokens": 2, + "prompt_tokens": 24, + "total_tokens": 26 + } + } headers: + Cache-Control: + - no-cache, must-revalidate Content-Length: - - '335' + - '805' Content-Type: - application/json Date: - - Thu, 03 Oct 2024 12:06:33 GMT + - Wed, 13 Nov 2024 02:50:01 GMT Set-Cookie: test_set_cookie Strict-Transport-Security: - max-age=31536000; includeSubDomains; preload + access-control-allow-origin: + - '*' apim-request-id: - - 71ac28ce-007b-414e-ab35-f326fc57faa5 + - 31b19ef4-5471-444c-8e6d-1ab2dc748d01 azureml-model-session: - - d009-20240925061008 - openai-organization: test_openai_org_key + - d160-20241010151341 + openai-organization: test_openai_org_id x-accel-buffering: - 'no' x-content-type-options: - nosniff - x-envoy-upstream-service-time: - - '241' x-ms-client-request-id: - - 71ac28ce-007b-414e-ab35-f326fc57faa5 + - 31b19ef4-5471-444c-8e6d-1ab2dc748d01 x-ms-rai-invoked: - 'true' x-ms-region: - - East US + - Switzerland North x-ratelimit-remaining-requests: - - '909' + - '79' x-ratelimit-remaining-tokens: - - '90343' + - '79984' x-request-id: - - 2edfbb9b-c853-42c9-97cc-de74fe7e5d1f + - 89b1115a-9029-4964-b1dd-21d034cc674a status: code: 200 message: OK diff --git a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_basic[ollama_provider_chat_completions].yaml b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_basic[ollama_provider_chat_completions].yaml index 34f3ab9..a30b2c0 100644 --- a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_basic[ollama_provider_chat_completions].yaml +++ b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_basic[ollama_provider_chat_completions].yaml @@ -1,7 +1,15 @@ interactions: - request: - body: '{"messages": [{"role": "user", "content": "Answer in up to 3 words: Which - ocean contains the falkland islands?"}], "model": "qwen2.5:0.5b"}' + body: |- + { + "messages": [ + { + "role": "user", + "content": "Answer in up to 3 words: Which ocean contains the falkland islands?" + } + ], + "model": "qwen2.5:0.5b" + } headers: accept: - application/json @@ -18,38 +26,57 @@ interactions: host: - localhost:11434 user-agent: - - OpenAI/Python 1.50.0 + - OpenAI/Python 1.50.2 x-stainless-arch: - - x64 + - arm64 x-stainless-async: - 'false' x-stainless-lang: - python x-stainless-os: - - Linux + - MacOS x-stainless-package-version: - - 1.50.0 + - 1.50.2 x-stainless-retry-count: - '0' x-stainless-runtime: - CPython x-stainless-runtime-version: - - 3.10.12 + - 3.12.6 method: POST uri: http://localhost:11434/v1/chat/completions response: body: - string: '{"id":"chatcmpl-645","object":"chat.completion","created":1727957194,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"message":{"role":"assistant","content":"The - Falklands Islands are located in the oceans south of South America."},"finish_reason":"stop"}],"usage":{"prompt_tokens":46,"completion_tokens":15,"total_tokens":61}} - - ' + string: |- + { + "id": "chatcmpl-126", + "object": "chat.completion", + "created": 1731311779, + "model": "qwen2.5:0.5b", + "system_fingerprint": "fp_ollama", + "choices": [ + { + "index": 0, + "message": { + "role": "assistant", + "content": "The Atlantic Ocean." + }, + "finish_reason": "stop" + } + ], + "usage": { + "prompt_tokens": 46, + "completion_tokens": 5, + "total_tokens": 51 + } + } headers: Content-Length: - - '358' + - '305' Content-Type: - application/json Date: - - Thu, 03 Oct 2024 12:06:34 GMT + - Mon, 11 Nov 2024 07:56:19 GMT Set-Cookie: test_set_cookie openai-organization: test_openai_org_key status: diff --git a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_basic[openai_provider_chat_completions].yaml b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_basic[openai_provider_chat_completions].yaml index 9024da4..0f02b9a 100644 --- a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_basic[openai_provider_chat_completions].yaml +++ b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_basic[openai_provider_chat_completions].yaml @@ -1,7 +1,15 @@ interactions: - request: - body: '{"messages": [{"role": "user", "content": "Answer in up to 3 words: Which - ocean contains the falkland islands?"}], "model": "gpt-4o-mini"}' + body: |- + { + "messages": [ + { + "role": "user", + "content": "Answer in up to 3 words: Which ocean contains the falkland islands?" + } + ], + "model": "gpt-4o-mini" + } headers: accept: - application/json @@ -18,47 +26,73 @@ interactions: host: - api.openai.com user-agent: - - OpenAI/Python 1.50.0 + - OpenAI/Python 1.54.3 x-stainless-arch: - - x64 + - arm64 x-stainless-async: - 'false' x-stainless-lang: - python x-stainless-os: - - Linux + - MacOS x-stainless-package-version: - - 1.50.0 + - 1.54.3 x-stainless-retry-count: - '0' x-stainless-runtime: - CPython x-stainless-runtime-version: - - 3.10.12 + - 3.12.6 method: POST uri: https://api.openai.com/v1/chat/completions response: body: - string: "{\n \"id\": \"chatcmpl-AEEtEV5mndU1WYBSLgvTpAIKAoYeu\",\n \"object\": - \"chat.completion\",\n \"created\": 1727957192,\n \"model\": \"gpt-4o-mini-2024-07-18\",\n - \ \"choices\": [\n {\n \"index\": 0,\n \"message\": {\n \"role\": - \"assistant\",\n \"content\": \"South Atlantic Ocean.\",\n \"refusal\": - null\n },\n \"logprobs\": null,\n \"finish_reason\": \"stop\"\n - \ }\n ],\n \"usage\": {\n \"prompt_tokens\": 24,\n \"completion_tokens\": - 4,\n \"total_tokens\": 28,\n \"prompt_tokens_details\": {\n \"cached_tokens\": - 0\n },\n \"completion_tokens_details\": {\n \"reasoning_tokens\": - 0\n }\n },\n \"system_fingerprint\": \"fp_f85bea6784\"\n}\n" + string: |- + { + "id": "chatcmpl-ASfa6PzPwTdpKRmM5equ6f0yxNbkr", + "object": "chat.completion", + "created": 1731396386, + "model": "gpt-4o-mini-2024-07-18", + "choices": [ + { + "index": 0, + "message": { + "role": "assistant", + "content": "South Atlantic Ocean.", + "refusal": null + }, + "logprobs": null, + "finish_reason": "stop" + } + ], + "usage": { + "prompt_tokens": 24, + "completion_tokens": 4, + "total_tokens": 28, + "prompt_tokens_details": { + "cached_tokens": 0, + "audio_tokens": 0 + }, + "completion_tokens_details": { + "reasoning_tokens": 0, + "audio_tokens": 0, + "accepted_prediction_tokens": 0, + "rejected_prediction_tokens": 0 + } + }, + "system_fingerprint": "fp_0ba0d124f1" + } headers: CF-Cache-Status: - DYNAMIC CF-RAY: - - 8cccce840dcc4c55-MXP + - 8e14cb33296c5ce4-SIN Connection: - keep-alive Content-Type: - application/json Date: - - Thu, 03 Oct 2024 12:06:32 GMT + - Tue, 12 Nov 2024 07:26:26 GMT Server: - cloudflare Set-Cookie: test_set_cookie @@ -68,11 +102,13 @@ interactions: - nosniff access-control-expose-headers: - X-Request-ID + alt-svc: + - h3=":443"; ma=86400 content-length: - - '643' + - '771' openai-organization: test_openai_org_key openai-processing-ms: - - '144' + - '230' openai-version: - '2020-10-01' strict-transport-security: @@ -90,7 +126,7 @@ interactions: x-ratelimit-reset-tokens: - 10ms x-request-id: - - req_d892784a574fbd033045b660e4c1f4b8 + - req_71c715bc4b4aa7f3a5a4991b13b455c8 status: code: 200 message: OK diff --git a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_basic_with_capture_message_content[azure_provider_chat_completions].yaml b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_basic_with_capture_message_content[azure_provider_chat_completions].yaml index 6965563..62e5895 100644 --- a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_basic_with_capture_message_content[azure_provider_chat_completions].yaml +++ b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_basic_with_capture_message_content[azure_provider_chat_completions].yaml @@ -1,7 +1,15 @@ interactions: - request: - body: '{"messages": [{"role": "user", "content": "Answer in up to 3 words: Which - ocean contains the falkland islands?"}], "model": "gpt-4o-mini"}' + body: |- + { + "messages": [ + { + "role": "user", + "content": "Answer in up to 3 words: Which ocean contains the falkland islands?" + } + ], + "model": "unused" + } headers: accept: - application/json @@ -14,70 +22,133 @@ interactions: connection: - keep-alive content-length: - - '138' + - '133' content-type: - application/json host: - test.openai.azure.com user-agent: - - AzureOpenAI/Python 1.50.0 + - AzureOpenAI/Python 1.54.3 x-stainless-arch: - - x64 + - arm64 x-stainless-async: - 'false' x-stainless-lang: - python x-stainless-os: - - Linux + - MacOS x-stainless-package-version: - - 1.50.0 + - 1.54.3 x-stainless-retry-count: - '0' x-stainless-runtime: - CPython x-stainless-runtime-version: - - 3.10.12 + - 3.12.6 method: POST - uri: https://test.openai.azure.com/openai/deployments/test-azure-deployment/chat/completions?api-version=2023-03-15-preview + uri: https://test.openai.azure.com/openai/deployments/test-azure-deployment/chat/completions?api-version=2024-08-01-preview response: body: - string: '{"choices":[{"finish_reason":"stop","index":0,"message":{"content":"Atlantic - Ocean.","role":"assistant"}}],"created":1727961088,"id":"chatcmpl-AEFu4REQubxeCCkrv6wgeJ4VdN6o5","model":"gpt-4o-mini","object":"chat.completion","system_fingerprint":"fp_878413d04d","usage":{"completion_tokens":3,"prompt_tokens":24,"total_tokens":27}} - - ' + string: |- + { + "choices": [ + { + "content_filter_results": { + "hate": { + "filtered": false, + "severity": "safe" + }, + "self_harm": { + "filtered": false, + "severity": "safe" + }, + "sexual": { + "filtered": false, + "severity": "safe" + }, + "violence": { + "filtered": false, + "severity": "safe" + } + }, + "finish_reason": "stop", + "index": 0, + "logprobs": null, + "message": { + "content": "Atlantic Ocean", + "role": "assistant" + } + } + ], + "created": 1731466210, + "id": "chatcmpl-ASxkIgV0VKpWeEuyJHsem9UEl4fAt", + "model": "gpt-4-32k", + "object": "chat.completion", + "prompt_filter_results": [ + { + "prompt_index": 0, + "content_filter_results": { + "hate": { + "filtered": false, + "severity": "safe" + }, + "self_harm": { + "filtered": false, + "severity": "safe" + }, + "sexual": { + "filtered": false, + "severity": "safe" + }, + "violence": { + "filtered": false, + "severity": "safe" + } + } + } + ], + "system_fingerprint": null, + "usage": { + "completion_tokens": 2, + "prompt_tokens": 24, + "total_tokens": 26 + } + } headers: + Cache-Control: + - no-cache, must-revalidate Content-Length: - - '330' + - '805' Content-Type: - application/json Date: - - Thu, 03 Oct 2024 13:11:28 GMT + - Wed, 13 Nov 2024 02:50:10 GMT Set-Cookie: test_set_cookie Strict-Transport-Security: - max-age=31536000; includeSubDomains; preload + access-control-allow-origin: + - '*' apim-request-id: - - ab1061ae-4e2c-4e4b-8a05-cb6dad53badd + - 47b7e79e-0daf-4994-83c4-a9d0217af3b7 azureml-model-session: - - d006-20240926121537 - openai-organization: test_openai_org_key + - d161-20241010160330 + openai-organization: test_openai_org_id x-accel-buffering: - 'no' x-content-type-options: - nosniff - x-envoy-upstream-service-time: - - '477' x-ms-client-request-id: - - ab1061ae-4e2c-4e4b-8a05-cb6dad53badd + - 47b7e79e-0daf-4994-83c4-a9d0217af3b7 x-ms-rai-invoked: - 'true' x-ms-region: - - East US + - Switzerland North x-ratelimit-remaining-requests: - - '909' + - '73' x-ratelimit-remaining-tokens: - - '90343' + - '79788' x-request-id: - - c7abd511-83f4-417e-9814-fa65b53c144d + - 3d6bc529-270c-4ee1-b864-752625329806 status: code: 200 message: OK diff --git a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_basic_with_capture_message_content[ollama_provider_chat_completions].yaml b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_basic_with_capture_message_content[ollama_provider_chat_completions].yaml index 55419b2..4f57f6c 100644 --- a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_basic_with_capture_message_content[ollama_provider_chat_completions].yaml +++ b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_basic_with_capture_message_content[ollama_provider_chat_completions].yaml @@ -1,7 +1,15 @@ interactions: - request: - body: '{"messages": [{"role": "user", "content": "Answer in up to 3 words: Which - ocean contains the falkland islands?"}], "model": "qwen2.5:0.5b"}' + body: |- + { + "messages": [ + { + "role": "user", + "content": "Answer in up to 3 words: Which ocean contains the falkland islands?" + } + ], + "model": "qwen2.5:0.5b" + } headers: accept: - application/json @@ -18,38 +26,57 @@ interactions: host: - localhost:11434 user-agent: - - OpenAI/Python 1.50.0 + - OpenAI/Python 1.50.2 x-stainless-arch: - - x64 + - arm64 x-stainless-async: - 'false' x-stainless-lang: - python x-stainless-os: - - Linux + - MacOS x-stainless-package-version: - - 1.50.0 + - 1.50.2 x-stainless-retry-count: - '0' x-stainless-runtime: - CPython x-stainless-runtime-version: - - 3.10.12 + - 3.12.6 method: POST uri: http://localhost:11434/v1/chat/completions response: body: - string: '{"id":"chatcmpl-976","object":"chat.completion","created":1727960848,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"message":{"role":"assistant","content":"The - Atlantic Ocean contains the Falkland Islands."},"finish_reason":"stop"}],"usage":{"prompt_tokens":46,"completion_tokens":10,"total_tokens":56}} - - ' + string: |- + { + "id": "chatcmpl-433", + "object": "chat.completion", + "created": 1731311782, + "model": "qwen2.5:0.5b", + "system_fingerprint": "fp_ollama", + "choices": [ + { + "index": 0, + "message": { + "role": "assistant", + "content": "The Atlantic Ocean." + }, + "finish_reason": "stop" + } + ], + "usage": { + "prompt_tokens": 46, + "completion_tokens": 5, + "total_tokens": 51 + } + } headers: Content-Length: - - '336' + - '305' Content-Type: - application/json Date: - - Thu, 03 Oct 2024 13:07:28 GMT + - Mon, 11 Nov 2024 07:56:22 GMT Set-Cookie: test_set_cookie openai-organization: test_openai_org_key status: diff --git a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_basic_with_capture_message_content[openai_provider_chat_completions].yaml b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_basic_with_capture_message_content[openai_provider_chat_completions].yaml index 28f0fe6..b1e1c2a 100644 --- a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_basic_with_capture_message_content[openai_provider_chat_completions].yaml +++ b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_basic_with_capture_message_content[openai_provider_chat_completions].yaml @@ -1,7 +1,15 @@ interactions: - request: - body: '{"messages": [{"role": "user", "content": "Answer in up to 3 words: Which - ocean contains the falkland islands?"}], "model": "gpt-4o-mini"}' + body: |- + { + "messages": [ + { + "role": "user", + "content": "Answer in up to 3 words: Which ocean contains the falkland islands?" + } + ], + "model": "gpt-4o-mini" + } headers: accept: - application/json @@ -18,47 +26,73 @@ interactions: host: - api.openai.com user-agent: - - OpenAI/Python 1.50.0 + - OpenAI/Python 1.54.3 x-stainless-arch: - - x64 + - arm64 x-stainless-async: - 'false' x-stainless-lang: - python x-stainless-os: - - Linux + - MacOS x-stainless-package-version: - - 1.50.0 + - 1.54.3 x-stainless-retry-count: - '0' x-stainless-runtime: - CPython x-stainless-runtime-version: - - 3.10.12 + - 3.12.6 method: POST uri: https://api.openai.com/v1/chat/completions response: body: - string: "{\n \"id\": \"chatcmpl-AEFu3fjzje87q8tfrYWpazqelNIfW\",\n \"object\": - \"chat.completion\",\n \"created\": 1727961087,\n \"model\": \"gpt-4o-mini-2024-07-18\",\n - \ \"choices\": [\n {\n \"index\": 0,\n \"message\": {\n \"role\": - \"assistant\",\n \"content\": \"South Atlantic Ocean.\",\n \"refusal\": - null\n },\n \"logprobs\": null,\n \"finish_reason\": \"stop\"\n - \ }\n ],\n \"usage\": {\n \"prompt_tokens\": 24,\n \"completion_tokens\": - 4,\n \"total_tokens\": 28,\n \"prompt_tokens_details\": {\n \"cached_tokens\": - 0\n },\n \"completion_tokens_details\": {\n \"reasoning_tokens\": - 0\n }\n },\n \"system_fingerprint\": \"fp_f85bea6784\"\n}\n" + string: |- + { + "id": "chatcmpl-ASfaC6FMNUKWFqBJmf9rmRluWyRAF", + "object": "chat.completion", + "created": 1731396392, + "model": "gpt-4o-mini-2024-07-18", + "choices": [ + { + "index": 0, + "message": { + "role": "assistant", + "content": "South Atlantic Ocean.", + "refusal": null + }, + "logprobs": null, + "finish_reason": "stop" + } + ], + "usage": { + "prompt_tokens": 24, + "completion_tokens": 4, + "total_tokens": 28, + "prompt_tokens_details": { + "cached_tokens": 0, + "audio_tokens": 0 + }, + "completion_tokens_details": { + "reasoning_tokens": 0, + "audio_tokens": 0, + "accepted_prediction_tokens": 0, + "rejected_prediction_tokens": 0 + } + }, + "system_fingerprint": "fp_9b78b61c52" + } headers: CF-Cache-Status: - DYNAMIC CF-RAY: - - 8ccd2d980c8a5258-MXP + - 8e14cb5db8012eb6-SIN Connection: - keep-alive Content-Type: - application/json Date: - - Thu, 03 Oct 2024 13:11:27 GMT + - Tue, 12 Nov 2024 07:26:33 GMT Server: - cloudflare Set-Cookie: test_set_cookie @@ -68,11 +102,13 @@ interactions: - nosniff access-control-expose-headers: - X-Request-ID + alt-svc: + - h3=":443"; ma=86400 content-length: - - '643' + - '771' openai-organization: test_openai_org_key openai-processing-ms: - - '285' + - '386' openai-version: - '2020-10-01' strict-transport-security: @@ -82,15 +118,15 @@ interactions: x-ratelimit-limit-tokens: - '200000' x-ratelimit-remaining-requests: - - '9999' + - '9993' x-ratelimit-remaining-tokens: - '199966' x-ratelimit-reset-requests: - - 8.64s + - 54.04s x-ratelimit-reset-tokens: - 10ms x-request-id: - - req_4397ce35e4a59a23e2bcafd3ec37771b + - req_3e642cdb3e05072702a405418b9d3455 status: code: 200 message: OK diff --git a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_basic_with_capture_message_content_log_events[azure_provider_chat_completions].yaml b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_basic_with_capture_message_content_log_events[azure_provider_chat_completions].yaml index 65f4c8d..cb842ef 100644 --- a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_basic_with_capture_message_content_log_events[azure_provider_chat_completions].yaml +++ b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_basic_with_capture_message_content_log_events[azure_provider_chat_completions].yaml @@ -1,7 +1,15 @@ interactions: - request: - body: '{"messages": [{"role": "user", "content": "Answer in up to 3 words: Which - ocean contains the falkland islands?"}], "model": "gpt-4o-mini"}' + body: |- + { + "messages": [ + { + "role": "user", + "content": "Answer in up to 3 words: Which ocean contains the falkland islands?" + } + ], + "model": "unused" + } headers: accept: - application/json @@ -14,68 +22,133 @@ interactions: connection: - keep-alive content-length: - - '138' + - '133' content-type: - application/json host: - test.openai.azure.com user-agent: - - AzureOpenAI/Python 1.34.0 + - AzureOpenAI/Python 1.54.3 x-stainless-arch: - - x64 + - arm64 x-stainless-async: - 'false' x-stainless-lang: - python x-stainless-os: - - Linux + - MacOS x-stainless-package-version: - - 1.34.0 + - 1.54.3 + x-stainless-retry-count: + - '0' x-stainless-runtime: - CPython x-stainless-runtime-version: - - 3.10.12 + - 3.12.6 method: POST - uri: https://test.openai.azure.com/openai/deployments/test-azure-deployment/chat/completions?api-version=2023-03-15-preview + uri: https://test.openai.azure.com/openai/deployments/test-azure-deployment/chat/completions?api-version=2024-08-01-preview response: body: - string: '{"choices":[{"finish_reason":"stop","index":0,"message":{"content":"South - Atlantic Ocean.","role":"assistant"}}],"created":1728909016,"id":"chatcmpl-AIEVEmwAmuw8qGX1PViCfm0kTe9O8","model":"gpt-4o-mini","object":"chat.completion","system_fingerprint":"fp_878413d04d","usage":{"completion_tokens":4,"prompt_tokens":24,"total_tokens":28}} - - ' + string: |- + { + "choices": [ + { + "content_filter_results": { + "hate": { + "filtered": false, + "severity": "safe" + }, + "self_harm": { + "filtered": false, + "severity": "safe" + }, + "sexual": { + "filtered": false, + "severity": "safe" + }, + "violence": { + "filtered": false, + "severity": "safe" + } + }, + "finish_reason": "stop", + "index": 0, + "logprobs": null, + "message": { + "content": "Atlantic Ocean", + "role": "assistant" + } + } + ], + "created": 1731466211, + "id": "chatcmpl-ASxkJuCwyegZk4W2awEhTKyCzstRr", + "model": "gpt-4-32k", + "object": "chat.completion", + "prompt_filter_results": [ + { + "prompt_index": 0, + "content_filter_results": { + "hate": { + "filtered": false, + "severity": "safe" + }, + "self_harm": { + "filtered": false, + "severity": "safe" + }, + "sexual": { + "filtered": false, + "severity": "safe" + }, + "violence": { + "filtered": false, + "severity": "safe" + } + } + } + ], + "system_fingerprint": null, + "usage": { + "completion_tokens": 2, + "prompt_tokens": 24, + "total_tokens": 26 + } + } headers: + Cache-Control: + - no-cache, must-revalidate Content-Length: - - '336' + - '805' Content-Type: - application/json Date: - - Mon, 14 Oct 2024 12:30:16 GMT + - Wed, 13 Nov 2024 02:50:11 GMT Set-Cookie: test_set_cookie Strict-Transport-Security: - max-age=31536000; includeSubDomains; preload + access-control-allow-origin: + - '*' apim-request-id: - - b67935a7-4d51-4ab6-9c26-c099dd0e08b4 + - 2e550e5e-cd45-45db-bec2-e97407157e0b azureml-model-session: - - d021-20240921171145 - openai-organization: test_openai_org_key + - d161-20241010160330 + openai-organization: test_openai_org_id x-accel-buffering: - 'no' x-content-type-options: - nosniff - x-envoy-upstream-service-time: - - '132' x-ms-client-request-id: - - b67935a7-4d51-4ab6-9c26-c099dd0e08b4 + - 2e550e5e-cd45-45db-bec2-e97407157e0b x-ms-rai-invoked: - 'true' x-ms-region: - - East US + - Switzerland North x-ratelimit-remaining-requests: - - '908' + - '72' x-ratelimit-remaining-tokens: - - '89642' + - '79772' x-request-id: - - 3fef4a36-547f-4d50-ad2e-a87c5876562c + - 5e997357-cafa-48b1-ad07-54ea52e08894 status: code: 200 message: OK diff --git a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_basic_with_capture_message_content_log_events[ollama_provider_chat_completions].yaml b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_basic_with_capture_message_content_log_events[ollama_provider_chat_completions].yaml index 6188934..c2ace9b 100644 --- a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_basic_with_capture_message_content_log_events[ollama_provider_chat_completions].yaml +++ b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_basic_with_capture_message_content_log_events[ollama_provider_chat_completions].yaml @@ -1,7 +1,15 @@ interactions: - request: - body: '{"messages": [{"role": "user", "content": "Answer in up to 3 words: Which - ocean contains the falkland islands?"}], "model": "qwen2.5:0.5b"}' + body: |- + { + "messages": [ + { + "role": "user", + "content": "Answer in up to 3 words: Which ocean contains the falkland islands?" + } + ], + "model": "qwen2.5:0.5b" + } headers: accept: - application/json @@ -18,36 +26,57 @@ interactions: host: - localhost:11434 user-agent: - - OpenAI/Python 1.34.0 + - OpenAI/Python 1.50.2 x-stainless-arch: - - x64 + - arm64 x-stainless-async: - 'false' x-stainless-lang: - python x-stainless-os: - - Linux + - MacOS x-stainless-package-version: - - 1.34.0 + - 1.50.2 + x-stainless-retry-count: + - '0' x-stainless-runtime: - CPython x-stainless-runtime-version: - - 3.10.12 + - 3.12.6 method: POST uri: http://localhost:11434/v1/chat/completions response: body: - string: '{"id":"chatcmpl-694","object":"chat.completion","created":1728909017,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"message":{"role":"assistant","content":"Atlantic - Ocean"},"finish_reason":"stop"}],"usage":{"prompt_tokens":46,"completion_tokens":3,"total_tokens":49}} - - ' + string: |- + { + "id": "chatcmpl-913", + "object": "chat.completion", + "created": 1731311782, + "model": "qwen2.5:0.5b", + "system_fingerprint": "fp_ollama", + "choices": [ + { + "index": 0, + "message": { + "role": "assistant", + "content": "Atlantic Ocean" + }, + "finish_reason": "stop" + } + ], + "usage": { + "prompt_tokens": 46, + "completion_tokens": 3, + "total_tokens": 49 + } + } headers: Content-Length: - '300' Content-Type: - application/json Date: - - Mon, 14 Oct 2024 12:30:17 GMT + - Mon, 11 Nov 2024 07:56:22 GMT Set-Cookie: test_set_cookie openai-organization: test_openai_org_key status: diff --git a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_basic_with_capture_message_content_log_events[openai_provider_chat_completions].yaml b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_basic_with_capture_message_content_log_events[openai_provider_chat_completions].yaml index 295e41d..8449c57 100644 --- a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_basic_with_capture_message_content_log_events[openai_provider_chat_completions].yaml +++ b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_basic_with_capture_message_content_log_events[openai_provider_chat_completions].yaml @@ -1,7 +1,15 @@ interactions: - request: - body: '{"messages": [{"role": "user", "content": "Answer in up to 3 words: Which - ocean contains the falkland islands?"}], "model": "gpt-4o-mini"}' + body: |- + { + "messages": [ + { + "role": "user", + "content": "Answer in up to 3 words: Which ocean contains the falkland islands?" + } + ], + "model": "gpt-4o-mini" + } headers: accept: - application/json @@ -18,45 +26,73 @@ interactions: host: - api.openai.com user-agent: - - OpenAI/Python 1.34.0 + - OpenAI/Python 1.54.3 x-stainless-arch: - - x64 + - arm64 x-stainless-async: - 'false' x-stainless-lang: - python x-stainless-os: - - Linux + - MacOS x-stainless-package-version: - - 1.34.0 + - 1.54.3 + x-stainless-retry-count: + - '0' x-stainless-runtime: - CPython x-stainless-runtime-version: - - 3.10.12 + - 3.12.6 method: POST uri: https://api.openai.com/v1/chat/completions response: body: - string: "{\n \"id\": \"chatcmpl-AIEVEddriZ8trWDORY6MdqNgqRkDX\",\n \"object\": - \"chat.completion\",\n \"created\": 1728909016,\n \"model\": \"gpt-4o-mini-2024-07-18\",\n - \ \"choices\": [\n {\n \"index\": 0,\n \"message\": {\n \"role\": - \"assistant\",\n \"content\": \"Atlantic Ocean.\",\n \"refusal\": - null\n },\n \"logprobs\": null,\n \"finish_reason\": \"stop\"\n - \ }\n ],\n \"usage\": {\n \"prompt_tokens\": 24,\n \"completion_tokens\": - 3,\n \"total_tokens\": 27,\n \"prompt_tokens_details\": {\n \"cached_tokens\": - 0\n },\n \"completion_tokens_details\": {\n \"reasoning_tokens\": - 0\n }\n },\n \"system_fingerprint\": \"fp_e2bde53e6e\"\n}\n" + string: |- + { + "id": "chatcmpl-ASfaDugIT60RnKtXL11x7yXKEn7WK", + "object": "chat.completion", + "created": 1731396393, + "model": "gpt-4o-mini-2024-07-18", + "choices": [ + { + "index": 0, + "message": { + "role": "assistant", + "content": "South Atlantic Ocean.", + "refusal": null + }, + "logprobs": null, + "finish_reason": "stop" + } + ], + "usage": { + "prompt_tokens": 24, + "completion_tokens": 4, + "total_tokens": 28, + "prompt_tokens_details": { + "cached_tokens": 0, + "audio_tokens": 0 + }, + "completion_tokens_details": { + "reasoning_tokens": 0, + "audio_tokens": 0, + "accepted_prediction_tokens": 0, + "rejected_prediction_tokens": 0 + } + }, + "system_fingerprint": "fp_0ba0d124f1" + } headers: CF-Cache-Status: - DYNAMIC CF-RAY: - - 8d2794643dccba92-MXP + - 8e14cb6299a3ce22-SIN Connection: - keep-alive Content-Type: - application/json Date: - - Mon, 14 Oct 2024 12:30:16 GMT + - Tue, 12 Nov 2024 07:26:34 GMT Server: - cloudflare Set-Cookie: test_set_cookie @@ -69,10 +105,10 @@ interactions: alt-svc: - h3=":443"; ma=86400 content-length: - - '637' + - '771' openai-organization: test_openai_org_key openai-processing-ms: - - '596' + - '504' openai-version: - '2020-10-01' strict-transport-security: @@ -82,15 +118,15 @@ interactions: x-ratelimit-limit-tokens: - '200000' x-ratelimit-remaining-requests: - - '9998' + - '9992' x-ratelimit-remaining-tokens: - '199966' x-ratelimit-reset-requests: - - 12.705s + - 1m1.903s x-ratelimit-reset-tokens: - 10ms x-request-id: - - req_f69fac0b2dfa1cd26f6b487cb2413713 + - req_e81f4f9516fa6a28cfe3a0141cfb12fb status: code: 200 message: OK diff --git a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_function_calling_with_tools[azure_provider_chat_completions].yaml b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_function_calling_with_tools[azure_provider_chat_completions].yaml index 8e6339b..19d453e 100644 --- a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_function_calling_with_tools[azure_provider_chat_completions].yaml +++ b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_function_calling_with_tools[azure_provider_chat_completions].yaml @@ -1,16 +1,49 @@ interactions: - request: - body: '{"messages": [{"role": "system", "content": "You are a helpful customer - support assistant. Use the supplied tools to assist the user."}, {"role": "user", - "content": "Hi, can you tell me the delivery date for my order?"}, {"role": - "assistant", "content": "Hi there! I can help with that. Can you please provide - your order ID?"}, {"role": "user", "content": "i think it is order_12345"}], - "model": "gpt-4o-mini", "tools": [{"type": "function", "function": {"name": - "get_delivery_date", "description": "Get the delivery date for a customer''s - order. Call this whenever you need to know the delivery date, for example when - a customer asks ''Where is my package''", "parameters": {"type": "object", "properties": - {"order_id": {"type": "string", "description": "The customer''s order ID."}}, - "required": ["order_id"], "additionalProperties": false}}}]}' + body: |- + { + "messages": [ + { + "role": "system", + "content": "You are a helpful customer support assistant. Use the supplied tools to assist the user." + }, + { + "role": "user", + "content": "Hi, can you tell me the delivery date for my order?" + }, + { + "role": "assistant", + "content": "Hi there! I can help with that. Can you please provide your order ID?" + }, + { + "role": "user", + "content": "i think it is order_12345" + } + ], + "model": "unused", + "tools": [ + { + "type": "function", + "function": { + "name": "get_delivery_date", + "description": "Get the delivery date for a customer's order. Call this whenever you need to know the delivery date, for example when a customer asks 'Where is my package'", + "parameters": { + "type": "object", + "properties": { + "order_id": { + "type": "string", + "description": "The customer's order ID." + } + }, + "required": [ + "order_id" + ], + "additionalProperties": false + } + } + } + ] + } headers: accept: - application/json @@ -23,69 +56,126 @@ interactions: connection: - keep-alive content-length: - - '842' + - '837' content-type: - application/json host: - test.openai.azure.com user-agent: - - AzureOpenAI/Python 1.50.0 + - AzureOpenAI/Python 1.54.3 x-stainless-arch: - - x64 + - arm64 x-stainless-async: - 'false' x-stainless-lang: - python x-stainless-os: - - Linux + - MacOS x-stainless-package-version: - - 1.50.0 + - 1.54.3 x-stainless-retry-count: - '0' x-stainless-runtime: - CPython x-stainless-runtime-version: - - 3.10.12 + - 3.12.6 method: POST - uri: https://test.openai.azure.com/openai/deployments/test-azure-deployment/chat/completions?api-version=2023-03-15-preview + uri: https://test.openai.azure.com/openai/deployments/test-azure-deployment/chat/completions?api-version=2024-08-01-preview response: body: - string: '{"choices":[{"finish_reason":"tool_calls","index":0,"message":{"content":null,"role":"assistant","tool_calls":[{"function":{"arguments":"{\"order_id\":\"order_12345\"}","name":"get_delivery_date"},"id":"call_k7neuKSnenJ2HHuw83I6xMuF","type":"function"}]}}],"created":1727962615,"id":"chatcmpl-AEGIh5ygWzdZJL7BvIVeFLmgDSdT7","model":"gpt-4o-mini","object":"chat.completion","system_fingerprint":"fp_878413d04d","usage":{"completion_tokens":19,"prompt_tokens":140,"total_tokens":159}} - - ' + string: |- + { + "choices": [ + { + "content_filter_results": {}, + "finish_reason": "tool_calls", + "index": 0, + "logprobs": null, + "message": { + "content": null, + "role": "assistant", + "tool_calls": [ + { + "function": { + "arguments": "{\n \"order_id\": \"order_12345\"\n}", + "name": "get_delivery_date" + }, + "id": "call_U0QYBadhpy4pBO6jYPm09KvZ", + "type": "function" + } + ] + } + } + ], + "created": 1731466205, + "id": "chatcmpl-ASxkDInQTANJ57p0VfUCuAISgNbW8", + "model": "gpt-4-32k", + "object": "chat.completion", + "prompt_filter_results": [ + { + "prompt_index": 0, + "content_filter_results": { + "hate": { + "filtered": false, + "severity": "safe" + }, + "self_harm": { + "filtered": false, + "severity": "safe" + }, + "sexual": { + "filtered": false, + "severity": "safe" + }, + "violence": { + "filtered": false, + "severity": "safe" + } + } + } + ], + "system_fingerprint": null, + "usage": { + "completion_tokens": 20, + "prompt_tokens": 144, + "total_tokens": 164 + } + } headers: + Cache-Control: + - no-cache, must-revalidate Content-Length: - - '483' + - '780' Content-Type: - application/json Date: - - Thu, 03 Oct 2024 13:36:55 GMT + - Wed, 13 Nov 2024 02:50:05 GMT Set-Cookie: test_set_cookie Strict-Transport-Security: - max-age=31536000; includeSubDomains; preload + access-control-allow-origin: + - '*' apim-request-id: - - f1bc4353-d74e-4ae7-b4ae-3bed4c405009 + - df2e1db5-0016-460d-8d90-eb9347f75c5e azureml-model-session: - - d012-20240925101712 - openai-organization: test_openai_org_key + - d156-20241010120317 + openai-organization: test_openai_org_id x-accel-buffering: - 'no' x-content-type-options: - nosniff - x-envoy-upstream-service-time: - - '292' x-ms-client-request-id: - - f1bc4353-d74e-4ae7-b4ae-3bed4c405009 + - df2e1db5-0016-460d-8d90-eb9347f75c5e x-ms-rai-invoked: - 'true' x-ms-region: - - East US + - Switzerland North x-ratelimit-remaining-requests: - - '909' + - '76' x-ratelimit-remaining-tokens: - - '90299' + - '79836' x-request-id: - - 5a8a5280-4b43-48a7-8b03-f0089eadeb52 + - e1cf808e-3939-40fe-b832-6429ea5b8b50 status: code: 200 message: OK diff --git a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_function_calling_with_tools[ollama_provider_chat_completions].yaml b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_function_calling_with_tools[ollama_provider_chat_completions].yaml index c6596bb..6f1fd3c 100644 --- a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_function_calling_with_tools[ollama_provider_chat_completions].yaml +++ b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_function_calling_with_tools[ollama_provider_chat_completions].yaml @@ -1,16 +1,49 @@ interactions: - request: - body: '{"messages": [{"role": "system", "content": "You are a helpful customer - support assistant. Use the supplied tools to assist the user."}, {"role": "user", - "content": "Hi, can you tell me the delivery date for my order?"}, {"role": - "assistant", "content": "Hi there! I can help with that. Can you please provide - your order ID?"}, {"role": "user", "content": "i think it is order_12345"}], - "model": "qwen2.5:0.5b", "tools": [{"type": "function", "function": {"name": - "get_delivery_date", "description": "Get the delivery date for a customer''s - order. Call this whenever you need to know the delivery date, for example when - a customer asks ''Where is my package''", "parameters": {"type": "object", "properties": - {"order_id": {"type": "string", "description": "The customer''s order ID."}}, - "required": ["order_id"], "additionalProperties": false}}}]}' + body: |- + { + "messages": [ + { + "role": "system", + "content": "You are a helpful customer support assistant. Use the supplied tools to assist the user." + }, + { + "role": "user", + "content": "Hi, can you tell me the delivery date for my order?" + }, + { + "role": "assistant", + "content": "Hi there! I can help with that. Can you please provide your order ID?" + }, + { + "role": "user", + "content": "i think it is order_12345" + } + ], + "model": "qwen2.5:0.5b", + "tools": [ + { + "type": "function", + "function": { + "name": "get_delivery_date", + "description": "Get the delivery date for a customer's order. Call this whenever you need to know the delivery date, for example when a customer asks 'Where is my package'", + "parameters": { + "type": "object", + "properties": { + "order_id": { + "type": "string", + "description": "The customer's order ID." + } + }, + "required": [ + "order_id" + ], + "additionalProperties": false + } + } + } + ] + } headers: accept: - application/json @@ -27,37 +60,67 @@ interactions: host: - localhost:11434 user-agent: - - OpenAI/Python 1.50.0 + - OpenAI/Python 1.50.2 x-stainless-arch: - - x64 + - arm64 x-stainless-async: - 'false' x-stainless-lang: - python x-stainless-os: - - Linux + - MacOS x-stainless-package-version: - - 1.50.0 + - 1.50.2 x-stainless-retry-count: - '0' x-stainless-runtime: - CPython x-stainless-runtime-version: - - 3.10.12 + - 3.12.6 method: POST uri: http://localhost:11434/v1/chat/completions response: body: - string: '{"id":"chatcmpl-363","object":"chat.completion","created":1727962617,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"message":{"role":"assistant","content":"","tool_calls":[{"id":"call_53y5aowa","type":"function","function":{"name":"get_delivery_date","arguments":"{\"order_id\":\"order_12345\"}"}}]},"finish_reason":"tool_calls"}],"usage":{"prompt_tokens":241,"completion_tokens":28,"total_tokens":269}} - - ' + string: |- + { + "id": "chatcmpl-641", + "object": "chat.completion", + "created": 1731311780, + "model": "qwen2.5:0.5b", + "system_fingerprint": "fp_ollama", + "choices": [ + { + "index": 0, + "message": { + "role": "assistant", + "content": "", + "tool_calls": [ + { + "id": "call_ww759p36", + "type": "function", + "function": { + "name": "get_delivery_date", + "arguments": "{\"order_id\":\"order_12345\"}" + } + } + ] + }, + "finish_reason": "tool_calls" + } + ], + "usage": { + "prompt_tokens": 241, + "completion_tokens": 28, + "total_tokens": 269 + } + } headers: Content-Length: - '436' Content-Type: - application/json Date: - - Thu, 03 Oct 2024 13:36:57 GMT + - Mon, 11 Nov 2024 07:56:20 GMT Set-Cookie: test_set_cookie openai-organization: test_openai_org_key status: diff --git a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_function_calling_with_tools[openai_provider_chat_completions].yaml b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_function_calling_with_tools[openai_provider_chat_completions].yaml index 710ec72..bf6a7bd 100644 --- a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_function_calling_with_tools[openai_provider_chat_completions].yaml +++ b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_function_calling_with_tools[openai_provider_chat_completions].yaml @@ -1,16 +1,49 @@ interactions: - request: - body: '{"messages": [{"role": "system", "content": "You are a helpful customer - support assistant. Use the supplied tools to assist the user."}, {"role": "user", - "content": "Hi, can you tell me the delivery date for my order?"}, {"role": - "assistant", "content": "Hi there! I can help with that. Can you please provide - your order ID?"}, {"role": "user", "content": "i think it is order_12345"}], - "model": "gpt-4o-mini", "tools": [{"type": "function", "function": {"name": - "get_delivery_date", "description": "Get the delivery date for a customer''s - order. Call this whenever you need to know the delivery date, for example when - a customer asks ''Where is my package''", "parameters": {"type": "object", "properties": - {"order_id": {"type": "string", "description": "The customer''s order ID."}}, - "required": ["order_id"], "additionalProperties": false}}}]}' + body: |- + { + "messages": [ + { + "role": "system", + "content": "You are a helpful customer support assistant. Use the supplied tools to assist the user." + }, + { + "role": "user", + "content": "Hi, can you tell me the delivery date for my order?" + }, + { + "role": "assistant", + "content": "Hi there! I can help with that. Can you please provide your order ID?" + }, + { + "role": "user", + "content": "i think it is order_12345" + } + ], + "model": "gpt-4o-mini", + "tools": [ + { + "type": "function", + "function": { + "name": "get_delivery_date", + "description": "Get the delivery date for a customer's order. Call this whenever you need to know the delivery date, for example when a customer asks 'Where is my package'", + "parameters": { + "type": "object", + "properties": { + "order_id": { + "type": "string", + "description": "The customer's order ID." + } + }, + "required": [ + "order_id" + ], + "additionalProperties": false + } + } + } + ] + } headers: accept: - application/json @@ -27,51 +60,83 @@ interactions: host: - api.openai.com user-agent: - - OpenAI/Python 1.50.0 + - OpenAI/Python 1.54.3 x-stainless-arch: - - x64 + - arm64 x-stainless-async: - 'false' x-stainless-lang: - python x-stainless-os: - - Linux + - MacOS x-stainless-package-version: - - 1.50.0 + - 1.54.3 x-stainless-retry-count: - '0' x-stainless-runtime: - CPython x-stainless-runtime-version: - - 3.10.12 + - 3.12.6 method: POST uri: https://api.openai.com/v1/chat/completions response: body: - string: "{\n \"id\": \"chatcmpl-AEGIgPL1ReEL2yG6M4MrD3Uw960Bu\",\n \"object\": - \"chat.completion\",\n \"created\": 1727962614,\n \"model\": \"gpt-4o-mini-2024-07-18\",\n - \ \"choices\": [\n {\n \"index\": 0,\n \"message\": {\n \"role\": - \"assistant\",\n \"content\": null,\n \"tool_calls\": [\n {\n - \ \"id\": \"call_Ry1nbnyK4J1JdY3EUcZO8jrr\",\n \"type\": - \"function\",\n \"function\": {\n \"name\": \"get_delivery_date\",\n - \ \"arguments\": \"{\\\"order_id\\\":\\\"order_12345\\\"}\"\n - \ }\n }\n ],\n \"refusal\": null\n },\n - \ \"logprobs\": null,\n \"finish_reason\": \"tool_calls\"\n }\n - \ ],\n \"usage\": {\n \"prompt_tokens\": 140,\n \"completion_tokens\": - 19,\n \"total_tokens\": 159,\n \"prompt_tokens_details\": {\n \"cached_tokens\": - 0\n },\n \"completion_tokens_details\": {\n \"reasoning_tokens\": - 0\n }\n },\n \"system_fingerprint\": \"fp_74ba47b4ac\"\n}\n" + string: |- + { + "id": "chatcmpl-ASfa8hgDJKumHgFlD27gZDNSC8HzZ", + "object": "chat.completion", + "created": 1731396388, + "model": "gpt-4o-mini-2024-07-18", + "choices": [ + { + "index": 0, + "message": { + "role": "assistant", + "content": null, + "tool_calls": [ + { + "id": "call_62Px1tSvshkL8RBrj4p4msgO", + "type": "function", + "function": { + "name": "get_delivery_date", + "arguments": "{\"order_id\":\"order_12345\"}" + } + } + ], + "refusal": null + }, + "logprobs": null, + "finish_reason": "tool_calls" + } + ], + "usage": { + "prompt_tokens": 140, + "completion_tokens": 19, + "total_tokens": 159, + "prompt_tokens_details": { + "cached_tokens": 0, + "audio_tokens": 0 + }, + "completion_tokens_details": { + "reasoning_tokens": 0, + "audio_tokens": 0, + "accepted_prediction_tokens": 0, + "rejected_prediction_tokens": 0 + } + }, + "system_fingerprint": "fp_0ba0d124f1" + } headers: CF-Cache-Status: - DYNAMIC CF-RAY: - - 8ccd52e14cbb59e3-MXP + - 8e14cb439a8e833c-SIN Connection: - keep-alive Content-Type: - application/json Date: - - Thu, 03 Oct 2024 13:36:54 GMT + - Tue, 12 Nov 2024 07:26:29 GMT Server: - cloudflare Set-Cookie: test_set_cookie @@ -81,11 +146,13 @@ interactions: - nosniff access-control-expose-headers: - X-Request-ID + alt-svc: + - h3=":443"; ma=86400 content-length: - - '918' + - '1046' openai-organization: test_openai_org_key openai-processing-ms: - - '415' + - '439' openai-version: - '2020-10-01' strict-transport-security: @@ -95,15 +162,15 @@ interactions: x-ratelimit-limit-tokens: - '200000' x-ratelimit-remaining-requests: - - '9999' + - '9996' x-ratelimit-remaining-tokens: - '199921' x-ratelimit-reset-requests: - - 8.64s + - 32.303s x-ratelimit-reset-tokens: - 23ms x-request-id: - - req_cecc12d701909fe4b166ddbd61e500b1 + - req_7b254752149f0a1a9448df8b312f281c status: code: 200 message: OK diff --git a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_multiple_choices_with_capture_message_content_log_events[azure_provider_chat_completions].yaml b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_multiple_choices_with_capture_message_content_log_events[azure_provider_chat_completions].yaml index 48a08b1..02c52bf 100644 --- a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_multiple_choices_with_capture_message_content_log_events[azure_provider_chat_completions].yaml +++ b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_multiple_choices_with_capture_message_content_log_events[azure_provider_chat_completions].yaml @@ -1,7 +1,16 @@ interactions: - request: - body: '{"messages": [{"role": "user", "content": "Answer in up to 3 words: Which - ocean contains the falkland islands?"}], "model": "gpt-4o-mini", "n": 2}' + body: |- + { + "messages": [ + { + "role": "user", + "content": "Answer in up to 3 words: Which ocean contains the falkland islands?" + } + ], + "model": "unused", + "n": 2 + } headers: accept: - application/json @@ -14,71 +23,160 @@ interactions: connection: - keep-alive content-length: - - '146' + - '141' content-type: - application/json host: - test.openai.azure.com user-agent: - - AzureOpenAI/Python 1.50.0 + - AzureOpenAI/Python 1.54.3 x-stainless-arch: - - x64 + - arm64 x-stainless-async: - 'false' x-stainless-lang: - python x-stainless-os: - - Linux + - MacOS x-stainless-package-version: - - 1.50.0 + - 1.54.3 x-stainless-retry-count: - '0' x-stainless-runtime: - CPython x-stainless-runtime-version: - - 3.10.12 + - 3.12.6 method: POST - uri: https://test.openai.azure.com/openai/deployments/test-azure-deployment/chat/completions?api-version=2023-03-15-preview + uri: https://test.openai.azure.com/openai/deployments/test-azure-deployment/chat/completions?api-version=2024-08-01-preview response: body: - string: '{"choices":[{"finish_reason":"stop","index":0,"message":{"content":"South - Atlantic Ocean.","role":"assistant"}},{"finish_reason":"stop","index":1,"message":{"content":"South - Atlantic Ocean.","role":"assistant"}}],"created":1730200441,"id":"chatcmpl-ANeSfhGk22jizSPywSdR4MGCOdc76","model":"gpt-4o-mini","object":"chat.completion","system_fingerprint":"fp_d54531d9eb","usage":{"completion_tokens":8,"prompt_tokens":24,"total_tokens":32}} - - ' + string: |- + { + "choices": [ + { + "content_filter_results": { + "hate": { + "filtered": false, + "severity": "safe" + }, + "self_harm": { + "filtered": false, + "severity": "safe" + }, + "sexual": { + "filtered": false, + "severity": "safe" + }, + "violence": { + "filtered": false, + "severity": "safe" + } + }, + "finish_reason": "stop", + "index": 0, + "logprobs": null, + "message": { + "content": "Atlantic Ocean", + "role": "assistant" + } + }, + { + "content_filter_results": { + "hate": { + "filtered": false, + "severity": "safe" + }, + "self_harm": { + "filtered": false, + "severity": "safe" + }, + "sexual": { + "filtered": false, + "severity": "safe" + }, + "violence": { + "filtered": false, + "severity": "safe" + } + }, + "finish_reason": "stop", + "index": 1, + "logprobs": null, + "message": { + "content": "Atlantic Ocean", + "role": "assistant" + } + } + ], + "created": 1731466204, + "id": "chatcmpl-ASxkC12M7RgRDgP5GjnYlUwEWQEDo", + "model": "gpt-4-32k", + "object": "chat.completion", + "prompt_filter_results": [ + { + "prompt_index": 0, + "content_filter_results": { + "hate": { + "filtered": false, + "severity": "safe" + }, + "self_harm": { + "filtered": false, + "severity": "safe" + }, + "sexual": { + "filtered": false, + "severity": "safe" + }, + "violence": { + "filtered": false, + "severity": "safe" + } + } + } + ], + "system_fingerprint": null, + "usage": { + "completion_tokens": 4, + "prompt_tokens": 24, + "total_tokens": 28 + } + } headers: + Cache-Control: + - no-cache, must-revalidate Content-Length: - - '436' + - '1128' Content-Type: - application/json Date: - - Tue, 29 Oct 2024 11:14:01 GMT + - Wed, 13 Nov 2024 02:50:03 GMT Set-Cookie: test_set_cookie Strict-Transport-Security: - max-age=31536000; includeSubDomains; preload + access-control-allow-origin: + - '*' apim-request-id: - - f75b87aa-0c69-4819-bb46-4b18a3acc8b1 + - 30e4b1c2-2a66-474f-9158-8043d27f11a2 azureml-model-session: - - d034-20241024145218 - openai-organization: test_openai_org_key + - d156-20241010120317 + openai-organization: test_openai_org_id x-accel-buffering: - 'no' x-content-type-options: - nosniff - x-envoy-upstream-service-time: - - '121' x-ms-client-request-id: - - f75b87aa-0c69-4819-bb46-4b18a3acc8b1 + - 30e4b1c2-2a66-474f-9158-8043d27f11a2 x-ms-rai-invoked: - 'true' x-ms-region: - - East US + - Switzerland North x-ratelimit-remaining-requests: - - '909' + - '77' x-ratelimit-remaining-tokens: - - '89686' + - '79852' x-request-id: - - c68236c0-ed69-4b12-944f-1bc002a4a85d + - 63e3a77f-5291-4257-ba2e-26049d2da567 status: code: 200 message: OK diff --git a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_multiple_choices_with_capture_message_content_log_events[openai_provider_chat_completions].yaml b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_multiple_choices_with_capture_message_content_log_events[openai_provider_chat_completions].yaml index cdb0e9a..748b79e 100644 --- a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_multiple_choices_with_capture_message_content_log_events[openai_provider_chat_completions].yaml +++ b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_multiple_choices_with_capture_message_content_log_events[openai_provider_chat_completions].yaml @@ -1,7 +1,16 @@ interactions: - request: - body: '{"messages": [{"role": "user", "content": "Answer in up to 3 words: Which - ocean contains the falkland islands?"}], "model": "gpt-4o-mini", "n": 2}' + body: |- + { + "messages": [ + { + "role": "user", + "content": "Answer in up to 3 words: Which ocean contains the falkland islands?" + } + ], + "model": "gpt-4o-mini", + "n": 2 + } headers: accept: - application/json @@ -18,50 +27,83 @@ interactions: host: - api.openai.com user-agent: - - OpenAI/Python 1.50.0 + - OpenAI/Python 1.54.3 x-stainless-arch: - - x64 + - arm64 x-stainless-async: - 'false' x-stainless-lang: - python x-stainless-os: - - Linux + - MacOS x-stainless-package-version: - - 1.50.0 + - 1.54.3 x-stainless-retry-count: - '0' x-stainless-runtime: - CPython x-stainless-runtime-version: - - 3.10.12 + - 3.12.6 method: POST uri: https://api.openai.com/v1/chat/completions response: body: - string: "{\n \"id\": \"chatcmpl-ANeSeH4fwAhE7sU211OIx0aI6K16o\",\n \"object\": - \"chat.completion\",\n \"created\": 1730200440,\n \"model\": \"gpt-4o-mini-2024-07-18\",\n - \ \"choices\": [\n {\n \"index\": 0,\n \"message\": {\n \"role\": - \"assistant\",\n \"content\": \"South Atlantic Ocean.\",\n \"refusal\": - null\n },\n \"logprobs\": null,\n \"finish_reason\": \"stop\"\n - \ },\n {\n \"index\": 1,\n \"message\": {\n \"role\": - \"assistant\",\n \"content\": \"South Atlantic Ocean.\",\n \"refusal\": - null\n },\n \"logprobs\": null,\n \"finish_reason\": \"stop\"\n - \ }\n ],\n \"usage\": {\n \"prompt_tokens\": 24,\n \"completion_tokens\": - 8,\n \"total_tokens\": 32,\n \"prompt_tokens_details\": {\n \"cached_tokens\": - 0\n },\n \"completion_tokens_details\": {\n \"reasoning_tokens\": - 0\n }\n },\n \"system_fingerprint\": \"fp_8bfc6a7dc2\"\n}\n" + string: |- + { + "id": "chatcmpl-ASfa8r4rkn4OQSmqDqjdHf2UtP4Gn", + "object": "chat.completion", + "created": 1731396388, + "model": "gpt-4o-mini-2024-07-18", + "choices": [ + { + "index": 0, + "message": { + "role": "assistant", + "content": "South Atlantic Ocean.", + "refusal": null + }, + "logprobs": null, + "finish_reason": "stop" + }, + { + "index": 1, + "message": { + "role": "assistant", + "content": "South Atlantic Ocean.", + "refusal": null + }, + "logprobs": null, + "finish_reason": "stop" + } + ], + "usage": { + "prompt_tokens": 24, + "completion_tokens": 8, + "total_tokens": 32, + "prompt_tokens_details": { + "cached_tokens": 0, + "audio_tokens": 0 + }, + "completion_tokens_details": { + "reasoning_tokens": 0, + "audio_tokens": 0, + "accepted_prediction_tokens": 0, + "rejected_prediction_tokens": 0 + } + }, + "system_fingerprint": "fp_0ba0d124f1" + } headers: CF-Cache-Status: - DYNAMIC CF-RAY: - - 8da2bd4efc765232-MXP + - 8e14cb3e397c40c8-SIN Connection: - keep-alive Content-Type: - application/json Date: - - Tue, 29 Oct 2024 11:14:01 GMT + - Tue, 12 Nov 2024 07:26:28 GMT Server: - cloudflare Set-Cookie: test_set_cookie @@ -74,10 +116,10 @@ interactions: alt-svc: - h3=":443"; ma=86400 content-length: - - '853' + - '981' openai-organization: test_openai_org_key openai-processing-ms: - - '555' + - '485' openai-version: - '2020-10-01' strict-transport-security: @@ -87,15 +129,15 @@ interactions: x-ratelimit-limit-tokens: - '200000' x-ratelimit-remaining-requests: - - '9999' + - '9997' x-ratelimit-remaining-tokens: - '199950' x-ratelimit-reset-requests: - - 8.64s + - 24.512s x-ratelimit-reset-tokens: - 15ms x-request-id: - - req_208e8d7f784c381eb55ac6769c9a9597 + - req_73c1d28e478e50ab120bd3f3a25eee76 status: code: 200 message: OK diff --git a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_stream[azure_provider_chat_completions].yaml b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_stream[azure_provider_chat_completions].yaml index 7e39958..26fa7ba 100644 --- a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_stream[azure_provider_chat_completions].yaml +++ b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_stream[azure_provider_chat_completions].yaml @@ -1,7 +1,16 @@ interactions: - request: - body: '{"messages": [{"role": "user", "content": "Answer in up to 3 words: Which - ocean contains the falkland islands?"}], "model": "gpt-4o-mini", "stream": true}' + body: |- + { + "messages": [ + { + "role": "user", + "content": "Answer in up to 3 words: Which ocean contains the falkland islands?" + } + ], + "model": "unused", + "stream": true + } headers: accept: - application/json @@ -14,88 +23,81 @@ interactions: connection: - keep-alive content-length: - - '154' + - '149' content-type: - application/json host: - test.openai.azure.com user-agent: - - AzureOpenAI/Python 1.50.0 + - AzureOpenAI/Python 1.54.3 x-stainless-arch: - - x64 + - arm64 x-stainless-async: - 'false' x-stainless-lang: - python x-stainless-os: - - Linux + - MacOS x-stainless-package-version: - - 1.50.0 + - 1.54.3 x-stainless-retry-count: - '0' x-stainless-runtime: - CPython x-stainless-runtime-version: - - 3.10.12 + - 3.12.6 method: POST - uri: https://test.openai.azure.com/openai/deployments/test-azure-deployment/chat/completions?api-version=2023-03-15-preview + uri: https://test.openai.azure.com/openai/deployments/test-azure-deployment/chat/completions?api-version=2024-08-01-preview response: body: - string: 'data: {"choices":[{"delta":{"role":"assistant"},"finish_reason":null,"index":0}],"created":1727963265,"id":"chatcmpl-AEGTBkVVthwTc3DgRp6RGKJxyY1pE","model":"gpt-4o-mini","object":"chat.completion.chunk","system_fingerprint":"fp_878413d04d"} - - - data: {"choices":[{"delta":{"content":"South"},"finish_reason":null,"index":0}],"created":1727963265,"id":"chatcmpl-AEGTBkVVthwTc3DgRp6RGKJxyY1pE","model":"gpt-4o-mini","object":"chat.completion.chunk","system_fingerprint":"fp_878413d04d"} - - - data: {"choices":[{"delta":{"content":" Atlantic"},"finish_reason":null,"index":0}],"created":1727963265,"id":"chatcmpl-AEGTBkVVthwTc3DgRp6RGKJxyY1pE","model":"gpt-4o-mini","object":"chat.completion.chunk","system_fingerprint":"fp_878413d04d"} + string: |+ + data: {"choices":[],"created":0,"id":"","model":"","object":"","prompt_filter_results":[{"prompt_index":0,"content_filter_results":{"hate":{"filtered":false,"severity":"safe"},"self_harm":{"filtered":false,"severity":"safe"},"sexual":{"filtered":false,"severity":"safe"},"violence":{"filtered":false,"severity":"safe"}}}]} + data: {"choices":[{"content_filter_results":{},"delta":{"content":"","role":"assistant"},"finish_reason":null,"index":0,"logprobs":null}],"created":1731466212,"id":"chatcmpl-ASxkK7GCpziJMmUFp08jG5xb3Rr9K","model":"gpt-4-32k","object":"chat.completion.chunk","system_fingerprint":null} - data: {"choices":[{"delta":{"content":" Ocean"},"finish_reason":null,"index":0}],"created":1727963265,"id":"chatcmpl-AEGTBkVVthwTc3DgRp6RGKJxyY1pE","model":"gpt-4o-mini","object":"chat.completion.chunk","system_fingerprint":"fp_878413d04d"} + data: {"choices":[{"content_filter_results":{"hate":{"filtered":false,"severity":"safe"},"self_harm":{"filtered":false,"severity":"safe"},"sexual":{"filtered":false,"severity":"safe"},"violence":{"filtered":false,"severity":"safe"}},"delta":{"content":"Atlantic"},"finish_reason":null,"index":0,"logprobs":null}],"created":1731466212,"id":"chatcmpl-ASxkK7GCpziJMmUFp08jG5xb3Rr9K","model":"gpt-4-32k","object":"chat.completion.chunk","system_fingerprint":null} + data: {"choices":[{"content_filter_results":{"hate":{"filtered":false,"severity":"safe"},"self_harm":{"filtered":false,"severity":"safe"},"sexual":{"filtered":false,"severity":"safe"},"violence":{"filtered":false,"severity":"safe"}},"delta":{"content":" Ocean"},"finish_reason":null,"index":0,"logprobs":null}],"created":1731466212,"id":"chatcmpl-ASxkK7GCpziJMmUFp08jG5xb3Rr9K","model":"gpt-4-32k","object":"chat.completion.chunk","system_fingerprint":null} - data: {"choices":[{"delta":{"content":"."},"finish_reason":null,"index":0}],"created":1727963265,"id":"chatcmpl-AEGTBkVVthwTc3DgRp6RGKJxyY1pE","model":"gpt-4o-mini","object":"chat.completion.chunk","system_fingerprint":"fp_878413d04d"} - - - data: {"choices":[{"delta":{},"finish_reason":"stop","index":0}],"created":1727963265,"id":"chatcmpl-AEGTBkVVthwTc3DgRp6RGKJxyY1pE","model":"gpt-4o-mini","object":"chat.completion.chunk","system_fingerprint":"fp_878413d04d"} - + data: {"choices":[{"content_filter_results":{},"delta":{},"finish_reason":"stop","index":0,"logprobs":null}],"created":1731466212,"id":"chatcmpl-ASxkK7GCpziJMmUFp08jG5xb3Rr9K","model":"gpt-4-32k","object":"chat.completion.chunk","system_fingerprint":null} data: [DONE] - - ' headers: + Cache-Control: + - no-cache, must-revalidate Content-Type: - - text/event-stream; charset=utf-8 + - text/event-stream Date: - - Thu, 03 Oct 2024 13:47:44 GMT + - Wed, 13 Nov 2024 02:50:11 GMT Set-Cookie: test_set_cookie Strict-Transport-Security: - max-age=31536000; includeSubDomains; preload Transfer-Encoding: - chunked + access-control-allow-origin: + - '*' apim-request-id: - - b9033efa-7880-4d4d-a9cb-48b17c2f85ad + - f44f824f-ebe0-4d3b-8adf-8f5bce688665 azureml-model-session: - - d014-20240925133946 - openai-organization: test_openai_org_key + - d160-20241010151341 + openai-organization: test_openai_org_id x-accel-buffering: - 'no' x-content-type-options: - nosniff - x-envoy-upstream-service-time: - - '149' x-ms-client-request-id: - - b9033efa-7880-4d4d-a9cb-48b17c2f85ad + - f44f824f-ebe0-4d3b-8adf-8f5bce688665 x-ms-rai-invoked: - 'true' x-ms-region: - - East US + - Switzerland North x-ratelimit-remaining-requests: - - '909' + - '72' x-ratelimit-remaining-tokens: - - '90343' + - '79756' x-request-id: - - fd5e0272-e578-4eab-b87f-b62c33dabff3 + - e3a9c20c-3fc2-42e1-8183-6c4f32220f6e status: code: 200 message: OK diff --git a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_stream[ollama_provider_chat_completions].yaml b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_stream[ollama_provider_chat_completions].yaml index d930e76..a522fee 100644 --- a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_stream[ollama_provider_chat_completions].yaml +++ b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_stream[ollama_provider_chat_completions].yaml @@ -1,8 +1,16 @@ interactions: - request: - body: '{"messages": [{"role": "user", "content": "Answer in up to 3 words: Which - ocean contains the falkland islands?"}], "model": "qwen2.5:0.5b", "stream": - true}' + body: |- + { + "messages": [ + { + "role": "user", + "content": "Answer in up to 3 words: Which ocean contains the falkland islands?" + } + ], + "model": "qwen2.5:0.5b", + "stream": true + } headers: accept: - application/json @@ -19,333 +27,43 @@ interactions: host: - localhost:11434 user-agent: - - OpenAI/Python 1.50.0 + - OpenAI/Python 1.50.2 x-stainless-arch: - - x64 + - arm64 x-stainless-async: - 'false' x-stainless-lang: - python x-stainless-os: - - Linux + - MacOS x-stainless-package-version: - - 1.50.0 + - 1.50.2 x-stainless-retry-count: - '0' x-stainless-runtime: - CPython x-stainless-runtime-version: - - 3.10.12 + - 3.12.6 method: POST uri: http://localhost:11434/v1/chat/completions response: body: - string: 'data: {"id":"chatcmpl-415","object":"chat.completion.chunk","created":1727963266,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"The"},"finish_reason":null}]} + string: |+ + data: {"id":"chatcmpl-702","object":"chat.completion.chunk","created":1731311782,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"Atlantic"},"finish_reason":null}]} + data: {"id":"chatcmpl-702","object":"chat.completion.chunk","created":1731311782,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" Sea"},"finish_reason":null}]} - data: {"id":"chatcmpl-415","object":"chat.completion.chunk","created":1727963266,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - Falk"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-415","object":"chat.completion.chunk","created":1727963266,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"land"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-415","object":"chat.completion.chunk","created":1727963266,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - Islands"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-415","object":"chat.completion.chunk","created":1727963266,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":","},"finish_reason":null}]} - - - data: {"id":"chatcmpl-415","object":"chat.completion.chunk","created":1727963266,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - also"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-415","object":"chat.completion.chunk","created":1727963266,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - known"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-415","object":"chat.completion.chunk","created":1727963266,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - as"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-415","object":"chat.completion.chunk","created":1727963266,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - the"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-415","object":"chat.completion.chunk","created":1727963266,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - Arg"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-415","object":"chat.completion.chunk","created":1727963266,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"entin"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-415","object":"chat.completion.chunk","created":1727963266,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"ian"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-415","object":"chat.completion.chunk","created":1727963266,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - Islands"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-415","object":"chat.completion.chunk","created":1727963266,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - or"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-415","object":"chat.completion.chunk","created":1727963266,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - British"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-415","object":"chat.completion.chunk","created":1727963266,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - South"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-415","object":"chat.completion.chunk","created":1727963266,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - America"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-415","object":"chat.completion.chunk","created":1727963266,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - Land"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-415","object":"chat.completion.chunk","created":1727963266,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - ("},"finish_reason":null}]} - - - data: {"id":"chatcmpl-415","object":"chat.completion.chunk","created":1727963266,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"BS"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-415","object":"chat.completion.chunk","created":1727963266,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"AL"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-415","object":"chat.completion.chunk","created":1727963266,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"),"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-415","object":"chat.completion.chunk","created":1727963266,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - is"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-415","object":"chat.completion.chunk","created":1727963267,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - an"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-415","object":"chat.completion.chunk","created":1727963267,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - arch"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-415","object":"chat.completion.chunk","created":1727963267,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"ipel"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-415","object":"chat.completion.chunk","created":1727963267,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"ago"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-415","object":"chat.completion.chunk","created":1727963267,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - of"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-415","object":"chat.completion.chunk","created":1727963267,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - several"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-415","object":"chat.completion.chunk","created":1727963267,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - small"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-415","object":"chat.completion.chunk","created":1727963267,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - islands"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-415","object":"chat.completion.chunk","created":1727963267,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - and"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-415","object":"chat.completion.chunk","created":1727963267,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - pen"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-415","object":"chat.completion.chunk","created":1727963267,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"ins"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-415","object":"chat.completion.chunk","created":1727963267,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"ulas"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-415","object":"chat.completion.chunk","created":1727963267,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - located"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-415","object":"chat.completion.chunk","created":1727963267,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - off"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-415","object":"chat.completion.chunk","created":1727963267,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - the"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-415","object":"chat.completion.chunk","created":1727963267,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - coast"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-415","object":"chat.completion.chunk","created":1727963267,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - of"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-415","object":"chat.completion.chunk","created":1727963267,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - Argentina"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-415","object":"chat.completion.chunk","created":1727963267,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"."},"finish_reason":null}]} - - - data: {"id":"chatcmpl-415","object":"chat.completion.chunk","created":1727963267,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - It"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-415","object":"chat.completion.chunk","created":1727963267,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - contains"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-415","object":"chat.completion.chunk","created":1727963267,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - nine"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-415","object":"chat.completion.chunk","created":1727963267,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - unin"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-415","object":"chat.completion.chunk","created":1727963267,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"hab"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-415","object":"chat.completion.chunk","created":1727963267,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"ited"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-415","object":"chat.completion.chunk","created":1727963267,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - Falk"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-415","object":"chat.completion.chunk","created":1727963267,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"land"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-415","object":"chat.completion.chunk","created":1727963267,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - Islands"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-415","object":"chat.completion.chunk","created":1727963267,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":","},"finish_reason":null}]} - - - data: {"id":"chatcmpl-415","object":"chat.completion.chunk","created":1727963267,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - plus"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-415","object":"chat.completion.chunk","created":1727963267,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - a"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-415","object":"chat.completion.chunk","created":1727963267,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - mix"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-415","object":"chat.completion.chunk","created":1727963267,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - of"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-415","object":"chat.completion.chunk","created":1727963267,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - unin"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-415","object":"chat.completion.chunk","created":1727963267,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"hab"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-415","object":"chat.completion.chunk","created":1727963267,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"itable"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-415","object":"chat.completion.chunk","created":1727963267,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - territory"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-415","object":"chat.completion.chunk","created":1727963267,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - and"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-415","object":"chat.completion.chunk","created":1727963267,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - other"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-415","object":"chat.completion.chunk","created":1727963267,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - small"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-415","object":"chat.completion.chunk","created":1727963267,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - features"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-415","object":"chat.completion.chunk","created":1727963267,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - that"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-415","object":"chat.completion.chunk","created":1727963267,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - are"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-415","object":"chat.completion.chunk","created":1727963267,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - not"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-415","object":"chat.completion.chunk","created":1727963267,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - considered"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-415","object":"chat.completion.chunk","created":1727963267,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - part"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-415","object":"chat.completion.chunk","created":1727963267,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - of"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-415","object":"chat.completion.chunk","created":1727963267,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - the"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-415","object":"chat.completion.chunk","created":1727963267,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - Falk"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-415","object":"chat.completion.chunk","created":1727963267,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"land"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-415","object":"chat.completion.chunk","created":1727963267,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - Islands"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-415","object":"chat.completion.chunk","created":1727963267,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"''"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-415","object":"chat.completion.chunk","created":1727963267,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - current"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-415","object":"chat.completion.chunk","created":1727963267,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - administrative"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-415","object":"chat.completion.chunk","created":1727963267,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - divisions"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-415","object":"chat.completion.chunk","created":1727963267,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"."},"finish_reason":null}]} - - - data: {"id":"chatcmpl-415","object":"chat.completion.chunk","created":1727963267,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":"stop"}]} + data: {"id":"chatcmpl-702","object":"chat.completion.chunk","created":1731311782,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"."},"finish_reason":null}]} + data: {"id":"chatcmpl-702","object":"chat.completion.chunk","created":1731311782,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":"stop"}]} data: [DONE] - - ' headers: Content-Type: - text/event-stream Date: - - Thu, 03 Oct 2024 13:47:46 GMT + - Mon, 11 Nov 2024 07:56:22 GMT Set-Cookie: test_set_cookie Transfer-Encoding: - chunked diff --git a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_stream[openai_provider_chat_completions].yaml b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_stream[openai_provider_chat_completions].yaml index 510c06d..5201fbd 100644 --- a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_stream[openai_provider_chat_completions].yaml +++ b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_stream[openai_provider_chat_completions].yaml @@ -1,7 +1,16 @@ interactions: - request: - body: '{"messages": [{"role": "user", "content": "Answer in up to 3 words: Which - ocean contains the falkland islands?"}], "model": "gpt-4o-mini", "stream": true}' + body: |- + { + "messages": [ + { + "role": "user", + "content": "Answer in up to 3 words: Which ocean contains the falkland islands?" + } + ], + "model": "gpt-4o-mini", + "stream": true + } headers: accept: - application/json @@ -18,62 +27,53 @@ interactions: host: - api.openai.com user-agent: - - OpenAI/Python 1.50.0 + - OpenAI/Python 1.54.3 x-stainless-arch: - - x64 + - arm64 x-stainless-async: - 'false' x-stainless-lang: - python x-stainless-os: - - Linux + - MacOS x-stainless-package-version: - - 1.50.0 + - 1.54.3 x-stainless-retry-count: - '0' x-stainless-runtime: - CPython x-stainless-runtime-version: - - 3.10.12 + - 3.12.6 method: POST uri: https://api.openai.com/v1/chat/completions response: body: - string: 'data: {"id":"chatcmpl-AEGTAvX2YSIO9EQwMleHTB91Cgn4G","object":"chat.completion.chunk","created":1727963264,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_74ba47b4ac","choices":[{"index":0,"delta":{"role":"assistant","content":"","refusal":null},"logprobs":null,"finish_reason":null}]} + string: |+ + data: {"id":"chatcmpl-ASfaENPdLwpR8Jo5gHFiIL9tuklHK","object":"chat.completion.chunk","created":1731396394,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_0ba0d124f1","choices":[{"index":0,"delta":{"role":"assistant","content":"","refusal":null},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-ASfaENPdLwpR8Jo5gHFiIL9tuklHK","object":"chat.completion.chunk","created":1731396394,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_0ba0d124f1","choices":[{"index":0,"delta":{"content":"South"},"logprobs":null,"finish_reason":null}]} - data: {"id":"chatcmpl-AEGTAvX2YSIO9EQwMleHTB91Cgn4G","object":"chat.completion.chunk","created":1727963264,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_74ba47b4ac","choices":[{"index":0,"delta":{"content":"South"},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-ASfaENPdLwpR8Jo5gHFiIL9tuklHK","object":"chat.completion.chunk","created":1731396394,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_0ba0d124f1","choices":[{"index":0,"delta":{"content":" Atlantic"},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-ASfaENPdLwpR8Jo5gHFiIL9tuklHK","object":"chat.completion.chunk","created":1731396394,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_0ba0d124f1","choices":[{"index":0,"delta":{"content":" Ocean"},"logprobs":null,"finish_reason":null}]} - data: {"id":"chatcmpl-AEGTAvX2YSIO9EQwMleHTB91Cgn4G","object":"chat.completion.chunk","created":1727963264,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_74ba47b4ac","choices":[{"index":0,"delta":{"content":" - Atlantic"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-AEGTAvX2YSIO9EQwMleHTB91Cgn4G","object":"chat.completion.chunk","created":1727963264,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_74ba47b4ac","choices":[{"index":0,"delta":{"content":" - Ocean"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-AEGTAvX2YSIO9EQwMleHTB91Cgn4G","object":"chat.completion.chunk","created":1727963264,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_74ba47b4ac","choices":[{"index":0,"delta":{"content":"."},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-AEGTAvX2YSIO9EQwMleHTB91Cgn4G","object":"chat.completion.chunk","created":1727963264,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_74ba47b4ac","choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"stop"}]} + data: {"id":"chatcmpl-ASfaENPdLwpR8Jo5gHFiIL9tuklHK","object":"chat.completion.chunk","created":1731396394,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_0ba0d124f1","choices":[{"index":0,"delta":{"content":"."},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-ASfaENPdLwpR8Jo5gHFiIL9tuklHK","object":"chat.completion.chunk","created":1731396394,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_0ba0d124f1","choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"stop"}]} data: [DONE] - - ' headers: CF-Cache-Status: - DYNAMIC CF-RAY: - - 8ccd62c16ff883b4-MXP + - 8e14cb681b085ce4-SIN Connection: - keep-alive Content-Type: - text/event-stream; charset=utf-8 Date: - - Thu, 03 Oct 2024 13:47:44 GMT + - Tue, 12 Nov 2024 07:26:34 GMT Server: - cloudflare Set-Cookie: test_set_cookie @@ -87,7 +87,7 @@ interactions: - h3=":443"; ma=86400 openai-organization: test_openai_org_key openai-processing-ms: - - '118' + - '296' openai-version: - '2020-10-01' strict-transport-security: @@ -97,15 +97,15 @@ interactions: x-ratelimit-limit-tokens: - '200000' x-ratelimit-remaining-requests: - - '9999' + - '9991' x-ratelimit-remaining-tokens: - '199966' x-ratelimit-reset-requests: - - 8.64s + - 1m9.662s x-ratelimit-reset-tokens: - 10ms x-request-id: - - req_ffbb4814d7a917d085dbd62f0361fcbb + - req_973733f72456f5c3cd522d26e9e214f8 status: code: 200 message: OK diff --git a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_stream_with_include_usage_option[azure_provider_chat_completions].yaml b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_stream_with_include_usage_option[azure_provider_chat_completions].yaml index 0d8517e..95cbe2f 100644 --- a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_stream_with_include_usage_option[azure_provider_chat_completions].yaml +++ b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_stream_with_include_usage_option[azure_provider_chat_completions].yaml @@ -1,8 +1,19 @@ interactions: - request: - body: '{"messages": [{"role": "user", "content": "Answer in up to 3 words: Which - ocean contains the falkland islands?"}], "model": "gpt-4o-mini", "stream": true, - "stream_options": {"include_usage": true}}' + body: |- + { + "messages": [ + { + "role": "user", + "content": "Answer in up to 3 words: Which ocean contains the falkland islands?" + } + ], + "model": "unused", + "stream": true, + "stream_options": { + "include_usage": true + } + } headers: accept: - application/json @@ -15,91 +26,83 @@ interactions: connection: - keep-alive content-length: - - '197' + - '192' content-type: - application/json host: - test.openai.azure.com user-agent: - - AzureOpenAI/Python 1.50.0 + - AzureOpenAI/Python 1.54.3 x-stainless-arch: - - x64 + - arm64 x-stainless-async: - 'false' x-stainless-lang: - python x-stainless-os: - - Linux + - MacOS x-stainless-package-version: - - 1.50.0 + - 1.54.3 x-stainless-retry-count: - '0' x-stainless-runtime: - CPython x-stainless-runtime-version: - - 3.10.12 + - 3.12.6 method: POST - uri: https://test.openai.azure.com/openai/deployments/test-azure-deployment/chat/completions?api-version=2023-03-15-preview + uri: https://test.openai.azure.com/openai/deployments/test-azure-deployment/chat/completions?api-version=2024-08-01-preview response: body: - string: 'data: {"choices":[{"delta":{"role":"assistant"},"finish_reason":null,"index":0}],"created":1727963269,"id":"chatcmpl-AEGTFYMyoBBDm4Qz37Lc8bekb2QOO","model":"gpt-4o-mini","object":"chat.completion.chunk","system_fingerprint":"fp_878413d04d","usage":null} + string: |+ + data: {"choices":[],"created":0,"id":"","model":"","object":"","prompt_filter_results":[{"prompt_index":0,"content_filter_results":{"hate":{"filtered":false,"severity":"safe"},"self_harm":{"filtered":false,"severity":"safe"},"sexual":{"filtered":false,"severity":"safe"},"violence":{"filtered":false,"severity":"safe"}}}]} + data: {"choices":[{"content_filter_results":{},"delta":{"content":"","role":"assistant"},"finish_reason":null,"index":0,"logprobs":null}],"created":1731466213,"id":"chatcmpl-ASxkLviKAQt414bmMPfpr2DfNYgKt","model":"gpt-4-32k","object":"chat.completion.chunk","system_fingerprint":null,"usage":null} - data: {"choices":[{"delta":{"content":"South"},"finish_reason":null,"index":0}],"created":1727963269,"id":"chatcmpl-AEGTFYMyoBBDm4Qz37Lc8bekb2QOO","model":"gpt-4o-mini","object":"chat.completion.chunk","system_fingerprint":"fp_878413d04d","usage":null} + data: {"choices":[{"content_filter_results":{"hate":{"filtered":false,"severity":"safe"},"self_harm":{"filtered":false,"severity":"safe"},"sexual":{"filtered":false,"severity":"safe"},"violence":{"filtered":false,"severity":"safe"}},"delta":{"content":"Atlantic"},"finish_reason":null,"index":0,"logprobs":null}],"created":1731466213,"id":"chatcmpl-ASxkLviKAQt414bmMPfpr2DfNYgKt","model":"gpt-4-32k","object":"chat.completion.chunk","system_fingerprint":null,"usage":null} + data: {"choices":[{"content_filter_results":{"hate":{"filtered":false,"severity":"safe"},"self_harm":{"filtered":false,"severity":"safe"},"sexual":{"filtered":false,"severity":"safe"},"violence":{"filtered":false,"severity":"safe"}},"delta":{"content":" Ocean"},"finish_reason":null,"index":0,"logprobs":null}],"created":1731466213,"id":"chatcmpl-ASxkLviKAQt414bmMPfpr2DfNYgKt","model":"gpt-4-32k","object":"chat.completion.chunk","system_fingerprint":null,"usage":null} - data: {"choices":[{"delta":{"content":" Atlantic"},"finish_reason":null,"index":0}],"created":1727963269,"id":"chatcmpl-AEGTFYMyoBBDm4Qz37Lc8bekb2QOO","model":"gpt-4o-mini","object":"chat.completion.chunk","system_fingerprint":"fp_878413d04d","usage":null} - - - data: {"choices":[{"delta":{"content":" Ocean"},"finish_reason":null,"index":0}],"created":1727963269,"id":"chatcmpl-AEGTFYMyoBBDm4Qz37Lc8bekb2QOO","model":"gpt-4o-mini","object":"chat.completion.chunk","system_fingerprint":"fp_878413d04d","usage":null} - - - data: {"choices":[{"delta":{"content":"."},"finish_reason":null,"index":0}],"created":1727963269,"id":"chatcmpl-AEGTFYMyoBBDm4Qz37Lc8bekb2QOO","model":"gpt-4o-mini","object":"chat.completion.chunk","system_fingerprint":"fp_878413d04d","usage":null} - - - data: {"choices":[{"delta":{},"finish_reason":"stop","index":0}],"created":1727963269,"id":"chatcmpl-AEGTFYMyoBBDm4Qz37Lc8bekb2QOO","model":"gpt-4o-mini","object":"chat.completion.chunk","system_fingerprint":"fp_878413d04d","usage":null} - - - data: {"choices":[],"created":1727963269,"id":"chatcmpl-AEGTFYMyoBBDm4Qz37Lc8bekb2QOO","model":"gpt-4o-mini","object":"chat.completion.chunk","system_fingerprint":"fp_878413d04d","usage":{"completion_tokens":4,"prompt_tokens":24,"total_tokens":28}} + data: {"choices":[{"content_filter_results":{},"delta":{},"finish_reason":"stop","index":0,"logprobs":null}],"created":1731466213,"id":"chatcmpl-ASxkLviKAQt414bmMPfpr2DfNYgKt","model":"gpt-4-32k","object":"chat.completion.chunk","system_fingerprint":null,"usage":null} + data: {"choices":[],"created":1731466213,"id":"chatcmpl-ASxkLviKAQt414bmMPfpr2DfNYgKt","model":"gpt-4-32k","object":"chat.completion.chunk","system_fingerprint":null,"usage":{"completion_tokens":2,"prompt_tokens":24,"total_tokens":26}} data: [DONE] - - ' headers: + Cache-Control: + - no-cache, must-revalidate Content-Type: - - text/event-stream; charset=utf-8 + - text/event-stream Date: - - Thu, 03 Oct 2024 13:47:48 GMT + - Wed, 13 Nov 2024 02:50:13 GMT Set-Cookie: test_set_cookie Strict-Transport-Security: - max-age=31536000; includeSubDomains; preload Transfer-Encoding: - chunked + access-control-allow-origin: + - '*' apim-request-id: - - 8cbb5f34-a753-48ef-9906-62b070352cd5 + - 5e2a8895-103f-499a-90bf-1c4693d5fc6a azureml-model-session: - - d007-20240926131035 - openai-organization: test_openai_org_key + - d158-20241010133731 + openai-organization: test_openai_org_id x-accel-buffering: - 'no' x-content-type-options: - nosniff - x-envoy-upstream-service-time: - - '242' x-ms-client-request-id: - - 8cbb5f34-a753-48ef-9906-62b070352cd5 + - 5e2a8895-103f-499a-90bf-1c4693d5fc6a x-ms-rai-invoked: - 'true' x-ms-region: - - East US + - Switzerland North x-ratelimit-remaining-requests: - - '908' + - '72' x-ratelimit-remaining-tokens: - - '89686' + - '79740' x-request-id: - - 856505ee-135a-477c-bac8-69db30e73778 + - 50c83527-7dbf-48a9-aff2-53636836624d status: code: 200 message: OK diff --git a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_stream_with_include_usage_option[openai_provider_chat_completions].yaml b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_stream_with_include_usage_option[openai_provider_chat_completions].yaml index 6f6b353..bbccf03 100644 --- a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_stream_with_include_usage_option[openai_provider_chat_completions].yaml +++ b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_stream_with_include_usage_option[openai_provider_chat_completions].yaml @@ -1,8 +1,19 @@ interactions: - request: - body: '{"messages": [{"role": "user", "content": "Answer in up to 3 words: Which - ocean contains the falkland islands?"}], "model": "gpt-4o-mini", "stream": true, - "stream_options": {"include_usage": true}}' + body: |- + { + "messages": [ + { + "role": "user", + "content": "Answer in up to 3 words: Which ocean contains the falkland islands?" + } + ], + "model": "gpt-4o-mini", + "stream": true, + "stream_options": { + "include_usage": true + } + } headers: accept: - application/json @@ -19,65 +30,55 @@ interactions: host: - api.openai.com user-agent: - - OpenAI/Python 1.50.0 + - OpenAI/Python 1.54.3 x-stainless-arch: - - x64 + - arm64 x-stainless-async: - 'false' x-stainless-lang: - python x-stainless-os: - - Linux + - MacOS x-stainless-package-version: - - 1.50.0 + - 1.54.3 x-stainless-retry-count: - '0' x-stainless-runtime: - CPython x-stainless-runtime-version: - - 3.10.12 + - 3.12.6 method: POST uri: https://api.openai.com/v1/chat/completions response: body: - string: 'data: {"id":"chatcmpl-AEGTE6nGqR4tbVuy6CPSHnXIF2eqy","object":"chat.completion.chunk","created":1727963268,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_f85bea6784","choices":[{"index":0,"delta":{"role":"assistant","content":"","refusal":null},"logprobs":null,"finish_reason":null}],"usage":null} + string: |+ + data: {"id":"chatcmpl-ASfaFZizr7oebXDx3CgQuBnXD01Xp","object":"chat.completion.chunk","created":1731396395,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_0ba0d124f1","choices":[{"index":0,"delta":{"role":"assistant","content":"","refusal":null},"logprobs":null,"finish_reason":null}],"usage":null} + data: {"id":"chatcmpl-ASfaFZizr7oebXDx3CgQuBnXD01Xp","object":"chat.completion.chunk","created":1731396395,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_0ba0d124f1","choices":[{"index":0,"delta":{"content":"South"},"logprobs":null,"finish_reason":null}],"usage":null} - data: {"id":"chatcmpl-AEGTE6nGqR4tbVuy6CPSHnXIF2eqy","object":"chat.completion.chunk","created":1727963268,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_f85bea6784","choices":[{"index":0,"delta":{"content":"South"},"logprobs":null,"finish_reason":null}],"usage":null} + data: {"id":"chatcmpl-ASfaFZizr7oebXDx3CgQuBnXD01Xp","object":"chat.completion.chunk","created":1731396395,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_0ba0d124f1","choices":[{"index":0,"delta":{"content":" Atlantic"},"logprobs":null,"finish_reason":null}],"usage":null} + data: {"id":"chatcmpl-ASfaFZizr7oebXDx3CgQuBnXD01Xp","object":"chat.completion.chunk","created":1731396395,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_0ba0d124f1","choices":[{"index":0,"delta":{"content":" Ocean"},"logprobs":null,"finish_reason":null}],"usage":null} - data: {"id":"chatcmpl-AEGTE6nGqR4tbVuy6CPSHnXIF2eqy","object":"chat.completion.chunk","created":1727963268,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_f85bea6784","choices":[{"index":0,"delta":{"content":" - Atlantic"},"logprobs":null,"finish_reason":null}],"usage":null} + data: {"id":"chatcmpl-ASfaFZizr7oebXDx3CgQuBnXD01Xp","object":"chat.completion.chunk","created":1731396395,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_0ba0d124f1","choices":[{"index":0,"delta":{"content":"."},"logprobs":null,"finish_reason":null}],"usage":null} + data: {"id":"chatcmpl-ASfaFZizr7oebXDx3CgQuBnXD01Xp","object":"chat.completion.chunk","created":1731396395,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_0ba0d124f1","choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"stop"}],"usage":null} - data: {"id":"chatcmpl-AEGTE6nGqR4tbVuy6CPSHnXIF2eqy","object":"chat.completion.chunk","created":1727963268,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_f85bea6784","choices":[{"index":0,"delta":{"content":" - Ocean"},"logprobs":null,"finish_reason":null}],"usage":null} - - - data: {"id":"chatcmpl-AEGTE6nGqR4tbVuy6CPSHnXIF2eqy","object":"chat.completion.chunk","created":1727963268,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_f85bea6784","choices":[{"index":0,"delta":{"content":"."},"logprobs":null,"finish_reason":null}],"usage":null} - - - data: {"id":"chatcmpl-AEGTE6nGqR4tbVuy6CPSHnXIF2eqy","object":"chat.completion.chunk","created":1727963268,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_f85bea6784","choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"stop"}],"usage":null} - - - data: {"id":"chatcmpl-AEGTE6nGqR4tbVuy6CPSHnXIF2eqy","object":"chat.completion.chunk","created":1727963268,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_f85bea6784","choices":[],"usage":{"prompt_tokens":24,"completion_tokens":4,"total_tokens":28,"prompt_tokens_details":{"cached_tokens":0},"completion_tokens_details":{"reasoning_tokens":0}}} - + data: {"id":"chatcmpl-ASfaFZizr7oebXDx3CgQuBnXD01Xp","object":"chat.completion.chunk","created":1731396395,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_0ba0d124f1","choices":[],"usage":{"prompt_tokens":24,"completion_tokens":4,"total_tokens":28,"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0},"completion_tokens_details":{"reasoning_tokens":0,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0}}} data: [DONE] - - ' headers: CF-Cache-Status: - DYNAMIC CF-RAY: - - 8ccd62d89b830e63-MXP + - 8e14cb6c9d3f49b4-SIN Connection: - keep-alive Content-Type: - text/event-stream; charset=utf-8 Date: - - Thu, 03 Oct 2024 13:47:48 GMT + - Tue, 12 Nov 2024 07:26:35 GMT Server: - cloudflare Set-Cookie: test_set_cookie @@ -87,9 +88,11 @@ interactions: - nosniff access-control-expose-headers: - X-Request-ID + alt-svc: + - h3=":443"; ma=86400 openai-organization: test_openai_org_key openai-processing-ms: - - '190' + - '196' openai-version: - '2020-10-01' strict-transport-security: @@ -99,15 +102,15 @@ interactions: x-ratelimit-limit-tokens: - '200000' x-ratelimit-remaining-requests: - - '9998' + - '9991' x-ratelimit-remaining-tokens: - '199966' x-ratelimit-reset-requests: - - 13.604s + - 1m17.583s x-ratelimit-reset-tokens: - 10ms x-request-id: - - req_faa08abf0ed07ca86c252ca3b66a470d + - req_64a1465019c74b17c428c831cef37022 status: code: 200 message: OK diff --git a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_stream_with_parallel_tools_and_capture_message_content[ollama_provider_chat_completions].yaml b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_stream_with_parallel_tools_and_capture_message_content[ollama_provider_chat_completions].yaml index 7e3dcae..ac300a7 100644 --- a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_stream_with_parallel_tools_and_capture_message_content[ollama_provider_chat_completions].yaml +++ b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_stream_with_parallel_tools_and_capture_message_content[ollama_provider_chat_completions].yaml @@ -1,11 +1,41 @@ interactions: - request: - body: '{"messages": [{"role": "system", "content": "You are a helpful assistant - providing weather updates."}, {"role": "user", "content": "What is the weather - in New York and London?"}], "model": "qwen2.5:0.5b", "stream": true, "tools": - [{"type": "function", "function": {"name": "get_weather", "strict": true, "parameters": - {"type": "object", "properties": {"location": {"type": "string"}}, "required": - ["location"], "additionalProperties": false}}}]}' + body: |- + { + "messages": [ + { + "role": "system", + "content": "You are a helpful assistant providing weather updates." + }, + { + "role": "user", + "content": "What is the weather in New York City and London?" + } + ], + "model": "qwen2.5:0.5b", + "stream": true, + "tools": [ + { + "type": "function", + "function": { + "name": "get_weather", + "strict": true, + "parameters": { + "type": "object", + "properties": { + "location": { + "type": "string" + } + }, + "required": [ + "location" + ], + "additionalProperties": false + } + } + } + ] + } headers: accept: - application/json @@ -16,244 +46,125 @@ interactions: connection: - keep-alive content-length: - - '445' + - '450' content-type: - application/json host: - localhost:11434 user-agent: - - OpenAI/Python 1.34.0 + - OpenAI/Python 1.50.2 x-stainless-arch: - - x64 + - arm64 x-stainless-async: - 'false' x-stainless-lang: - python x-stainless-os: - - Linux + - MacOS x-stainless-package-version: - - 1.34.0 + - 1.50.2 + x-stainless-retry-count: + - '0' x-stainless-runtime: - CPython x-stainless-runtime-version: - - 3.10.12 + - 3.12.6 method: POST uri: http://localhost:11434/v1/chat/completions response: body: - string: 'data: {"id":"chatcmpl-142","object":"chat.completion.chunk","created":1728571924,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"To"},"finish_reason":null}]} + string: |+ + data: {"id":"chatcmpl-918","object":"chat.completion.chunk","created":1731311783,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"\u003ctool_call\u003e"},"finish_reason":null}]} + data: {"id":"chatcmpl-918","object":"chat.completion.chunk","created":1731311783,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"\n"},"finish_reason":null}]} - data: {"id":"chatcmpl-142","object":"chat.completion.chunk","created":1728571924,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - provide"},"finish_reason":null}]} + data: {"id":"chatcmpl-918","object":"chat.completion.chunk","created":1731311783,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"{\""},"finish_reason":null}]} + data: {"id":"chatcmpl-918","object":"chat.completion.chunk","created":1731311783,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"name"},"finish_reason":null}]} - data: {"id":"chatcmpl-142","object":"chat.completion.chunk","created":1728571924,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - you"},"finish_reason":null}]} + data: {"id":"chatcmpl-918","object":"chat.completion.chunk","created":1731311783,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"\":"},"finish_reason":null}]} + data: {"id":"chatcmpl-918","object":"chat.completion.chunk","created":1731311783,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" \""},"finish_reason":null}]} - data: {"id":"chatcmpl-142","object":"chat.completion.chunk","created":1728571924,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - with"},"finish_reason":null}]} + data: {"id":"chatcmpl-918","object":"chat.completion.chunk","created":1731311783,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"get"},"finish_reason":null}]} + data: {"id":"chatcmpl-918","object":"chat.completion.chunk","created":1731311783,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"_weather"},"finish_reason":null}]} - data: {"id":"chatcmpl-142","object":"chat.completion.chunk","created":1728571924,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - the"},"finish_reason":null}]} + data: {"id":"chatcmpl-918","object":"chat.completion.chunk","created":1731311783,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"\","},"finish_reason":null}]} + data: {"id":"chatcmpl-918","object":"chat.completion.chunk","created":1731311783,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" \""},"finish_reason":null}]} - data: {"id":"chatcmpl-142","object":"chat.completion.chunk","created":1728571924,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - most"},"finish_reason":null}]} + data: {"id":"chatcmpl-918","object":"chat.completion.chunk","created":1731311783,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"arguments"},"finish_reason":null}]} + data: {"id":"chatcmpl-918","object":"chat.completion.chunk","created":1731311783,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"\":"},"finish_reason":null}]} - data: {"id":"chatcmpl-142","object":"chat.completion.chunk","created":1728571924,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - current"},"finish_reason":null}]} + data: {"id":"chatcmpl-918","object":"chat.completion.chunk","created":1731311783,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" {\""},"finish_reason":null}]} + data: {"id":"chatcmpl-918","object":"chat.completion.chunk","created":1731311783,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"location"},"finish_reason":null}]} - data: {"id":"chatcmpl-142","object":"chat.completion.chunk","created":1728571924,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - information"},"finish_reason":null}]} + data: {"id":"chatcmpl-918","object":"chat.completion.chunk","created":1731311783,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"\":"},"finish_reason":null}]} + data: {"id":"chatcmpl-918","object":"chat.completion.chunk","created":1731311783,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" \""},"finish_reason":null}]} - data: {"id":"chatcmpl-142","object":"chat.completion.chunk","created":1728571924,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - about"},"finish_reason":null}]} + data: {"id":"chatcmpl-918","object":"chat.completion.chunk","created":1731311783,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"New"},"finish_reason":null}]} + data: {"id":"chatcmpl-918","object":"chat.completion.chunk","created":1731311783,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" York"},"finish_reason":null}]} - data: {"id":"chatcmpl-142","object":"chat.completion.chunk","created":1728571924,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - the"},"finish_reason":null}]} + data: {"id":"chatcmpl-918","object":"chat.completion.chunk","created":1731311783,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" City"},"finish_reason":null}]} + data: {"id":"chatcmpl-918","object":"chat.completion.chunk","created":1731311783,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"\"}}\n"},"finish_reason":null}]} - data: {"id":"chatcmpl-142","object":"chat.completion.chunk","created":1728571924,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - weather"},"finish_reason":null}]} + data: {"id":"chatcmpl-918","object":"chat.completion.chunk","created":1731311783,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"\u003c/tool_call\u003e"},"finish_reason":null}]} + data: {"id":"chatcmpl-918","object":"chat.completion.chunk","created":1731311783,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"\n"},"finish_reason":null}]} - data: {"id":"chatcmpl-142","object":"chat.completion.chunk","created":1728571924,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":","},"finish_reason":null}]} + data: {"id":"chatcmpl-918","object":"chat.completion.chunk","created":1731311783,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"\u003ctool_call\u003e"},"finish_reason":null}]} + data: {"id":"chatcmpl-918","object":"chat.completion.chunk","created":1731311783,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"\n"},"finish_reason":null}]} - data: {"id":"chatcmpl-142","object":"chat.completion.chunk","created":1728571924,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - I"},"finish_reason":null}]} + data: {"id":"chatcmpl-918","object":"chat.completion.chunk","created":1731311783,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"{\""},"finish_reason":null}]} + data: {"id":"chatcmpl-918","object":"chat.completion.chunk","created":1731311783,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"name"},"finish_reason":null}]} - data: {"id":"chatcmpl-142","object":"chat.completion.chunk","created":1728571924,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - need"},"finish_reason":null}]} + data: {"id":"chatcmpl-918","object":"chat.completion.chunk","created":1731311783,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"\":"},"finish_reason":null}]} + data: {"id":"chatcmpl-918","object":"chat.completion.chunk","created":1731311783,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" \""},"finish_reason":null}]} - data: {"id":"chatcmpl-142","object":"chat.completion.chunk","created":1728571924,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - to"},"finish_reason":null}]} + data: {"id":"chatcmpl-918","object":"chat.completion.chunk","created":1731311783,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"get"},"finish_reason":null}]} + data: {"id":"chatcmpl-918","object":"chat.completion.chunk","created":1731311783,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"_weather"},"finish_reason":null}]} - data: {"id":"chatcmpl-142","object":"chat.completion.chunk","created":1728571924,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - know"},"finish_reason":null}]} + data: {"id":"chatcmpl-918","object":"chat.completion.chunk","created":1731311783,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"\","},"finish_reason":null}]} + data: {"id":"chatcmpl-918","object":"chat.completion.chunk","created":1731311783,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" \""},"finish_reason":null}]} - data: {"id":"chatcmpl-142","object":"chat.completion.chunk","created":1728571924,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - which"},"finish_reason":null}]} + data: {"id":"chatcmpl-918","object":"chat.completion.chunk","created":1731311783,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"arguments"},"finish_reason":null}]} + data: {"id":"chatcmpl-918","object":"chat.completion.chunk","created":1731311783,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"\":"},"finish_reason":null}]} - data: {"id":"chatcmpl-142","object":"chat.completion.chunk","created":1728571924,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - cities"},"finish_reason":null}]} + data: {"id":"chatcmpl-918","object":"chat.completion.chunk","created":1731311783,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" {\""},"finish_reason":null}]} + data: {"id":"chatcmpl-918","object":"chat.completion.chunk","created":1731311783,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"location"},"finish_reason":null}]} - data: {"id":"chatcmpl-142","object":"chat.completion.chunk","created":1728571924,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - you"},"finish_reason":null}]} + data: {"id":"chatcmpl-918","object":"chat.completion.chunk","created":1731311783,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"\":"},"finish_reason":null}]} + data: {"id":"chatcmpl-918","object":"chat.completion.chunk","created":1731311783,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" \""},"finish_reason":null}]} - data: {"id":"chatcmpl-142","object":"chat.completion.chunk","created":1728571924,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - are"},"finish_reason":null}]} + data: {"id":"chatcmpl-918","object":"chat.completion.chunk","created":1731311783,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"London"},"finish_reason":null}]} + data: {"id":"chatcmpl-918","object":"chat.completion.chunk","created":1731311783,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"\"}}\n"},"finish_reason":null}]} - data: {"id":"chatcmpl-142","object":"chat.completion.chunk","created":1728571924,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - interested"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-142","object":"chat.completion.chunk","created":1728571924,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - in"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-142","object":"chat.completion.chunk","created":1728571924,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"."},"finish_reason":null}]} - - - data: {"id":"chatcmpl-142","object":"chat.completion.chunk","created":1728571924,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - Could"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-142","object":"chat.completion.chunk","created":1728571924,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - we"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-142","object":"chat.completion.chunk","created":1728571924,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - please"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-142","object":"chat.completion.chunk","created":1728571924,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - specify"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-142","object":"chat.completion.chunk","created":1728571924,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - the"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-142","object":"chat.completion.chunk","created":1728571924,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - name"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-142","object":"chat.completion.chunk","created":1728571924,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - of"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-142","object":"chat.completion.chunk","created":1728571924,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - each"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-142","object":"chat.completion.chunk","created":1728571924,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - city"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-142","object":"chat.completion.chunk","created":1728571924,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"?"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-142","object":"chat.completion.chunk","created":1728571924,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - For"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-142","object":"chat.completion.chunk","created":1728571924,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - instance"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-142","object":"chat.completion.chunk","created":1728571924,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":","},"finish_reason":null}]} - - - data: {"id":"chatcmpl-142","object":"chat.completion.chunk","created":1728571924,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - both"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-142","object":"chat.completion.chunk","created":1728571924,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - \""},"finish_reason":null}]} - - - data: {"id":"chatcmpl-142","object":"chat.completion.chunk","created":1728571924,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"New"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-142","object":"chat.completion.chunk","created":1728571924,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - York"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-142","object":"chat.completion.chunk","created":1728571924,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"\","},"finish_reason":null}]} - - - data: {"id":"chatcmpl-142","object":"chat.completion.chunk","created":1728571924,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - \""},"finish_reason":null}]} - - - data: {"id":"chatcmpl-142","object":"chat.completion.chunk","created":1728571924,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"London"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-142","object":"chat.completion.chunk","created":1728571924,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"\""},"finish_reason":null}]} - - - data: {"id":"chatcmpl-142","object":"chat.completion.chunk","created":1728571924,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - or"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-142","object":"chat.completion.chunk","created":1728571924,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - individual"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-142","object":"chat.completion.chunk","created":1728571924,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - names"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-142","object":"chat.completion.chunk","created":1728571924,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - like"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-142","object":"chat.completion.chunk","created":1728571924,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - \""},"finish_reason":null}]} - - - data: {"id":"chatcmpl-142","object":"chat.completion.chunk","created":1728571925,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"New"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-142","object":"chat.completion.chunk","created":1728571925,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - York"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-142","object":"chat.completion.chunk","created":1728571925,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - City"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-142","object":"chat.completion.chunk","created":1728571925,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"\"."},"finish_reason":null}]} - - - data: {"id":"chatcmpl-142","object":"chat.completion.chunk","created":1728571925,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":"stop"}]} + data: {"id":"chatcmpl-918","object":"chat.completion.chunk","created":1731311783,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"\u003c/tool_call\u003e"},"finish_reason":null}]} + data: {"id":"chatcmpl-918","object":"chat.completion.chunk","created":1731311783,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":"stop"}]} data: [DONE] - - ' headers: Content-Type: - text/event-stream Date: - - Thu, 10 Oct 2024 14:52:04 GMT + - Mon, 11 Nov 2024 07:56:23 GMT Set-Cookie: test_set_cookie Transfer-Encoding: - chunked diff --git a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_stream_with_parallel_tools_and_capture_message_content[openai_provider_chat_completions].yaml b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_stream_with_parallel_tools_and_capture_message_content[openai_provider_chat_completions].yaml index 5ec32ae..a557c38 100644 --- a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_stream_with_parallel_tools_and_capture_message_content[openai_provider_chat_completions].yaml +++ b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_stream_with_parallel_tools_and_capture_message_content[openai_provider_chat_completions].yaml @@ -1,11 +1,41 @@ interactions: - request: - body: '{"messages": [{"role": "system", "content": "You are a helpful assistant - providing weather updates."}, {"role": "user", "content": "What is the weather - in New York and London?"}], "model": "gpt-4o-mini", "stream": true, "tools": - [{"type": "function", "function": {"name": "get_weather", "strict": true, "parameters": - {"type": "object", "properties": {"location": {"type": "string"}}, "required": - ["location"], "additionalProperties": false}}}]}' + body: |- + { + "messages": [ + { + "role": "system", + "content": "You are a helpful assistant providing weather updates." + }, + { + "role": "user", + "content": "What is the weather in New York City and London?" + } + ], + "model": "gpt-4o-mini", + "stream": true, + "tools": [ + { + "type": "function", + "function": { + "name": "get_weather", + "strict": true, + "parameters": { + "type": "object", + "properties": { + "location": { + "type": "string" + } + }, + "required": [ + "location" + ], + "additionalProperties": false + } + } + } + ] + } headers: accept: - application/json @@ -16,91 +46,77 @@ interactions: connection: - keep-alive content-length: - - '444' + - '449' content-type: - application/json host: - api.openai.com user-agent: - - OpenAI/Python 1.34.0 + - OpenAI/Python 1.54.3 x-stainless-arch: - - x64 + - arm64 x-stainless-async: - 'false' x-stainless-lang: - python x-stainless-os: - - Linux + - MacOS x-stainless-package-version: - - 1.34.0 + - 1.54.3 + x-stainless-retry-count: + - '0' x-stainless-runtime: - CPython x-stainless-runtime-version: - - 3.10.12 + - 3.12.6 method: POST uri: https://api.openai.com/v1/chat/completions response: body: - string: 'data: {"id":"chatcmpl-AGooCqGLiGVX21z77Wlic8pSD93XP","object":"chat.completion.chunk","created":1728571920,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_f85bea6784","choices":[{"index":0,"delta":{"role":"assistant","content":null},"logprobs":null,"finish_reason":null}]} + string: |+ + data: {"id":"chatcmpl-ASfaHUbWaDoK0qGijDZO8PwY9efB7","object":"chat.completion.chunk","created":1731396397,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_0ba0d124f1","choices":[{"index":0,"delta":{"role":"assistant","content":null},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-ASfaHUbWaDoK0qGijDZO8PwY9efB7","object":"chat.completion.chunk","created":1731396397,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_0ba0d124f1","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"id":"call_awpPik83NVMEmnWIARc49DVf","type":"function","function":{"name":"get_weather","arguments":""}}]},"logprobs":null,"finish_reason":null}]} - data: {"id":"chatcmpl-AGooCqGLiGVX21z77Wlic8pSD93XP","object":"chat.completion.chunk","created":1728571920,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_f85bea6784","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"id":"call_uDsEOSTauJkgNI8ciF0AvU0X","type":"function","function":{"name":"get_weather","arguments":""}}]},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-ASfaHUbWaDoK0qGijDZO8PwY9efB7","object":"chat.completion.chunk","created":1731396397,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_0ba0d124f1","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"{\"lo"}}]},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-ASfaHUbWaDoK0qGijDZO8PwY9efB7","object":"chat.completion.chunk","created":1731396397,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_0ba0d124f1","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"catio"}}]},"logprobs":null,"finish_reason":null}]} - data: {"id":"chatcmpl-AGooCqGLiGVX21z77Wlic8pSD93XP","object":"chat.completion.chunk","created":1728571920,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_f85bea6784","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"{\"lo"}}]},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-ASfaHUbWaDoK0qGijDZO8PwY9efB7","object":"chat.completion.chunk","created":1731396397,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_0ba0d124f1","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"n\": \"N"}}]},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-ASfaHUbWaDoK0qGijDZO8PwY9efB7","object":"chat.completion.chunk","created":1731396397,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_0ba0d124f1","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"ew Y"}}]},"logprobs":null,"finish_reason":null}]} - data: {"id":"chatcmpl-AGooCqGLiGVX21z77Wlic8pSD93XP","object":"chat.completion.chunk","created":1728571920,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_f85bea6784","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"catio"}}]},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-ASfaHUbWaDoK0qGijDZO8PwY9efB7","object":"chat.completion.chunk","created":1731396397,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_0ba0d124f1","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"ork C"}}]},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-ASfaHUbWaDoK0qGijDZO8PwY9efB7","object":"chat.completion.chunk","created":1731396397,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_0ba0d124f1","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"ity\"}"}}]},"logprobs":null,"finish_reason":null}]} - data: {"id":"chatcmpl-AGooCqGLiGVX21z77Wlic8pSD93XP","object":"chat.completion.chunk","created":1728571920,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_f85bea6784","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"n\": - \"N"}}]},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-ASfaHUbWaDoK0qGijDZO8PwY9efB7","object":"chat.completion.chunk","created":1731396397,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_0ba0d124f1","choices":[{"index":0,"delta":{"tool_calls":[{"index":1,"id":"call_LPkfKwdcq3Tqg06fTFVIDcV5","type":"function","function":{"name":"get_weather","arguments":""}}]},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-ASfaHUbWaDoK0qGijDZO8PwY9efB7","object":"chat.completion.chunk","created":1731396397,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_0ba0d124f1","choices":[{"index":0,"delta":{"tool_calls":[{"index":1,"function":{"arguments":"{\"lo"}}]},"logprobs":null,"finish_reason":null}]} - data: {"id":"chatcmpl-AGooCqGLiGVX21z77Wlic8pSD93XP","object":"chat.completion.chunk","created":1728571920,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_f85bea6784","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"ew - Y"}}]},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-ASfaHUbWaDoK0qGijDZO8PwY9efB7","object":"chat.completion.chunk","created":1731396397,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_0ba0d124f1","choices":[{"index":0,"delta":{"tool_calls":[{"index":1,"function":{"arguments":"catio"}}]},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-ASfaHUbWaDoK0qGijDZO8PwY9efB7","object":"chat.completion.chunk","created":1731396397,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_0ba0d124f1","choices":[{"index":0,"delta":{"tool_calls":[{"index":1,"function":{"arguments":"n\": \"L"}}]},"logprobs":null,"finish_reason":null}]} - data: {"id":"chatcmpl-AGooCqGLiGVX21z77Wlic8pSD93XP","object":"chat.completion.chunk","created":1728571920,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_f85bea6784","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"ork\"}"}}]},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-ASfaHUbWaDoK0qGijDZO8PwY9efB7","object":"chat.completion.chunk","created":1731396397,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_0ba0d124f1","choices":[{"index":0,"delta":{"tool_calls":[{"index":1,"function":{"arguments":"ondo"}}]},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-ASfaHUbWaDoK0qGijDZO8PwY9efB7","object":"chat.completion.chunk","created":1731396397,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_0ba0d124f1","choices":[{"index":0,"delta":{"tool_calls":[{"index":1,"function":{"arguments":"n\"}"}}]},"logprobs":null,"finish_reason":null}]} - data: {"id":"chatcmpl-AGooCqGLiGVX21z77Wlic8pSD93XP","object":"chat.completion.chunk","created":1728571920,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_f85bea6784","choices":[{"index":0,"delta":{"tool_calls":[{"index":1,"id":"call_If8zqvcIX9JYzEYJ02dlpoBX","type":"function","function":{"name":"get_weather","arguments":""}}]},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-AGooCqGLiGVX21z77Wlic8pSD93XP","object":"chat.completion.chunk","created":1728571920,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_f85bea6784","choices":[{"index":0,"delta":{"tool_calls":[{"index":1,"function":{"arguments":"{\"lo"}}]},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-AGooCqGLiGVX21z77Wlic8pSD93XP","object":"chat.completion.chunk","created":1728571920,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_f85bea6784","choices":[{"index":0,"delta":{"tool_calls":[{"index":1,"function":{"arguments":"catio"}}]},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-AGooCqGLiGVX21z77Wlic8pSD93XP","object":"chat.completion.chunk","created":1728571920,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_f85bea6784","choices":[{"index":0,"delta":{"tool_calls":[{"index":1,"function":{"arguments":"n\": - \"L"}}]},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-AGooCqGLiGVX21z77Wlic8pSD93XP","object":"chat.completion.chunk","created":1728571920,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_f85bea6784","choices":[{"index":0,"delta":{"tool_calls":[{"index":1,"function":{"arguments":"ondo"}}]},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-AGooCqGLiGVX21z77Wlic8pSD93XP","object":"chat.completion.chunk","created":1728571920,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_f85bea6784","choices":[{"index":0,"delta":{"tool_calls":[{"index":1,"function":{"arguments":"n\"}"}}]},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-AGooCqGLiGVX21z77Wlic8pSD93XP","object":"chat.completion.chunk","created":1728571920,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_f85bea6784","choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"tool_calls"}]} - + data: {"id":"chatcmpl-ASfaHUbWaDoK0qGijDZO8PwY9efB7","object":"chat.completion.chunk","created":1731396397,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_0ba0d124f1","choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"tool_calls"}]} data: [DONE] - - ' headers: CF-Cache-Status: - DYNAMIC CF-RAY: - - 8d076e83de049ec5-CDG + - 8e14cb7bcd51ce22-SIN Connection: - keep-alive Content-Type: - text/event-stream; charset=utf-8 Date: - - Thu, 10 Oct 2024 14:52:00 GMT + - Tue, 12 Nov 2024 07:26:38 GMT Server: - cloudflare Set-Cookie: test_set_cookie @@ -114,7 +130,7 @@ interactions: - h3=":443"; ma=86400 openai-organization: test_openai_org_key openai-processing-ms: - - '625' + - '1268' openai-version: - '2020-10-01' strict-transport-security: @@ -124,15 +140,15 @@ interactions: x-ratelimit-limit-tokens: - '200000' x-ratelimit-remaining-requests: - - '9999' + - '9988' x-ratelimit-remaining-tokens: - - '199957' + - '199956' x-ratelimit-reset-requests: - - 8.64s + - 1m41.081s x-ratelimit-reset-tokens: - - 12ms + - 13ms x-request-id: - - req_08a37326d1686b41a1f1ef7dcdc2d2f9 + - req_b2971ad760eb9f1fb8ec7bc289fba757 status: code: 200 message: OK diff --git a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_stream_with_parallel_tools_and_capture_message_content_log_events[ollama_provider_chat_completions].yaml b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_stream_with_parallel_tools_and_capture_message_content_log_events[ollama_provider_chat_completions].yaml index d3dfaef..1cde55f 100644 --- a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_stream_with_parallel_tools_and_capture_message_content_log_events[ollama_provider_chat_completions].yaml +++ b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_stream_with_parallel_tools_and_capture_message_content_log_events[ollama_provider_chat_completions].yaml @@ -1,11 +1,41 @@ interactions: - request: - body: '{"messages": [{"role": "system", "content": "You are a helpful assistant - providing weather updates."}, {"role": "user", "content": "What is the weather - in New York City and London?"}], "model": "qwen2.5:0.5b", "stream": true, "tools": - [{"type": "function", "function": {"name": "get_weather", "strict": true, "parameters": - {"type": "object", "properties": {"location": {"type": "string"}}, "required": - ["location"], "additionalProperties": false}}}]}' + body: |- + { + "messages": [ + { + "role": "system", + "content": "You are a helpful assistant providing weather updates." + }, + { + "role": "user", + "content": "What is the weather in New York City and London?" + } + ], + "model": "qwen2.5:0.5b", + "stream": true, + "tools": [ + { + "type": "function", + "function": { + "name": "get_weather", + "strict": true, + "parameters": { + "type": "object", + "properties": { + "location": { + "type": "string" + } + }, + "required": [ + "location" + ], + "additionalProperties": false + } + } + } + ] + } headers: accept: - application/json @@ -22,240 +52,131 @@ interactions: host: - localhost:11434 user-agent: - - OpenAI/Python 1.34.0 + - OpenAI/Python 1.50.2 x-stainless-arch: - - x64 + - arm64 x-stainless-async: - 'false' x-stainless-lang: - python x-stainless-os: - - Linux + - MacOS x-stainless-package-version: - - 1.34.0 + - 1.50.2 + x-stainless-retry-count: + - '0' x-stainless-runtime: - CPython x-stainless-runtime-version: - - 3.10.12 + - 3.12.6 method: POST uri: http://localhost:11434/v1/chat/completions response: body: - string: 'data: {"id":"chatcmpl-986","object":"chat.completion.chunk","created":1728902553,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"\u003ctool_call\u003e"},"finish_reason":null}]} + string: |+ + data: {"id":"chatcmpl-563","object":"chat.completion.chunk","created":1731311783,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"\u003ctool_call\u003e"},"finish_reason":null}]} + data: {"id":"chatcmpl-563","object":"chat.completion.chunk","created":1731311783,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"\n"},"finish_reason":null}]} - data: {"id":"chatcmpl-986","object":"chat.completion.chunk","created":1728902553,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"\n"},"finish_reason":null}]} + data: {"id":"chatcmpl-563","object":"chat.completion.chunk","created":1731311783,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"{\""},"finish_reason":null}]} + data: {"id":"chatcmpl-563","object":"chat.completion.chunk","created":1731311783,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"name"},"finish_reason":null}]} - data: {"id":"chatcmpl-986","object":"chat.completion.chunk","created":1728902553,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"{\n"},"finish_reason":null}]} + data: {"id":"chatcmpl-563","object":"chat.completion.chunk","created":1731311783,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"\":"},"finish_reason":null}]} + data: {"id":"chatcmpl-563","object":"chat.completion.chunk","created":1731311783,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" \""},"finish_reason":null}]} - data: {"id":"chatcmpl-986","object":"chat.completion.chunk","created":1728902553,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - "},"finish_reason":null}]} + data: {"id":"chatcmpl-563","object":"chat.completion.chunk","created":1731311783,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"get"},"finish_reason":null}]} + data: {"id":"chatcmpl-563","object":"chat.completion.chunk","created":1731311783,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"_weather"},"finish_reason":null}]} - data: {"id":"chatcmpl-986","object":"chat.completion.chunk","created":1728902553,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - \""},"finish_reason":null}]} + data: {"id":"chatcmpl-563","object":"chat.completion.chunk","created":1731311783,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"\","},"finish_reason":null}]} + data: {"id":"chatcmpl-563","object":"chat.completion.chunk","created":1731311783,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" \""},"finish_reason":null}]} - data: {"id":"chatcmpl-986","object":"chat.completion.chunk","created":1728902553,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"name"},"finish_reason":null}]} + data: {"id":"chatcmpl-563","object":"chat.completion.chunk","created":1731311783,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"arguments"},"finish_reason":null}]} + data: {"id":"chatcmpl-563","object":"chat.completion.chunk","created":1731311783,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"\":"},"finish_reason":null}]} - data: {"id":"chatcmpl-986","object":"chat.completion.chunk","created":1728902553,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"\":"},"finish_reason":null}]} + data: {"id":"chatcmpl-563","object":"chat.completion.chunk","created":1731311783,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" {\""},"finish_reason":null}]} + data: {"id":"chatcmpl-563","object":"chat.completion.chunk","created":1731311783,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"location"},"finish_reason":null}]} - data: {"id":"chatcmpl-986","object":"chat.completion.chunk","created":1728902553,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - \""},"finish_reason":null}]} + data: {"id":"chatcmpl-563","object":"chat.completion.chunk","created":1731311783,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"\":"},"finish_reason":null}]} + data: {"id":"chatcmpl-563","object":"chat.completion.chunk","created":1731311783,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" \""},"finish_reason":null}]} - data: {"id":"chatcmpl-986","object":"chat.completion.chunk","created":1728902553,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"get"},"finish_reason":null}]} + data: {"id":"chatcmpl-563","object":"chat.completion.chunk","created":1731311783,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"New"},"finish_reason":null}]} + data: {"id":"chatcmpl-563","object":"chat.completion.chunk","created":1731311783,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" York"},"finish_reason":null}]} - data: {"id":"chatcmpl-986","object":"chat.completion.chunk","created":1728902553,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"_weather"},"finish_reason":null}]} + data: {"id":"chatcmpl-563","object":"chat.completion.chunk","created":1731311783,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" City"},"finish_reason":null}]} + data: {"id":"chatcmpl-563","object":"chat.completion.chunk","created":1731311783,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":","},"finish_reason":null}]} - data: {"id":"chatcmpl-986","object":"chat.completion.chunk","created":1728902553,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"\",\n"},"finish_reason":null}]} + data: {"id":"chatcmpl-563","object":"chat.completion.chunk","created":1731311783,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" New"},"finish_reason":null}]} + data: {"id":"chatcmpl-563","object":"chat.completion.chunk","created":1731311783,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" York"},"finish_reason":null}]} - data: {"id":"chatcmpl-986","object":"chat.completion.chunk","created":1728902553,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - "},"finish_reason":null}]} + data: {"id":"chatcmpl-563","object":"chat.completion.chunk","created":1731311783,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"\"}}\n"},"finish_reason":null}]} + data: {"id":"chatcmpl-563","object":"chat.completion.chunk","created":1731311783,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"\u003c/tool_call\u003e"},"finish_reason":null}]} - data: {"id":"chatcmpl-986","object":"chat.completion.chunk","created":1728902553,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - \""},"finish_reason":null}]} + data: {"id":"chatcmpl-563","object":"chat.completion.chunk","created":1731311783,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"\n"},"finish_reason":null}]} + data: {"id":"chatcmpl-563","object":"chat.completion.chunk","created":1731311783,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"\u003ctool_call\u003e"},"finish_reason":null}]} - data: {"id":"chatcmpl-986","object":"chat.completion.chunk","created":1728902553,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"arguments"},"finish_reason":null}]} + data: {"id":"chatcmpl-563","object":"chat.completion.chunk","created":1731311783,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"\n"},"finish_reason":null}]} + data: {"id":"chatcmpl-563","object":"chat.completion.chunk","created":1731311783,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"{\""},"finish_reason":null}]} - data: {"id":"chatcmpl-986","object":"chat.completion.chunk","created":1728902553,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"\":"},"finish_reason":null}]} + data: {"id":"chatcmpl-563","object":"chat.completion.chunk","created":1731311783,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"name"},"finish_reason":null}]} + data: {"id":"chatcmpl-563","object":"chat.completion.chunk","created":1731311783,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"\":"},"finish_reason":null}]} - data: {"id":"chatcmpl-986","object":"chat.completion.chunk","created":1728902553,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - {\n"},"finish_reason":null}]} + data: {"id":"chatcmpl-563","object":"chat.completion.chunk","created":1731311783,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" \""},"finish_reason":null}]} + data: {"id":"chatcmpl-563","object":"chat.completion.chunk","created":1731311783,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"get"},"finish_reason":null}]} - data: {"id":"chatcmpl-986","object":"chat.completion.chunk","created":1728902553,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" "},"finish_reason":null}]} + data: {"id":"chatcmpl-563","object":"chat.completion.chunk","created":1731311783,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"_weather"},"finish_reason":null}]} + data: {"id":"chatcmpl-563","object":"chat.completion.chunk","created":1731311783,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"\","},"finish_reason":null}]} - data: {"id":"chatcmpl-986","object":"chat.completion.chunk","created":1728902553,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - \""},"finish_reason":null}]} + data: {"id":"chatcmpl-563","object":"chat.completion.chunk","created":1731311783,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" \""},"finish_reason":null}]} + data: {"id":"chatcmpl-563","object":"chat.completion.chunk","created":1731311783,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"arguments"},"finish_reason":null}]} - data: {"id":"chatcmpl-986","object":"chat.completion.chunk","created":1728902553,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"location"},"finish_reason":null}]} + data: {"id":"chatcmpl-563","object":"chat.completion.chunk","created":1731311783,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"\":"},"finish_reason":null}]} + data: {"id":"chatcmpl-563","object":"chat.completion.chunk","created":1731311783,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" {\""},"finish_reason":null}]} - data: {"id":"chatcmpl-986","object":"chat.completion.chunk","created":1728902553,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"\":"},"finish_reason":null}]} + data: {"id":"chatcmpl-563","object":"chat.completion.chunk","created":1731311783,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"location"},"finish_reason":null}]} + data: {"id":"chatcmpl-563","object":"chat.completion.chunk","created":1731311783,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"\":"},"finish_reason":null}]} - data: {"id":"chatcmpl-986","object":"chat.completion.chunk","created":1728902553,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - \""},"finish_reason":null}]} + data: {"id":"chatcmpl-563","object":"chat.completion.chunk","created":1731311783,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" \""},"finish_reason":null}]} + data: {"id":"chatcmpl-563","object":"chat.completion.chunk","created":1731311783,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"London"},"finish_reason":null}]} - data: {"id":"chatcmpl-986","object":"chat.completion.chunk","created":1728902553,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"New"},"finish_reason":null}]} + data: {"id":"chatcmpl-563","object":"chat.completion.chunk","created":1731311783,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":","},"finish_reason":null}]} + data: {"id":"chatcmpl-563","object":"chat.completion.chunk","created":1731311784,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" United"},"finish_reason":null}]} - data: {"id":"chatcmpl-986","object":"chat.completion.chunk","created":1728902553,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - York"},"finish_reason":null}]} + data: {"id":"chatcmpl-563","object":"chat.completion.chunk","created":1731311784,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" Kingdom"},"finish_reason":null}]} + data: {"id":"chatcmpl-563","object":"chat.completion.chunk","created":1731311784,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"\"}}\n"},"finish_reason":null}]} - data: {"id":"chatcmpl-986","object":"chat.completion.chunk","created":1728902553,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":","},"finish_reason":null}]} - - - data: {"id":"chatcmpl-986","object":"chat.completion.chunk","created":1728902553,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - NY"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-986","object":"chat.completion.chunk","created":1728902553,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"\"\n"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-986","object":"chat.completion.chunk","created":1728902553,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - "},"finish_reason":null}]} - - - data: {"id":"chatcmpl-986","object":"chat.completion.chunk","created":1728902553,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - }\n"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-986","object":"chat.completion.chunk","created":1728902553,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"}\n"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-986","object":"chat.completion.chunk","created":1728902553,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"\u003c/tool_call\u003e"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-986","object":"chat.completion.chunk","created":1728902553,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"\n"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-986","object":"chat.completion.chunk","created":1728902553,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"\u003ctool_call\u003e"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-986","object":"chat.completion.chunk","created":1728902553,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"\n"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-986","object":"chat.completion.chunk","created":1728902553,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"{\n"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-986","object":"chat.completion.chunk","created":1728902553,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - "},"finish_reason":null}]} - - - data: {"id":"chatcmpl-986","object":"chat.completion.chunk","created":1728902553,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - \""},"finish_reason":null}]} - - - data: {"id":"chatcmpl-986","object":"chat.completion.chunk","created":1728902553,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"name"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-986","object":"chat.completion.chunk","created":1728902553,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"\":"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-986","object":"chat.completion.chunk","created":1728902553,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - \""},"finish_reason":null}]} - - - data: {"id":"chatcmpl-986","object":"chat.completion.chunk","created":1728902553,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"get"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-986","object":"chat.completion.chunk","created":1728902553,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"_weather"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-986","object":"chat.completion.chunk","created":1728902553,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"\",\n"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-986","object":"chat.completion.chunk","created":1728902553,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - "},"finish_reason":null}]} - - - data: {"id":"chatcmpl-986","object":"chat.completion.chunk","created":1728902553,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - \""},"finish_reason":null}]} - - - data: {"id":"chatcmpl-986","object":"chat.completion.chunk","created":1728902553,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"arguments"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-986","object":"chat.completion.chunk","created":1728902553,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"\":"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-986","object":"chat.completion.chunk","created":1728902553,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - {\n"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-986","object":"chat.completion.chunk","created":1728902553,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" "},"finish_reason":null}]} - - - data: {"id":"chatcmpl-986","object":"chat.completion.chunk","created":1728902553,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - \""},"finish_reason":null}]} - - - data: {"id":"chatcmpl-986","object":"chat.completion.chunk","created":1728902553,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"location"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-986","object":"chat.completion.chunk","created":1728902553,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"\":"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-986","object":"chat.completion.chunk","created":1728902553,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - \""},"finish_reason":null}]} - - - data: {"id":"chatcmpl-986","object":"chat.completion.chunk","created":1728902553,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"London"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-986","object":"chat.completion.chunk","created":1728902553,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":","},"finish_reason":null}]} - - - data: {"id":"chatcmpl-986","object":"chat.completion.chunk","created":1728902553,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - UK"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-986","object":"chat.completion.chunk","created":1728902553,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"\"\n"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-986","object":"chat.completion.chunk","created":1728902553,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - "},"finish_reason":null}]} - - - data: {"id":"chatcmpl-986","object":"chat.completion.chunk","created":1728902553,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - }\n"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-986","object":"chat.completion.chunk","created":1728902553,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"}\n"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-986","object":"chat.completion.chunk","created":1728902553,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"\u003c/tool_call\u003e"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-986","object":"chat.completion.chunk","created":1728902553,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":"stop"}]} + data: {"id":"chatcmpl-563","object":"chat.completion.chunk","created":1731311784,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"\u003c/tool_call\u003e"},"finish_reason":null}]} + data: {"id":"chatcmpl-563","object":"chat.completion.chunk","created":1731311784,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":"stop"}]} data: [DONE] - - ' headers: Content-Type: - text/event-stream Date: - - Mon, 14 Oct 2024 10:42:33 GMT + - Mon, 11 Nov 2024 07:56:23 GMT Set-Cookie: test_set_cookie Transfer-Encoding: - chunked diff --git a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_stream_with_parallel_tools_and_capture_message_content_log_events[openai_provider_chat_completions].yaml b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_stream_with_parallel_tools_and_capture_message_content_log_events[openai_provider_chat_completions].yaml index 5b254dd..c51e65a 100644 --- a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_stream_with_parallel_tools_and_capture_message_content_log_events[openai_provider_chat_completions].yaml +++ b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_stream_with_parallel_tools_and_capture_message_content_log_events[openai_provider_chat_completions].yaml @@ -1,11 +1,41 @@ interactions: - request: - body: '{"messages": [{"role": "system", "content": "You are a helpful assistant - providing weather updates."}, {"role": "user", "content": "What is the weather - in New York City and London?"}], "model": "gpt-4o-mini", "stream": true, "tools": - [{"type": "function", "function": {"name": "get_weather", "strict": true, "parameters": - {"type": "object", "properties": {"location": {"type": "string"}}, "required": - ["location"], "additionalProperties": false}}}]}' + body: |- + { + "messages": [ + { + "role": "system", + "content": "You are a helpful assistant providing weather updates." + }, + { + "role": "user", + "content": "What is the weather in New York City and London?" + } + ], + "model": "gpt-4o-mini", + "stream": true, + "tools": [ + { + "type": "function", + "function": { + "name": "get_weather", + "strict": true, + "parameters": { + "type": "object", + "properties": { + "location": { + "type": "string" + } + }, + "required": [ + "location" + ], + "additionalProperties": false + } + } + } + ] + } headers: accept: - application/json @@ -22,89 +52,71 @@ interactions: host: - api.openai.com user-agent: - - OpenAI/Python 1.34.0 + - OpenAI/Python 1.54.3 x-stainless-arch: - - x64 + - arm64 x-stainless-async: - 'false' x-stainless-lang: - python x-stainless-os: - - Linux + - MacOS x-stainless-package-version: - - 1.34.0 + - 1.54.3 + x-stainless-retry-count: + - '0' x-stainless-runtime: - CPython x-stainless-runtime-version: - - 3.10.12 + - 3.12.6 method: POST uri: https://api.openai.com/v1/chat/completions response: body: - string: 'data: {"id":"chatcmpl-AICov4avW9uwU1rfxlUzPKGG5BiCs","object":"chat.completion.chunk","created":1728902549,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_e2bde53e6e","choices":[{"index":0,"delta":{"role":"assistant","content":null},"logprobs":null,"finish_reason":null}]} + string: |+ + data: {"id":"chatcmpl-ASfaJQVIzX3LUZllbc5hR0NnEzs0b","object":"chat.completion.chunk","created":1731396399,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_0ba0d124f1","choices":[{"index":0,"delta":{"role":"assistant","content":null},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-ASfaJQVIzX3LUZllbc5hR0NnEzs0b","object":"chat.completion.chunk","created":1731396399,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_0ba0d124f1","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"id":"call_9nzwliy6hCnTQuvkNdULIFkr","type":"function","function":{"name":"get_weather","arguments":""}}]},"logprobs":null,"finish_reason":null}]} - data: {"id":"chatcmpl-AICov4avW9uwU1rfxlUzPKGG5BiCs","object":"chat.completion.chunk","created":1728902549,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_e2bde53e6e","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"id":"call_m8FzMvtVd3wjksWMeRCWkPDK","type":"function","function":{"name":"get_weather","arguments":""}}]},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-ASfaJQVIzX3LUZllbc5hR0NnEzs0b","object":"chat.completion.chunk","created":1731396399,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_0ba0d124f1","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"{\"lo"}}]},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-ASfaJQVIzX3LUZllbc5hR0NnEzs0b","object":"chat.completion.chunk","created":1731396399,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_0ba0d124f1","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"catio"}}]},"logprobs":null,"finish_reason":null}]} - data: {"id":"chatcmpl-AICov4avW9uwU1rfxlUzPKGG5BiCs","object":"chat.completion.chunk","created":1728902549,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_e2bde53e6e","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"{\"lo"}}]},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-ASfaJQVIzX3LUZllbc5hR0NnEzs0b","object":"chat.completion.chunk","created":1731396399,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_0ba0d124f1","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"n\": \"N"}}]},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-ASfaJQVIzX3LUZllbc5hR0NnEzs0b","object":"chat.completion.chunk","created":1731396399,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_0ba0d124f1","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"ew Y"}}]},"logprobs":null,"finish_reason":null}]} - data: {"id":"chatcmpl-AICov4avW9uwU1rfxlUzPKGG5BiCs","object":"chat.completion.chunk","created":1728902549,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_e2bde53e6e","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"catio"}}]},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-ASfaJQVIzX3LUZllbc5hR0NnEzs0b","object":"chat.completion.chunk","created":1731396399,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_0ba0d124f1","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"ork C"}}]},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-ASfaJQVIzX3LUZllbc5hR0NnEzs0b","object":"chat.completion.chunk","created":1731396399,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_0ba0d124f1","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"ity\"}"}}]},"logprobs":null,"finish_reason":null}]} - data: {"id":"chatcmpl-AICov4avW9uwU1rfxlUzPKGG5BiCs","object":"chat.completion.chunk","created":1728902549,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_e2bde53e6e","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"n\": - \"N"}}]},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-ASfaJQVIzX3LUZllbc5hR0NnEzs0b","object":"chat.completion.chunk","created":1731396399,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_0ba0d124f1","choices":[{"index":0,"delta":{"tool_calls":[{"index":1,"id":"call_3WjOCSgcSXK5YPOuP6GMwncg","type":"function","function":{"name":"get_weather","arguments":""}}]},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-ASfaJQVIzX3LUZllbc5hR0NnEzs0b","object":"chat.completion.chunk","created":1731396399,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_0ba0d124f1","choices":[{"index":0,"delta":{"tool_calls":[{"index":1,"function":{"arguments":"{\"lo"}}]},"logprobs":null,"finish_reason":null}]} - data: {"id":"chatcmpl-AICov4avW9uwU1rfxlUzPKGG5BiCs","object":"chat.completion.chunk","created":1728902549,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_e2bde53e6e","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"ew - Y"}}]},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-ASfaJQVIzX3LUZllbc5hR0NnEzs0b","object":"chat.completion.chunk","created":1731396399,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_0ba0d124f1","choices":[{"index":0,"delta":{"tool_calls":[{"index":1,"function":{"arguments":"catio"}}]},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-ASfaJQVIzX3LUZllbc5hR0NnEzs0b","object":"chat.completion.chunk","created":1731396399,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_0ba0d124f1","choices":[{"index":0,"delta":{"tool_calls":[{"index":1,"function":{"arguments":"n\": \"L"}}]},"logprobs":null,"finish_reason":null}]} - data: {"id":"chatcmpl-AICov4avW9uwU1rfxlUzPKGG5BiCs","object":"chat.completion.chunk","created":1728902549,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_e2bde53e6e","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"ork - C"}}]},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-ASfaJQVIzX3LUZllbc5hR0NnEzs0b","object":"chat.completion.chunk","created":1731396399,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_0ba0d124f1","choices":[{"index":0,"delta":{"tool_calls":[{"index":1,"function":{"arguments":"ondo"}}]},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-ASfaJQVIzX3LUZllbc5hR0NnEzs0b","object":"chat.completion.chunk","created":1731396399,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_0ba0d124f1","choices":[{"index":0,"delta":{"tool_calls":[{"index":1,"function":{"arguments":"n\"}"}}]},"logprobs":null,"finish_reason":null}]} - data: {"id":"chatcmpl-AICov4avW9uwU1rfxlUzPKGG5BiCs","object":"chat.completion.chunk","created":1728902549,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_e2bde53e6e","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"ity\"}"}}]},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-AICov4avW9uwU1rfxlUzPKGG5BiCs","object":"chat.completion.chunk","created":1728902549,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_e2bde53e6e","choices":[{"index":0,"delta":{"tool_calls":[{"index":1,"id":"call_4WcXUPtB1wlKUy1lOrguqAtC","type":"function","function":{"name":"get_weather","arguments":""}}]},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-AICov4avW9uwU1rfxlUzPKGG5BiCs","object":"chat.completion.chunk","created":1728902549,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_e2bde53e6e","choices":[{"index":0,"delta":{"tool_calls":[{"index":1,"function":{"arguments":"{\"lo"}}]},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-AICov4avW9uwU1rfxlUzPKGG5BiCs","object":"chat.completion.chunk","created":1728902549,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_e2bde53e6e","choices":[{"index":0,"delta":{"tool_calls":[{"index":1,"function":{"arguments":"catio"}}]},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-AICov4avW9uwU1rfxlUzPKGG5BiCs","object":"chat.completion.chunk","created":1728902549,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_e2bde53e6e","choices":[{"index":0,"delta":{"tool_calls":[{"index":1,"function":{"arguments":"n\": - \"L"}}]},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-AICov4avW9uwU1rfxlUzPKGG5BiCs","object":"chat.completion.chunk","created":1728902549,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_e2bde53e6e","choices":[{"index":0,"delta":{"tool_calls":[{"index":1,"function":{"arguments":"ondo"}}]},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-AICov4avW9uwU1rfxlUzPKGG5BiCs","object":"chat.completion.chunk","created":1728902549,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_e2bde53e6e","choices":[{"index":0,"delta":{"tool_calls":[{"index":1,"function":{"arguments":"n\"}"}}]},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-AICov4avW9uwU1rfxlUzPKGG5BiCs","object":"chat.completion.chunk","created":1728902549,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_e2bde53e6e","choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"tool_calls"}]} - + data: {"id":"chatcmpl-ASfaJQVIzX3LUZllbc5hR0NnEzs0b","object":"chat.completion.chunk","created":1731396399,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_0ba0d124f1","choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"tool_calls"}]} data: [DONE] - - ' headers: CF-Cache-Status: - DYNAMIC CF-RAY: - - 8d26f681a8120e56-MXP + - 8e14cb863b3d81e4-SIN Connection: - keep-alive Content-Type: - text/event-stream; charset=utf-8 Date: - - Mon, 14 Oct 2024 10:42:31 GMT + - Tue, 12 Nov 2024 07:26:40 GMT Server: - cloudflare Set-Cookie: test_set_cookie @@ -118,7 +130,7 @@ interactions: - h3=":443"; ma=86400 openai-organization: test_openai_org_key openai-processing-ms: - - '2211' + - '946' openai-version: - '2020-10-01' strict-transport-security: @@ -128,15 +140,15 @@ interactions: x-ratelimit-limit-tokens: - '200000' x-ratelimit-remaining-requests: - - '9999' + - '9987' x-ratelimit-remaining-tokens: - '199956' x-ratelimit-reset-requests: - - 8.64s + - 1m48.017s x-ratelimit-reset-tokens: - 13ms x-request-id: - - req_edb2118c6f6bfb46ab38b815de243d4d + - req_e491a8e67eab26b2f434f15dee77d4c7 status: code: 200 message: OK diff --git a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_stream_with_tools_and_capture_message_content[azure_provider_chat_completions].yaml b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_stream_with_tools_and_capture_message_content[azure_provider_chat_completions].yaml index e7f1c9d..2de43cc 100644 --- a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_stream_with_tools_and_capture_message_content[azure_provider_chat_completions].yaml +++ b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_stream_with_tools_and_capture_message_content[azure_provider_chat_completions].yaml @@ -1,16 +1,50 @@ interactions: - request: - body: '{"messages": [{"role": "system", "content": "You are a helpful customer - support assistant. Use the supplied tools to assist the user."}, {"role": "user", - "content": "Hi, can you tell me the delivery date for my order?"}, {"role": - "assistant", "content": "Hi there! I can help with that. Can you please provide - your order ID?"}, {"role": "user", "content": "i think it is order_12345"}], - "model": "gpt-4o-mini", "stream": true, "tools": [{"type": "function", "function": - {"name": "get_delivery_date", "description": "Get the delivery date for a customer''s - order. Call this whenever you need to know the delivery date, for example when - a customer asks ''Where is my package''", "parameters": {"type": "object", "properties": - {"order_id": {"type": "string", "description": "The customer''s order ID."}}, - "required": ["order_id"], "additionalProperties": false}}}]}' + body: |- + { + "messages": [ + { + "role": "system", + "content": "You are a helpful customer support assistant. Use the supplied tools to assist the user." + }, + { + "role": "user", + "content": "Hi, can you tell me the delivery date for my order?" + }, + { + "role": "assistant", + "content": "Hi there! I can help with that. Can you please provide your order ID?" + }, + { + "role": "user", + "content": "i think it is order_12345" + } + ], + "model": "unused", + "stream": true, + "tools": [ + { + "type": "function", + "function": { + "name": "get_delivery_date", + "description": "Get the delivery date for a customer's order. Call this whenever you need to know the delivery date, for example when a customer asks 'Where is my package'", + "parameters": { + "type": "object", + "properties": { + "order_id": { + "type": "string", + "description": "The customer's order ID." + } + }, + "required": [ + "order_id" + ], + "additionalProperties": false + } + } + } + ] + } headers: accept: - application/json @@ -23,103 +57,103 @@ interactions: connection: - keep-alive content-length: - - '858' + - '853' content-type: - application/json host: - test.openai.azure.com user-agent: - - AzureOpenAI/Python 1.50.0 + - AzureOpenAI/Python 1.54.3 x-stainless-arch: - - x64 + - arm64 x-stainless-async: - 'false' x-stainless-lang: - python x-stainless-os: - - Linux + - MacOS x-stainless-package-version: - - 1.50.0 + - 1.54.3 x-stainless-retry-count: - '0' x-stainless-runtime: - CPython x-stainless-runtime-version: - - 3.10.12 + - 3.12.6 method: POST - uri: https://test.openai.azure.com/openai/deployments/test-azure-deployment/chat/completions?api-version=2023-03-15-preview + uri: https://test.openai.azure.com/openai/deployments/test-azure-deployment/chat/completions?api-version=2024-08-01-preview response: body: - string: 'data: {"choices":[{"delta":{"role":"assistant","tool_calls":[{"function":{"arguments":"","name":"get_delivery_date"},"id":"call_96LHcDPBXtgIxgxbFvuJjTYU","index":0,"type":"function"}]},"finish_reason":null,"index":0}],"created":1727963271,"id":"chatcmpl-AEGTHbbvqBK2BE52I8GByDCM2dypS","model":"gpt-4o-mini","object":"chat.completion.chunk","system_fingerprint":"fp_878413d04d"} + string: |+ + data: {"choices":[],"created":0,"id":"","model":"","object":"","prompt_filter_results":[{"prompt_index":0,"content_filter_results":{"hate":{"filtered":false,"severity":"safe"},"self_harm":{"filtered":false,"severity":"safe"},"sexual":{"filtered":false,"severity":"safe"},"violence":{"filtered":false,"severity":"safe"}}}]} + data: {"choices":[{"content_filter_results":{},"delta":{"content":null,"role":"assistant","tool_calls":[{"function":{"arguments":"","name":"get_delivery_date"},"id":"call_hR2GEOnGJhmLsHHsMgfLuICf","index":0,"type":"function"}]},"finish_reason":null,"index":0,"logprobs":null}],"created":1731466214,"id":"chatcmpl-ASxkMa2HB9hyfwSNjCqVUwX2txxqr","model":"gpt-4-32k","object":"chat.completion.chunk","system_fingerprint":null} - data: {"choices":[{"delta":{"tool_calls":[{"function":{"arguments":"{\""},"index":0}]},"finish_reason":null,"index":0}],"created":1727963271,"id":"chatcmpl-AEGTHbbvqBK2BE52I8GByDCM2dypS","model":"gpt-4o-mini","object":"chat.completion.chunk","system_fingerprint":"fp_878413d04d"} + data: {"choices":[{"content_filter_results":{},"delta":{"tool_calls":[{"function":{"arguments":"{\n"},"index":0}]},"finish_reason":null,"index":0,"logprobs":null}],"created":1731466214,"id":"chatcmpl-ASxkMa2HB9hyfwSNjCqVUwX2txxqr","model":"gpt-4-32k","object":"chat.completion.chunk","system_fingerprint":null} + data: {"choices":[{"content_filter_results":{},"delta":{"tool_calls":[{"function":{"arguments":" "},"index":0}]},"finish_reason":null,"index":0,"logprobs":null}],"created":1731466214,"id":"chatcmpl-ASxkMa2HB9hyfwSNjCqVUwX2txxqr","model":"gpt-4-32k","object":"chat.completion.chunk","system_fingerprint":null} - data: {"choices":[{"delta":{"tool_calls":[{"function":{"arguments":"order"},"index":0}]},"finish_reason":null,"index":0}],"created":1727963271,"id":"chatcmpl-AEGTHbbvqBK2BE52I8GByDCM2dypS","model":"gpt-4o-mini","object":"chat.completion.chunk","system_fingerprint":"fp_878413d04d"} + data: {"choices":[{"content_filter_results":{},"delta":{"tool_calls":[{"function":{"arguments":" \""},"index":0}]},"finish_reason":null,"index":0,"logprobs":null}],"created":1731466214,"id":"chatcmpl-ASxkMa2HB9hyfwSNjCqVUwX2txxqr","model":"gpt-4-32k","object":"chat.completion.chunk","system_fingerprint":null} + data: {"choices":[{"content_filter_results":{},"delta":{"tool_calls":[{"function":{"arguments":"order"},"index":0}]},"finish_reason":null,"index":0,"logprobs":null}],"created":1731466214,"id":"chatcmpl-ASxkMa2HB9hyfwSNjCqVUwX2txxqr","model":"gpt-4-32k","object":"chat.completion.chunk","system_fingerprint":null} - data: {"choices":[{"delta":{"tool_calls":[{"function":{"arguments":"_id"},"index":0}]},"finish_reason":null,"index":0}],"created":1727963271,"id":"chatcmpl-AEGTHbbvqBK2BE52I8GByDCM2dypS","model":"gpt-4o-mini","object":"chat.completion.chunk","system_fingerprint":"fp_878413d04d"} + data: {"choices":[{"content_filter_results":{},"delta":{"tool_calls":[{"function":{"arguments":"_id"},"index":0}]},"finish_reason":null,"index":0,"logprobs":null}],"created":1731466214,"id":"chatcmpl-ASxkMa2HB9hyfwSNjCqVUwX2txxqr","model":"gpt-4-32k","object":"chat.completion.chunk","system_fingerprint":null} + data: {"choices":[{"content_filter_results":{},"delta":{"tool_calls":[{"function":{"arguments":"\":"},"index":0}]},"finish_reason":null,"index":0,"logprobs":null}],"created":1731466214,"id":"chatcmpl-ASxkMa2HB9hyfwSNjCqVUwX2txxqr","model":"gpt-4-32k","object":"chat.completion.chunk","system_fingerprint":null} - data: {"choices":[{"delta":{"tool_calls":[{"function":{"arguments":"\":\""},"index":0}]},"finish_reason":null,"index":0}],"created":1727963271,"id":"chatcmpl-AEGTHbbvqBK2BE52I8GByDCM2dypS","model":"gpt-4o-mini","object":"chat.completion.chunk","system_fingerprint":"fp_878413d04d"} + data: {"choices":[{"content_filter_results":{},"delta":{"tool_calls":[{"function":{"arguments":" \""},"index":0}]},"finish_reason":null,"index":0,"logprobs":null}],"created":1731466214,"id":"chatcmpl-ASxkMa2HB9hyfwSNjCqVUwX2txxqr","model":"gpt-4-32k","object":"chat.completion.chunk","system_fingerprint":null} + data: {"choices":[{"content_filter_results":{},"delta":{"tool_calls":[{"function":{"arguments":"order"},"index":0}]},"finish_reason":null,"index":0,"logprobs":null}],"created":1731466214,"id":"chatcmpl-ASxkMa2HB9hyfwSNjCqVUwX2txxqr","model":"gpt-4-32k","object":"chat.completion.chunk","system_fingerprint":null} - data: {"choices":[{"delta":{"tool_calls":[{"function":{"arguments":"order"},"index":0}]},"finish_reason":null,"index":0}],"created":1727963271,"id":"chatcmpl-AEGTHbbvqBK2BE52I8GByDCM2dypS","model":"gpt-4o-mini","object":"chat.completion.chunk","system_fingerprint":"fp_878413d04d"} + data: {"choices":[{"content_filter_results":{},"delta":{"tool_calls":[{"function":{"arguments":"_"},"index":0}]},"finish_reason":null,"index":0,"logprobs":null}],"created":1731466214,"id":"chatcmpl-ASxkMa2HB9hyfwSNjCqVUwX2txxqr","model":"gpt-4-32k","object":"chat.completion.chunk","system_fingerprint":null} + data: {"choices":[{"content_filter_results":{},"delta":{"tool_calls":[{"function":{"arguments":"123"},"index":0}]},"finish_reason":null,"index":0,"logprobs":null}],"created":1731466214,"id":"chatcmpl-ASxkMa2HB9hyfwSNjCqVUwX2txxqr","model":"gpt-4-32k","object":"chat.completion.chunk","system_fingerprint":null} - data: {"choices":[{"delta":{"tool_calls":[{"function":{"arguments":"_"},"index":0}]},"finish_reason":null,"index":0}],"created":1727963271,"id":"chatcmpl-AEGTHbbvqBK2BE52I8GByDCM2dypS","model":"gpt-4o-mini","object":"chat.completion.chunk","system_fingerprint":"fp_878413d04d"} + data: {"choices":[{"content_filter_results":{},"delta":{"tool_calls":[{"function":{"arguments":"45"},"index":0}]},"finish_reason":null,"index":0,"logprobs":null}],"created":1731466214,"id":"chatcmpl-ASxkMa2HB9hyfwSNjCqVUwX2txxqr","model":"gpt-4-32k","object":"chat.completion.chunk","system_fingerprint":null} + data: {"choices":[{"content_filter_results":{},"delta":{"tool_calls":[{"function":{"arguments":"\"\n"},"index":0}]},"finish_reason":null,"index":0,"logprobs":null}],"created":1731466214,"id":"chatcmpl-ASxkMa2HB9hyfwSNjCqVUwX2txxqr","model":"gpt-4-32k","object":"chat.completion.chunk","system_fingerprint":null} - data: {"choices":[{"delta":{"tool_calls":[{"function":{"arguments":"123"},"index":0}]},"finish_reason":null,"index":0}],"created":1727963271,"id":"chatcmpl-AEGTHbbvqBK2BE52I8GByDCM2dypS","model":"gpt-4o-mini","object":"chat.completion.chunk","system_fingerprint":"fp_878413d04d"} - - - data: {"choices":[{"delta":{"tool_calls":[{"function":{"arguments":"45"},"index":0}]},"finish_reason":null,"index":0}],"created":1727963271,"id":"chatcmpl-AEGTHbbvqBK2BE52I8GByDCM2dypS","model":"gpt-4o-mini","object":"chat.completion.chunk","system_fingerprint":"fp_878413d04d"} - - - data: {"choices":[{"delta":{"tool_calls":[{"function":{"arguments":"\"}"},"index":0}]},"finish_reason":null,"index":0}],"created":1727963271,"id":"chatcmpl-AEGTHbbvqBK2BE52I8GByDCM2dypS","model":"gpt-4o-mini","object":"chat.completion.chunk","system_fingerprint":"fp_878413d04d"} - - - data: {"choices":[{"delta":{},"finish_reason":"tool_calls","index":0}],"created":1727963271,"id":"chatcmpl-AEGTHbbvqBK2BE52I8GByDCM2dypS","model":"gpt-4o-mini","object":"chat.completion.chunk","system_fingerprint":"fp_878413d04d"} + data: {"choices":[{"content_filter_results":{},"delta":{"tool_calls":[{"function":{"arguments":"}"},"index":0}]},"finish_reason":null,"index":0,"logprobs":null}],"created":1731466214,"id":"chatcmpl-ASxkMa2HB9hyfwSNjCqVUwX2txxqr","model":"gpt-4-32k","object":"chat.completion.chunk","system_fingerprint":null} + data: {"choices":[{"content_filter_results":{},"delta":{},"finish_reason":"tool_calls","index":0,"logprobs":null}],"created":1731466214,"id":"chatcmpl-ASxkMa2HB9hyfwSNjCqVUwX2txxqr","model":"gpt-4-32k","object":"chat.completion.chunk","system_fingerprint":null} data: [DONE] - - ' headers: + Cache-Control: + - no-cache, must-revalidate Content-Type: - - text/event-stream; charset=utf-8 + - text/event-stream Date: - - Thu, 03 Oct 2024 13:47:50 GMT + - Wed, 13 Nov 2024 02:50:14 GMT Set-Cookie: test_set_cookie Strict-Transport-Security: - max-age=31536000; includeSubDomains; preload Transfer-Encoding: - chunked + access-control-allow-origin: + - '*' apim-request-id: - - 3860d8c9-3fc0-47f9-99c7-81783c2fc7e4 + - 0fd69d8a-a962-41e2-afe5-61f4a011d059 azureml-model-session: - - d007-20240930124026 - openai-organization: test_openai_org_key + - d156-20241010120317 + openai-organization: test_openai_org_id x-accel-buffering: - 'no' x-content-type-options: - nosniff - x-envoy-upstream-service-time: - - '197' x-ms-client-request-id: - - 3860d8c9-3fc0-47f9-99c7-81783c2fc7e4 + - 0fd69d8a-a962-41e2-afe5-61f4a011d059 x-ms-rai-invoked: - 'true' x-ms-region: - - East US + - Switzerland North x-ratelimit-remaining-requests: - - '907' + - '72' x-ratelimit-remaining-tokens: - - '88985' + - '79724' x-request-id: - - aa16ff81-57ab-4f83-8ef9-82ae3032f50d + - 947b357e-4e8f-41f6-a941-1e5390c3e7b0 status: code: 200 message: OK diff --git a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_stream_with_tools_and_capture_message_content[ollama_provider_chat_completions].yaml b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_stream_with_tools_and_capture_message_content[ollama_provider_chat_completions].yaml index 6236f69..429d402 100644 --- a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_stream_with_tools_and_capture_message_content[ollama_provider_chat_completions].yaml +++ b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_stream_with_tools_and_capture_message_content[ollama_provider_chat_completions].yaml @@ -1,16 +1,50 @@ interactions: - request: - body: '{"messages": [{"role": "system", "content": "You are a helpful customer - support assistant. Use the supplied tools to assist the user."}, {"role": "user", - "content": "Hi, can you tell me the delivery date for my order?"}, {"role": - "assistant", "content": "Hi there! I can help with that. Can you please provide - your order ID?"}, {"role": "user", "content": "i think it is order_12345"}], - "model": "qwen2.5:0.5b", "stream": true, "tools": [{"type": "function", "function": - {"name": "get_delivery_date", "description": "Get the delivery date for a customer''s - order. Call this whenever you need to know the delivery date, for example when - a customer asks ''Where is my package''", "parameters": {"type": "object", "properties": - {"order_id": {"type": "string", "description": "The customer''s order ID."}}, - "required": ["order_id"], "additionalProperties": false}}}]}' + body: |- + { + "messages": [ + { + "role": "system", + "content": "You are a helpful customer support assistant. Use the supplied tools to assist the user." + }, + { + "role": "user", + "content": "Hi, can you tell me the delivery date for my order?" + }, + { + "role": "assistant", + "content": "Hi there! I can help with that. Can you please provide your order ID?" + }, + { + "role": "user", + "content": "i think it is order_12345" + } + ], + "model": "qwen2.5:0.5b", + "stream": true, + "tools": [ + { + "type": "function", + "function": { + "name": "get_delivery_date", + "description": "Get the delivery date for a customer's order. Call this whenever you need to know the delivery date, for example when a customer asks 'Where is my package'", + "parameters": { + "type": "object", + "properties": { + "order_id": { + "type": "string", + "description": "The customer's order ID." + } + }, + "required": [ + "order_id" + ], + "additionalProperties": false + } + } + } + ] + } headers: accept: - application/json @@ -27,124 +61,91 @@ interactions: host: - localhost:11434 user-agent: - - OpenAI/Python 1.50.0 + - OpenAI/Python 1.50.2 x-stainless-arch: - - x64 + - arm64 x-stainless-async: - 'false' x-stainless-lang: - python x-stainless-os: - - Linux + - MacOS x-stainless-package-version: - - 1.50.0 + - 1.50.2 x-stainless-retry-count: - '0' x-stainless-runtime: - CPython x-stainless-runtime-version: - - 3.10.12 + - 3.12.6 method: POST uri: http://localhost:11434/v1/chat/completions response: body: - string: 'data: {"id":"chatcmpl-598","object":"chat.completion.chunk","created":1727963272,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"\u003ctool_call\u003e"},"finish_reason":null}]} + string: |+ + data: {"id":"chatcmpl-268","object":"chat.completion.chunk","created":1731311782,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"\u003ctool_call\u003e"},"finish_reason":null}]} + data: {"id":"chatcmpl-268","object":"chat.completion.chunk","created":1731311782,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"\n"},"finish_reason":null}]} - data: {"id":"chatcmpl-598","object":"chat.completion.chunk","created":1727963272,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"\n"},"finish_reason":null}]} + data: {"id":"chatcmpl-268","object":"chat.completion.chunk","created":1731311782,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"{\""},"finish_reason":null}]} + data: {"id":"chatcmpl-268","object":"chat.completion.chunk","created":1731311782,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"name"},"finish_reason":null}]} - data: {"id":"chatcmpl-598","object":"chat.completion.chunk","created":1727963272,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"{\""},"finish_reason":null}]} + data: {"id":"chatcmpl-268","object":"chat.completion.chunk","created":1731311782,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"\":"},"finish_reason":null}]} + data: {"id":"chatcmpl-268","object":"chat.completion.chunk","created":1731311782,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" \""},"finish_reason":null}]} - data: {"id":"chatcmpl-598","object":"chat.completion.chunk","created":1727963272,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"name"},"finish_reason":null}]} + data: {"id":"chatcmpl-268","object":"chat.completion.chunk","created":1731311782,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"get"},"finish_reason":null}]} + data: {"id":"chatcmpl-268","object":"chat.completion.chunk","created":1731311782,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"_delivery"},"finish_reason":null}]} - data: {"id":"chatcmpl-598","object":"chat.completion.chunk","created":1727963272,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"\":"},"finish_reason":null}]} + data: {"id":"chatcmpl-268","object":"chat.completion.chunk","created":1731311782,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"_date"},"finish_reason":null}]} + data: {"id":"chatcmpl-268","object":"chat.completion.chunk","created":1731311782,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"\","},"finish_reason":null}]} - data: {"id":"chatcmpl-598","object":"chat.completion.chunk","created":1727963272,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - \""},"finish_reason":null}]} + data: {"id":"chatcmpl-268","object":"chat.completion.chunk","created":1731311782,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" \""},"finish_reason":null}]} + data: {"id":"chatcmpl-268","object":"chat.completion.chunk","created":1731311782,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"arguments"},"finish_reason":null}]} - data: {"id":"chatcmpl-598","object":"chat.completion.chunk","created":1727963272,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"get"},"finish_reason":null}]} + data: {"id":"chatcmpl-268","object":"chat.completion.chunk","created":1731311782,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"\":"},"finish_reason":null}]} + data: {"id":"chatcmpl-268","object":"chat.completion.chunk","created":1731311782,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" {\""},"finish_reason":null}]} - data: {"id":"chatcmpl-598","object":"chat.completion.chunk","created":1727963272,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"_delivery"},"finish_reason":null}]} + data: {"id":"chatcmpl-268","object":"chat.completion.chunk","created":1731311782,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"order"},"finish_reason":null}]} + data: {"id":"chatcmpl-268","object":"chat.completion.chunk","created":1731311782,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"_id"},"finish_reason":null}]} - data: {"id":"chatcmpl-598","object":"chat.completion.chunk","created":1727963272,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"_date"},"finish_reason":null}]} + data: {"id":"chatcmpl-268","object":"chat.completion.chunk","created":1731311782,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"\":"},"finish_reason":null}]} + data: {"id":"chatcmpl-268","object":"chat.completion.chunk","created":1731311782,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" \""},"finish_reason":null}]} - data: {"id":"chatcmpl-598","object":"chat.completion.chunk","created":1727963272,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"\","},"finish_reason":null}]} + data: {"id":"chatcmpl-268","object":"chat.completion.chunk","created":1731311782,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"order"},"finish_reason":null}]} + data: {"id":"chatcmpl-268","object":"chat.completion.chunk","created":1731311782,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"_"},"finish_reason":null}]} - data: {"id":"chatcmpl-598","object":"chat.completion.chunk","created":1727963272,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - \""},"finish_reason":null}]} + data: {"id":"chatcmpl-268","object":"chat.completion.chunk","created":1731311782,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"1"},"finish_reason":null}]} + data: {"id":"chatcmpl-268","object":"chat.completion.chunk","created":1731311782,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"2"},"finish_reason":null}]} - data: {"id":"chatcmpl-598","object":"chat.completion.chunk","created":1727963272,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"arguments"},"finish_reason":null}]} + data: {"id":"chatcmpl-268","object":"chat.completion.chunk","created":1731311782,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"3"},"finish_reason":null}]} + data: {"id":"chatcmpl-268","object":"chat.completion.chunk","created":1731311782,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"4"},"finish_reason":null}]} - data: {"id":"chatcmpl-598","object":"chat.completion.chunk","created":1727963272,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"\":"},"finish_reason":null}]} + data: {"id":"chatcmpl-268","object":"chat.completion.chunk","created":1731311782,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"5"},"finish_reason":null}]} + data: {"id":"chatcmpl-268","object":"chat.completion.chunk","created":1731311782,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"\"}}\n"},"finish_reason":null}]} - data: {"id":"chatcmpl-598","object":"chat.completion.chunk","created":1727963272,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - {\""},"finish_reason":null}]} - - - data: {"id":"chatcmpl-598","object":"chat.completion.chunk","created":1727963272,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"order"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-598","object":"chat.completion.chunk","created":1727963272,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"_id"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-598","object":"chat.completion.chunk","created":1727963272,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"\":"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-598","object":"chat.completion.chunk","created":1727963272,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - \""},"finish_reason":null}]} - - - data: {"id":"chatcmpl-598","object":"chat.completion.chunk","created":1727963272,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"order"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-598","object":"chat.completion.chunk","created":1727963272,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"_"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-598","object":"chat.completion.chunk","created":1727963272,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"1"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-598","object":"chat.completion.chunk","created":1727963272,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"2"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-598","object":"chat.completion.chunk","created":1727963272,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"3"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-598","object":"chat.completion.chunk","created":1727963272,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"4"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-598","object":"chat.completion.chunk","created":1727963272,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"5"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-598","object":"chat.completion.chunk","created":1727963272,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"\"}}\n"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-598","object":"chat.completion.chunk","created":1727963272,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"\u003c/tool_call\u003e"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-598","object":"chat.completion.chunk","created":1727963272,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":"stop"}]} + data: {"id":"chatcmpl-268","object":"chat.completion.chunk","created":1731311782,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"\u003c/tool_call\u003e"},"finish_reason":null}]} + data: {"id":"chatcmpl-268","object":"chat.completion.chunk","created":1731311782,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":"stop"}]} data: [DONE] - - ' headers: Content-Type: - text/event-stream Date: - - Thu, 03 Oct 2024 13:47:52 GMT + - Mon, 11 Nov 2024 07:56:22 GMT Set-Cookie: test_set_cookie Transfer-Encoding: - chunked diff --git a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_stream_with_tools_and_capture_message_content[openai_provider_chat_completions].yaml b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_stream_with_tools_and_capture_message_content[openai_provider_chat_completions].yaml index 23071e7..15be4e5 100644 --- a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_stream_with_tools_and_capture_message_content[openai_provider_chat_completions].yaml +++ b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_stream_with_tools_and_capture_message_content[openai_provider_chat_completions].yaml @@ -1,16 +1,50 @@ interactions: - request: - body: '{"messages": [{"role": "system", "content": "You are a helpful customer - support assistant. Use the supplied tools to assist the user."}, {"role": "user", - "content": "Hi, can you tell me the delivery date for my order?"}, {"role": - "assistant", "content": "Hi there! I can help with that. Can you please provide - your order ID?"}, {"role": "user", "content": "i think it is order_12345"}], - "model": "gpt-4o-mini", "stream": true, "tools": [{"type": "function", "function": - {"name": "get_delivery_date", "description": "Get the delivery date for a customer''s - order. Call this whenever you need to know the delivery date, for example when - a customer asks ''Where is my package''", "parameters": {"type": "object", "properties": - {"order_id": {"type": "string", "description": "The customer''s order ID."}}, - "required": ["order_id"], "additionalProperties": false}}}]}' + body: |- + { + "messages": [ + { + "role": "system", + "content": "You are a helpful customer support assistant. Use the supplied tools to assist the user." + }, + { + "role": "user", + "content": "Hi, can you tell me the delivery date for my order?" + }, + { + "role": "assistant", + "content": "Hi there! I can help with that. Can you please provide your order ID?" + }, + { + "role": "user", + "content": "i think it is order_12345" + } + ], + "model": "gpt-4o-mini", + "stream": true, + "tools": [ + { + "type": "function", + "function": { + "name": "get_delivery_date", + "description": "Get the delivery date for a customer's order. Call this whenever you need to know the delivery date, for example when a customer asks 'Where is my package'", + "parameters": { + "type": "object", + "properties": { + "order_id": { + "type": "string", + "description": "The customer's order ID." + } + }, + "required": [ + "order_id" + ], + "additionalProperties": false + } + } + } + ] + } headers: accept: - application/json @@ -27,75 +61,63 @@ interactions: host: - api.openai.com user-agent: - - OpenAI/Python 1.50.0 + - OpenAI/Python 1.54.3 x-stainless-arch: - - x64 + - arm64 x-stainless-async: - 'false' x-stainless-lang: - python x-stainless-os: - - Linux + - MacOS x-stainless-package-version: - - 1.50.0 + - 1.54.3 x-stainless-retry-count: - '0' x-stainless-runtime: - CPython x-stainless-runtime-version: - - 3.10.12 + - 3.12.6 method: POST uri: https://api.openai.com/v1/chat/completions response: body: - string: 'data: {"id":"chatcmpl-AEGTFZ2zBPeLJlZ1EA10ZEDA12VfO","object":"chat.completion.chunk","created":1727963269,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_74ba47b4ac","choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"id":"call_Hb0tFTds0zHfckULpnZ4t8XL","type":"function","function":{"name":"get_delivery_date","arguments":""}}],"refusal":null},"logprobs":null,"finish_reason":null}]} + string: |+ + data: {"id":"chatcmpl-ASfaFeOMsHtr0F6UH3Q1faiZxSeMX","object":"chat.completion.chunk","created":1731396395,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_0ba0d124f1","choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"id":"call_RlWXV8zAJhzxsh6JqMHY0HbV","type":"function","function":{"name":"get_delivery_date","arguments":""}}],"refusal":null},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-ASfaFeOMsHtr0F6UH3Q1faiZxSeMX","object":"chat.completion.chunk","created":1731396395,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_0ba0d124f1","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"{\""}}]},"logprobs":null,"finish_reason":null}]} - data: {"id":"chatcmpl-AEGTFZ2zBPeLJlZ1EA10ZEDA12VfO","object":"chat.completion.chunk","created":1727963269,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_74ba47b4ac","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"{\""}}]},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-ASfaFeOMsHtr0F6UH3Q1faiZxSeMX","object":"chat.completion.chunk","created":1731396395,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_0ba0d124f1","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"order"}}]},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-ASfaFeOMsHtr0F6UH3Q1faiZxSeMX","object":"chat.completion.chunk","created":1731396395,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_0ba0d124f1","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"_id"}}]},"logprobs":null,"finish_reason":null}]} - data: {"id":"chatcmpl-AEGTFZ2zBPeLJlZ1EA10ZEDA12VfO","object":"chat.completion.chunk","created":1727963269,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_74ba47b4ac","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"order"}}]},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-ASfaFeOMsHtr0F6UH3Q1faiZxSeMX","object":"chat.completion.chunk","created":1731396395,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_0ba0d124f1","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\":\""}}]},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-ASfaFeOMsHtr0F6UH3Q1faiZxSeMX","object":"chat.completion.chunk","created":1731396395,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_0ba0d124f1","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"order"}}]},"logprobs":null,"finish_reason":null}]} - data: {"id":"chatcmpl-AEGTFZ2zBPeLJlZ1EA10ZEDA12VfO","object":"chat.completion.chunk","created":1727963269,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_74ba47b4ac","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"_id"}}]},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-ASfaFeOMsHtr0F6UH3Q1faiZxSeMX","object":"chat.completion.chunk","created":1731396395,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_0ba0d124f1","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"_"}}]},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-ASfaFeOMsHtr0F6UH3Q1faiZxSeMX","object":"chat.completion.chunk","created":1731396395,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_0ba0d124f1","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"123"}}]},"logprobs":null,"finish_reason":null}]} - data: {"id":"chatcmpl-AEGTFZ2zBPeLJlZ1EA10ZEDA12VfO","object":"chat.completion.chunk","created":1727963269,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_74ba47b4ac","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\":\""}}]},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-ASfaFeOMsHtr0F6UH3Q1faiZxSeMX","object":"chat.completion.chunk","created":1731396395,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_0ba0d124f1","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"45"}}]},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-ASfaFeOMsHtr0F6UH3Q1faiZxSeMX","object":"chat.completion.chunk","created":1731396395,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_0ba0d124f1","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\"}"}}]},"logprobs":null,"finish_reason":null}]} - data: {"id":"chatcmpl-AEGTFZ2zBPeLJlZ1EA10ZEDA12VfO","object":"chat.completion.chunk","created":1727963269,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_74ba47b4ac","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"order"}}]},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-AEGTFZ2zBPeLJlZ1EA10ZEDA12VfO","object":"chat.completion.chunk","created":1727963269,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_74ba47b4ac","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"_"}}]},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-AEGTFZ2zBPeLJlZ1EA10ZEDA12VfO","object":"chat.completion.chunk","created":1727963269,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_74ba47b4ac","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"123"}}]},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-AEGTFZ2zBPeLJlZ1EA10ZEDA12VfO","object":"chat.completion.chunk","created":1727963269,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_74ba47b4ac","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"45"}}]},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-AEGTFZ2zBPeLJlZ1EA10ZEDA12VfO","object":"chat.completion.chunk","created":1727963269,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_74ba47b4ac","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\"}"}}]},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-AEGTFZ2zBPeLJlZ1EA10ZEDA12VfO","object":"chat.completion.chunk","created":1727963269,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_74ba47b4ac","choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"tool_calls"}]} - + data: {"id":"chatcmpl-ASfaFeOMsHtr0F6UH3Q1faiZxSeMX","object":"chat.completion.chunk","created":1731396395,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_0ba0d124f1","choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"tool_calls"}]} data: [DONE] - - ' headers: CF-Cache-Status: - DYNAMIC CF-RAY: - - 8ccd62e2b84583a8-MXP + - 8e14cb707e5f81e4-SIN Connection: - keep-alive Content-Type: - text/event-stream; charset=utf-8 Date: - - Thu, 03 Oct 2024 13:47:50 GMT + - Tue, 12 Nov 2024 07:26:36 GMT Server: - cloudflare Set-Cookie: test_set_cookie @@ -105,9 +127,11 @@ interactions: - nosniff access-control-expose-headers: - X-Request-ID + alt-svc: + - h3=":443"; ma=86400 openai-organization: test_openai_org_key openai-processing-ms: - - '583' + - '328' openai-version: - '2020-10-01' strict-transport-security: @@ -117,15 +141,15 @@ interactions: x-ratelimit-limit-tokens: - '200000' x-ratelimit-remaining-requests: - - '9997' + - '9990' x-ratelimit-remaining-tokens: - '199921' x-ratelimit-reset-requests: - - 20.598s + - 1m25.566s x-ratelimit-reset-tokens: - 23ms x-request-id: - - req_040696455e228f8e53c3316df23e2163 + - req_a4c989b5de9332354762cf40ddf1c95a status: code: 200 message: OK diff --git a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_stream_with_tools_and_capture_message_content_log_events[azure_provider_chat_completions].yaml b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_stream_with_tools_and_capture_message_content_log_events[azure_provider_chat_completions].yaml index a73b813..4319728 100644 --- a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_stream_with_tools_and_capture_message_content_log_events[azure_provider_chat_completions].yaml +++ b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_stream_with_tools_and_capture_message_content_log_events[azure_provider_chat_completions].yaml @@ -1,16 +1,50 @@ interactions: - request: - body: '{"messages": [{"role": "system", "content": "You are a helpful customer - support assistant. Use the supplied tools to assist the user."}, {"role": "user", - "content": "Hi, can you tell me the delivery date for my order?"}, {"role": - "assistant", "content": "Hi there! I can help with that. Can you please provide - your order ID?"}, {"role": "user", "content": "i think it is order_12345"}], - "model": "gpt-4o-mini", "stream": true, "tools": [{"type": "function", "function": - {"name": "get_delivery_date", "description": "Get the delivery date for a customer''s - order. Call this whenever you need to know the delivery date, for example when - a customer asks ''Where is my package''", "parameters": {"type": "object", "properties": - {"order_id": {"type": "string", "description": "The customer''s order ID."}}, - "required": ["order_id"], "additionalProperties": false}}}]}' + body: |- + { + "messages": [ + { + "role": "system", + "content": "You are a helpful customer support assistant. Use the supplied tools to assist the user." + }, + { + "role": "user", + "content": "Hi, can you tell me the delivery date for my order?" + }, + { + "role": "assistant", + "content": "Hi there! I can help with that. Can you please provide your order ID?" + }, + { + "role": "user", + "content": "i think it is order_12345" + } + ], + "model": "unused", + "stream": true, + "tools": [ + { + "type": "function", + "function": { + "name": "get_delivery_date", + "description": "Get the delivery date for a customer's order. Call this whenever you need to know the delivery date, for example when a customer asks 'Where is my package'", + "parameters": { + "type": "object", + "properties": { + "order_id": { + "type": "string", + "description": "The customer's order ID." + } + }, + "required": [ + "order_id" + ], + "additionalProperties": false + } + } + } + ] + } headers: accept: - application/json @@ -23,101 +57,103 @@ interactions: connection: - keep-alive content-length: - - '858' + - '853' content-type: - application/json host: - test.openai.azure.com user-agent: - - AzureOpenAI/Python 1.34.0 + - AzureOpenAI/Python 1.54.3 x-stainless-arch: - - x64 + - arm64 x-stainless-async: - 'false' x-stainless-lang: - python x-stainless-os: - - Linux + - MacOS x-stainless-package-version: - - 1.34.0 + - 1.54.3 + x-stainless-retry-count: + - '0' x-stainless-runtime: - CPython x-stainless-runtime-version: - - 3.10.12 + - 3.12.6 method: POST - uri: https://test.openai.azure.com/openai/deployments/test-azure-deployment/chat/completions?api-version=2023-03-15-preview + uri: https://test.openai.azure.com/openai/deployments/test-azure-deployment/chat/completions?api-version=2024-08-01-preview response: body: - string: 'data: {"choices":[{"delta":{"role":"assistant","tool_calls":[{"function":{"arguments":"","name":"get_delivery_date"},"id":"call_XNHRbrreMnt9ReHJfNH30mom","index":0,"type":"function"}]},"finish_reason":null,"index":0}],"created":1728909019,"id":"chatcmpl-AIEVHRdUM6ip3Uolr8CcrlGhchugq","model":"gpt-4o-mini","object":"chat.completion.chunk","system_fingerprint":"fp_878413d04d"} + string: |+ + data: {"choices":[],"created":0,"id":"","model":"","object":"","prompt_filter_results":[{"prompt_index":0,"content_filter_results":{"hate":{"filtered":false,"severity":"safe"},"self_harm":{"filtered":false,"severity":"safe"},"sexual":{"filtered":false,"severity":"safe"},"violence":{"filtered":false,"severity":"safe"}}}]} + data: {"choices":[{"content_filter_results":{},"delta":{"content":null,"role":"assistant","tool_calls":[{"function":{"arguments":"","name":"get_delivery_date"},"id":"call_U0QYBadhpy4pBO6jYPm09KvZ","index":0,"type":"function"}]},"finish_reason":null,"index":0,"logprobs":null}],"created":1731466216,"id":"chatcmpl-ASxkOzfrRK9uiquPJ2AH90npzayEy","model":"gpt-4-32k","object":"chat.completion.chunk","system_fingerprint":null} - data: {"choices":[{"delta":{"tool_calls":[{"function":{"arguments":"{\""},"index":0}]},"finish_reason":null,"index":0}],"created":1728909019,"id":"chatcmpl-AIEVHRdUM6ip3Uolr8CcrlGhchugq","model":"gpt-4o-mini","object":"chat.completion.chunk","system_fingerprint":"fp_878413d04d"} + data: {"choices":[{"content_filter_results":{},"delta":{"tool_calls":[{"function":{"arguments":"{\n"},"index":0}]},"finish_reason":null,"index":0,"logprobs":null}],"created":1731466216,"id":"chatcmpl-ASxkOzfrRK9uiquPJ2AH90npzayEy","model":"gpt-4-32k","object":"chat.completion.chunk","system_fingerprint":null} + data: {"choices":[{"content_filter_results":{},"delta":{"tool_calls":[{"function":{"arguments":" "},"index":0}]},"finish_reason":null,"index":0,"logprobs":null}],"created":1731466216,"id":"chatcmpl-ASxkOzfrRK9uiquPJ2AH90npzayEy","model":"gpt-4-32k","object":"chat.completion.chunk","system_fingerprint":null} - data: {"choices":[{"delta":{"tool_calls":[{"function":{"arguments":"order"},"index":0}]},"finish_reason":null,"index":0}],"created":1728909019,"id":"chatcmpl-AIEVHRdUM6ip3Uolr8CcrlGhchugq","model":"gpt-4o-mini","object":"chat.completion.chunk","system_fingerprint":"fp_878413d04d"} + data: {"choices":[{"content_filter_results":{},"delta":{"tool_calls":[{"function":{"arguments":" \""},"index":0}]},"finish_reason":null,"index":0,"logprobs":null}],"created":1731466216,"id":"chatcmpl-ASxkOzfrRK9uiquPJ2AH90npzayEy","model":"gpt-4-32k","object":"chat.completion.chunk","system_fingerprint":null} + data: {"choices":[{"content_filter_results":{},"delta":{"tool_calls":[{"function":{"arguments":"order"},"index":0}]},"finish_reason":null,"index":0,"logprobs":null}],"created":1731466216,"id":"chatcmpl-ASxkOzfrRK9uiquPJ2AH90npzayEy","model":"gpt-4-32k","object":"chat.completion.chunk","system_fingerprint":null} - data: {"choices":[{"delta":{"tool_calls":[{"function":{"arguments":"_id"},"index":0}]},"finish_reason":null,"index":0}],"created":1728909019,"id":"chatcmpl-AIEVHRdUM6ip3Uolr8CcrlGhchugq","model":"gpt-4o-mini","object":"chat.completion.chunk","system_fingerprint":"fp_878413d04d"} + data: {"choices":[{"content_filter_results":{},"delta":{"tool_calls":[{"function":{"arguments":"_id"},"index":0}]},"finish_reason":null,"index":0,"logprobs":null}],"created":1731466216,"id":"chatcmpl-ASxkOzfrRK9uiquPJ2AH90npzayEy","model":"gpt-4-32k","object":"chat.completion.chunk","system_fingerprint":null} + data: {"choices":[{"content_filter_results":{},"delta":{"tool_calls":[{"function":{"arguments":"\":"},"index":0}]},"finish_reason":null,"index":0,"logprobs":null}],"created":1731466216,"id":"chatcmpl-ASxkOzfrRK9uiquPJ2AH90npzayEy","model":"gpt-4-32k","object":"chat.completion.chunk","system_fingerprint":null} - data: {"choices":[{"delta":{"tool_calls":[{"function":{"arguments":"\":\""},"index":0}]},"finish_reason":null,"index":0}],"created":1728909019,"id":"chatcmpl-AIEVHRdUM6ip3Uolr8CcrlGhchugq","model":"gpt-4o-mini","object":"chat.completion.chunk","system_fingerprint":"fp_878413d04d"} + data: {"choices":[{"content_filter_results":{},"delta":{"tool_calls":[{"function":{"arguments":" \""},"index":0}]},"finish_reason":null,"index":0,"logprobs":null}],"created":1731466216,"id":"chatcmpl-ASxkOzfrRK9uiquPJ2AH90npzayEy","model":"gpt-4-32k","object":"chat.completion.chunk","system_fingerprint":null} + data: {"choices":[{"content_filter_results":{},"delta":{"tool_calls":[{"function":{"arguments":"order"},"index":0}]},"finish_reason":null,"index":0,"logprobs":null}],"created":1731466216,"id":"chatcmpl-ASxkOzfrRK9uiquPJ2AH90npzayEy","model":"gpt-4-32k","object":"chat.completion.chunk","system_fingerprint":null} - data: {"choices":[{"delta":{"tool_calls":[{"function":{"arguments":"order"},"index":0}]},"finish_reason":null,"index":0}],"created":1728909019,"id":"chatcmpl-AIEVHRdUM6ip3Uolr8CcrlGhchugq","model":"gpt-4o-mini","object":"chat.completion.chunk","system_fingerprint":"fp_878413d04d"} + data: {"choices":[{"content_filter_results":{},"delta":{"tool_calls":[{"function":{"arguments":"_"},"index":0}]},"finish_reason":null,"index":0,"logprobs":null}],"created":1731466216,"id":"chatcmpl-ASxkOzfrRK9uiquPJ2AH90npzayEy","model":"gpt-4-32k","object":"chat.completion.chunk","system_fingerprint":null} + data: {"choices":[{"content_filter_results":{},"delta":{"tool_calls":[{"function":{"arguments":"123"},"index":0}]},"finish_reason":null,"index":0,"logprobs":null}],"created":1731466216,"id":"chatcmpl-ASxkOzfrRK9uiquPJ2AH90npzayEy","model":"gpt-4-32k","object":"chat.completion.chunk","system_fingerprint":null} - data: {"choices":[{"delta":{"tool_calls":[{"function":{"arguments":"_"},"index":0}]},"finish_reason":null,"index":0}],"created":1728909019,"id":"chatcmpl-AIEVHRdUM6ip3Uolr8CcrlGhchugq","model":"gpt-4o-mini","object":"chat.completion.chunk","system_fingerprint":"fp_878413d04d"} + data: {"choices":[{"content_filter_results":{},"delta":{"tool_calls":[{"function":{"arguments":"45"},"index":0}]},"finish_reason":null,"index":0,"logprobs":null}],"created":1731466216,"id":"chatcmpl-ASxkOzfrRK9uiquPJ2AH90npzayEy","model":"gpt-4-32k","object":"chat.completion.chunk","system_fingerprint":null} + data: {"choices":[{"content_filter_results":{},"delta":{"tool_calls":[{"function":{"arguments":"\"\n"},"index":0}]},"finish_reason":null,"index":0,"logprobs":null}],"created":1731466216,"id":"chatcmpl-ASxkOzfrRK9uiquPJ2AH90npzayEy","model":"gpt-4-32k","object":"chat.completion.chunk","system_fingerprint":null} - data: {"choices":[{"delta":{"tool_calls":[{"function":{"arguments":"123"},"index":0}]},"finish_reason":null,"index":0}],"created":1728909019,"id":"chatcmpl-AIEVHRdUM6ip3Uolr8CcrlGhchugq","model":"gpt-4o-mini","object":"chat.completion.chunk","system_fingerprint":"fp_878413d04d"} - - - data: {"choices":[{"delta":{"tool_calls":[{"function":{"arguments":"45"},"index":0}]},"finish_reason":null,"index":0}],"created":1728909019,"id":"chatcmpl-AIEVHRdUM6ip3Uolr8CcrlGhchugq","model":"gpt-4o-mini","object":"chat.completion.chunk","system_fingerprint":"fp_878413d04d"} - - - data: {"choices":[{"delta":{"tool_calls":[{"function":{"arguments":"\"}"},"index":0}]},"finish_reason":null,"index":0}],"created":1728909019,"id":"chatcmpl-AIEVHRdUM6ip3Uolr8CcrlGhchugq","model":"gpt-4o-mini","object":"chat.completion.chunk","system_fingerprint":"fp_878413d04d"} - - - data: {"choices":[{"delta":{},"finish_reason":"tool_calls","index":0}],"created":1728909019,"id":"chatcmpl-AIEVHRdUM6ip3Uolr8CcrlGhchugq","model":"gpt-4o-mini","object":"chat.completion.chunk","system_fingerprint":"fp_878413d04d"} + data: {"choices":[{"content_filter_results":{},"delta":{"tool_calls":[{"function":{"arguments":"}"},"index":0}]},"finish_reason":null,"index":0,"logprobs":null}],"created":1731466216,"id":"chatcmpl-ASxkOzfrRK9uiquPJ2AH90npzayEy","model":"gpt-4-32k","object":"chat.completion.chunk","system_fingerprint":null} + data: {"choices":[{"content_filter_results":{},"delta":{},"finish_reason":"tool_calls","index":0,"logprobs":null}],"created":1731466216,"id":"chatcmpl-ASxkOzfrRK9uiquPJ2AH90npzayEy","model":"gpt-4-32k","object":"chat.completion.chunk","system_fingerprint":null} data: [DONE] - - ' headers: + Cache-Control: + - no-cache, must-revalidate Content-Type: - - text/event-stream; charset=utf-8 + - text/event-stream Date: - - Mon, 14 Oct 2024 12:30:19 GMT + - Wed, 13 Nov 2024 02:50:16 GMT Set-Cookie: test_set_cookie Strict-Transport-Security: - max-age=31536000; includeSubDomains; preload Transfer-Encoding: - chunked + access-control-allow-origin: + - '*' apim-request-id: - - 1bb18f17-07a0-4c26-a747-724303e11ebf + - da236390-adf8-4a46-951f-6d22048b64fa azureml-model-session: - - d017-20240921115920 - openai-organization: test_openai_org_key + - d156-20241010120317 + openai-organization: test_openai_org_id x-accel-buffering: - 'no' x-content-type-options: - nosniff - x-envoy-upstream-service-time: - - '123' x-ms-client-request-id: - - 1bb18f17-07a0-4c26-a747-724303e11ebf + - da236390-adf8-4a46-951f-6d22048b64fa x-ms-rai-invoked: - 'true' x-ms-region: - - East US + - Switzerland North x-ratelimit-remaining-requests: - - '907' + - '72' x-ratelimit-remaining-tokens: - - '88941' + - '79708' x-request-id: - - 5a07aea0-8492-4144-8c21-5c9b81d82ea1 + - 02e4f6fa-5163-4157-9a96-40b2c353e1c4 status: code: 200 message: OK diff --git a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_stream_with_tools_and_capture_message_content_log_events[ollama_provider_chat_completions].yaml b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_stream_with_tools_and_capture_message_content_log_events[ollama_provider_chat_completions].yaml index 71afce8..35fc346 100644 --- a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_stream_with_tools_and_capture_message_content_log_events[ollama_provider_chat_completions].yaml +++ b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_stream_with_tools_and_capture_message_content_log_events[ollama_provider_chat_completions].yaml @@ -1,16 +1,50 @@ interactions: - request: - body: '{"messages": [{"role": "system", "content": "You are a helpful customer - support assistant. Use the supplied tools to assist the user."}, {"role": "user", - "content": "Hi, can you tell me the delivery date for my order?"}, {"role": - "assistant", "content": "Hi there! I can help with that. Can you please provide - your order ID?"}, {"role": "user", "content": "i think it is order_12345"}], - "model": "qwen2.5:0.5b", "stream": true, "tools": [{"type": "function", "function": - {"name": "get_delivery_date", "description": "Get the delivery date for a customer''s - order. Call this whenever you need to know the delivery date, for example when - a customer asks ''Where is my package''", "parameters": {"type": "object", "properties": - {"order_id": {"type": "string", "description": "The customer''s order ID."}}, - "required": ["order_id"], "additionalProperties": false}}}]}' + body: |- + { + "messages": [ + { + "role": "system", + "content": "You are a helpful customer support assistant. Use the supplied tools to assist the user." + }, + { + "role": "user", + "content": "Hi, can you tell me the delivery date for my order?" + }, + { + "role": "assistant", + "content": "Hi there! I can help with that. Can you please provide your order ID?" + }, + { + "role": "user", + "content": "i think it is order_12345" + } + ], + "model": "qwen2.5:0.5b", + "stream": true, + "tools": [ + { + "type": "function", + "function": { + "name": "get_delivery_date", + "description": "Get the delivery date for a customer's order. Call this whenever you need to know the delivery date, for example when a customer asks 'Where is my package'", + "parameters": { + "type": "object", + "properties": { + "order_id": { + "type": "string", + "description": "The customer's order ID." + } + }, + "required": [ + "order_id" + ], + "additionalProperties": false + } + } + } + ] + } headers: accept: - application/json @@ -27,122 +61,91 @@ interactions: host: - localhost:11434 user-agent: - - OpenAI/Python 1.34.0 + - OpenAI/Python 1.50.2 x-stainless-arch: - - x64 + - arm64 x-stainless-async: - 'false' x-stainless-lang: - python x-stainless-os: - - Linux + - MacOS x-stainless-package-version: - - 1.34.0 + - 1.50.2 + x-stainless-retry-count: + - '0' x-stainless-runtime: - CPython x-stainless-runtime-version: - - 3.10.12 + - 3.12.6 method: POST uri: http://localhost:11434/v1/chat/completions response: body: - string: 'data: {"id":"chatcmpl-436","object":"chat.completion.chunk","created":1728909020,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"\u003ctool_call\u003e"},"finish_reason":null}]} + string: |+ + data: {"id":"chatcmpl-749","object":"chat.completion.chunk","created":1731311783,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"\u003ctool_call\u003e"},"finish_reason":null}]} + data: {"id":"chatcmpl-749","object":"chat.completion.chunk","created":1731311783,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"\n"},"finish_reason":null}]} - data: {"id":"chatcmpl-436","object":"chat.completion.chunk","created":1728909020,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"\n"},"finish_reason":null}]} + data: {"id":"chatcmpl-749","object":"chat.completion.chunk","created":1731311783,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"{\""},"finish_reason":null}]} + data: {"id":"chatcmpl-749","object":"chat.completion.chunk","created":1731311783,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"name"},"finish_reason":null}]} - data: {"id":"chatcmpl-436","object":"chat.completion.chunk","created":1728909020,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"{\""},"finish_reason":null}]} + data: {"id":"chatcmpl-749","object":"chat.completion.chunk","created":1731311783,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"\":"},"finish_reason":null}]} + data: {"id":"chatcmpl-749","object":"chat.completion.chunk","created":1731311783,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" \""},"finish_reason":null}]} - data: {"id":"chatcmpl-436","object":"chat.completion.chunk","created":1728909020,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"name"},"finish_reason":null}]} + data: {"id":"chatcmpl-749","object":"chat.completion.chunk","created":1731311783,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"get"},"finish_reason":null}]} + data: {"id":"chatcmpl-749","object":"chat.completion.chunk","created":1731311783,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"_delivery"},"finish_reason":null}]} - data: {"id":"chatcmpl-436","object":"chat.completion.chunk","created":1728909020,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"\":"},"finish_reason":null}]} + data: {"id":"chatcmpl-749","object":"chat.completion.chunk","created":1731311783,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"_date"},"finish_reason":null}]} + data: {"id":"chatcmpl-749","object":"chat.completion.chunk","created":1731311783,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"\","},"finish_reason":null}]} - data: {"id":"chatcmpl-436","object":"chat.completion.chunk","created":1728909020,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - \""},"finish_reason":null}]} + data: {"id":"chatcmpl-749","object":"chat.completion.chunk","created":1731311783,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" \""},"finish_reason":null}]} + data: {"id":"chatcmpl-749","object":"chat.completion.chunk","created":1731311783,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"arguments"},"finish_reason":null}]} - data: {"id":"chatcmpl-436","object":"chat.completion.chunk","created":1728909020,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"get"},"finish_reason":null}]} + data: {"id":"chatcmpl-749","object":"chat.completion.chunk","created":1731311783,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"\":"},"finish_reason":null}]} + data: {"id":"chatcmpl-749","object":"chat.completion.chunk","created":1731311783,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" {\""},"finish_reason":null}]} - data: {"id":"chatcmpl-436","object":"chat.completion.chunk","created":1728909020,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"_delivery"},"finish_reason":null}]} + data: {"id":"chatcmpl-749","object":"chat.completion.chunk","created":1731311783,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"order"},"finish_reason":null}]} + data: {"id":"chatcmpl-749","object":"chat.completion.chunk","created":1731311783,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"_id"},"finish_reason":null}]} - data: {"id":"chatcmpl-436","object":"chat.completion.chunk","created":1728909020,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"_date"},"finish_reason":null}]} + data: {"id":"chatcmpl-749","object":"chat.completion.chunk","created":1731311783,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"\":"},"finish_reason":null}]} + data: {"id":"chatcmpl-749","object":"chat.completion.chunk","created":1731311783,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" \""},"finish_reason":null}]} - data: {"id":"chatcmpl-436","object":"chat.completion.chunk","created":1728909020,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"\","},"finish_reason":null}]} + data: {"id":"chatcmpl-749","object":"chat.completion.chunk","created":1731311783,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"order"},"finish_reason":null}]} + data: {"id":"chatcmpl-749","object":"chat.completion.chunk","created":1731311783,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"_"},"finish_reason":null}]} - data: {"id":"chatcmpl-436","object":"chat.completion.chunk","created":1728909020,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - \""},"finish_reason":null}]} + data: {"id":"chatcmpl-749","object":"chat.completion.chunk","created":1731311783,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"1"},"finish_reason":null}]} + data: {"id":"chatcmpl-749","object":"chat.completion.chunk","created":1731311783,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"2"},"finish_reason":null}]} - data: {"id":"chatcmpl-436","object":"chat.completion.chunk","created":1728909020,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"arguments"},"finish_reason":null}]} + data: {"id":"chatcmpl-749","object":"chat.completion.chunk","created":1731311783,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"3"},"finish_reason":null}]} + data: {"id":"chatcmpl-749","object":"chat.completion.chunk","created":1731311783,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"4"},"finish_reason":null}]} - data: {"id":"chatcmpl-436","object":"chat.completion.chunk","created":1728909020,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"\":"},"finish_reason":null}]} + data: {"id":"chatcmpl-749","object":"chat.completion.chunk","created":1731311783,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"5"},"finish_reason":null}]} + data: {"id":"chatcmpl-749","object":"chat.completion.chunk","created":1731311783,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"\"}}\n"},"finish_reason":null}]} - data: {"id":"chatcmpl-436","object":"chat.completion.chunk","created":1728909020,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - {\""},"finish_reason":null}]} - - - data: {"id":"chatcmpl-436","object":"chat.completion.chunk","created":1728909020,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"order"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-436","object":"chat.completion.chunk","created":1728909020,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"_id"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-436","object":"chat.completion.chunk","created":1728909020,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"\":"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-436","object":"chat.completion.chunk","created":1728909020,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":" - \""},"finish_reason":null}]} - - - data: {"id":"chatcmpl-436","object":"chat.completion.chunk","created":1728909020,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"order"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-436","object":"chat.completion.chunk","created":1728909020,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"_"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-436","object":"chat.completion.chunk","created":1728909020,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"1"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-436","object":"chat.completion.chunk","created":1728909020,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"2"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-436","object":"chat.completion.chunk","created":1728909020,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"3"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-436","object":"chat.completion.chunk","created":1728909020,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"4"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-436","object":"chat.completion.chunk","created":1728909020,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"5"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-436","object":"chat.completion.chunk","created":1728909020,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"\"}}\n"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-436","object":"chat.completion.chunk","created":1728909020,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"\u003c/tool_call\u003e"},"finish_reason":null}]} - - - data: {"id":"chatcmpl-436","object":"chat.completion.chunk","created":1728909020,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":"stop"}]} + data: {"id":"chatcmpl-749","object":"chat.completion.chunk","created":1731311783,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"\u003c/tool_call\u003e"},"finish_reason":null}]} + data: {"id":"chatcmpl-749","object":"chat.completion.chunk","created":1731311783,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":"stop"}]} data: [DONE] - - ' headers: Content-Type: - text/event-stream Date: - - Mon, 14 Oct 2024 12:30:20 GMT + - Mon, 11 Nov 2024 07:56:23 GMT Set-Cookie: test_set_cookie Transfer-Encoding: - chunked diff --git a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_stream_with_tools_and_capture_message_content_log_events[openai_provider_chat_completions].yaml b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_stream_with_tools_and_capture_message_content_log_events[openai_provider_chat_completions].yaml index cbc21b0..4b54eb7 100644 --- a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_stream_with_tools_and_capture_message_content_log_events[openai_provider_chat_completions].yaml +++ b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_stream_with_tools_and_capture_message_content_log_events[openai_provider_chat_completions].yaml @@ -1,16 +1,50 @@ interactions: - request: - body: '{"messages": [{"role": "system", "content": "You are a helpful customer - support assistant. Use the supplied tools to assist the user."}, {"role": "user", - "content": "Hi, can you tell me the delivery date for my order?"}, {"role": - "assistant", "content": "Hi there! I can help with that. Can you please provide - your order ID?"}, {"role": "user", "content": "i think it is order_12345"}], - "model": "gpt-4o-mini", "stream": true, "tools": [{"type": "function", "function": - {"name": "get_delivery_date", "description": "Get the delivery date for a customer''s - order. Call this whenever you need to know the delivery date, for example when - a customer asks ''Where is my package''", "parameters": {"type": "object", "properties": - {"order_id": {"type": "string", "description": "The customer''s order ID."}}, - "required": ["order_id"], "additionalProperties": false}}}]}' + body: |- + { + "messages": [ + { + "role": "system", + "content": "You are a helpful customer support assistant. Use the supplied tools to assist the user." + }, + { + "role": "user", + "content": "Hi, can you tell me the delivery date for my order?" + }, + { + "role": "assistant", + "content": "Hi there! I can help with that. Can you please provide your order ID?" + }, + { + "role": "user", + "content": "i think it is order_12345" + } + ], + "model": "gpt-4o-mini", + "stream": true, + "tools": [ + { + "type": "function", + "function": { + "name": "get_delivery_date", + "description": "Get the delivery date for a customer's order. Call this whenever you need to know the delivery date, for example when a customer asks 'Where is my package'", + "parameters": { + "type": "object", + "properties": { + "order_id": { + "type": "string", + "description": "The customer's order ID." + } + }, + "required": [ + "order_id" + ], + "additionalProperties": false + } + } + } + ] + } headers: accept: - application/json @@ -27,73 +61,63 @@ interactions: host: - api.openai.com user-agent: - - OpenAI/Python 1.34.0 + - OpenAI/Python 1.54.3 x-stainless-arch: - - x64 + - arm64 x-stainless-async: - 'false' x-stainless-lang: - python x-stainless-os: - - Linux + - MacOS x-stainless-package-version: - - 1.34.0 + - 1.54.3 + x-stainless-retry-count: + - '0' x-stainless-runtime: - CPython x-stainless-runtime-version: - - 3.10.12 + - 3.12.6 method: POST uri: https://api.openai.com/v1/chat/completions response: body: - string: 'data: {"id":"chatcmpl-AIEVFr8IGqjRC2wxrGU3tcRjNbGKf","object":"chat.completion.chunk","created":1728909017,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_8552ec53e1","choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"id":"call_BQ6tpzuq28epoO6jzUNSdG6r","type":"function","function":{"name":"get_delivery_date","arguments":""}}],"refusal":null},"logprobs":null,"finish_reason":null}]} + string: |+ + data: {"id":"chatcmpl-ASfaGWIziiqvP4PoufIFi3K2p2caY","object":"chat.completion.chunk","created":1731396396,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_0ba0d124f1","choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"id":"call_oEbEusT5nkkAiGgypUSDwK7k","type":"function","function":{"name":"get_delivery_date","arguments":""}}],"refusal":null},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-ASfaGWIziiqvP4PoufIFi3K2p2caY","object":"chat.completion.chunk","created":1731396396,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_0ba0d124f1","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"{\""}}]},"logprobs":null,"finish_reason":null}]} - data: {"id":"chatcmpl-AIEVFr8IGqjRC2wxrGU3tcRjNbGKf","object":"chat.completion.chunk","created":1728909017,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_8552ec53e1","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"{\""}}]},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-ASfaGWIziiqvP4PoufIFi3K2p2caY","object":"chat.completion.chunk","created":1731396396,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_0ba0d124f1","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"order"}}]},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-ASfaGWIziiqvP4PoufIFi3K2p2caY","object":"chat.completion.chunk","created":1731396396,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_0ba0d124f1","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"_id"}}]},"logprobs":null,"finish_reason":null}]} - data: {"id":"chatcmpl-AIEVFr8IGqjRC2wxrGU3tcRjNbGKf","object":"chat.completion.chunk","created":1728909017,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_8552ec53e1","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"order"}}]},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-ASfaGWIziiqvP4PoufIFi3K2p2caY","object":"chat.completion.chunk","created":1731396396,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_0ba0d124f1","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\":\""}}]},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-ASfaGWIziiqvP4PoufIFi3K2p2caY","object":"chat.completion.chunk","created":1731396396,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_0ba0d124f1","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"order"}}]},"logprobs":null,"finish_reason":null}]} - data: {"id":"chatcmpl-AIEVFr8IGqjRC2wxrGU3tcRjNbGKf","object":"chat.completion.chunk","created":1728909017,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_8552ec53e1","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"_id"}}]},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-ASfaGWIziiqvP4PoufIFi3K2p2caY","object":"chat.completion.chunk","created":1731396396,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_0ba0d124f1","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"_"}}]},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-ASfaGWIziiqvP4PoufIFi3K2p2caY","object":"chat.completion.chunk","created":1731396396,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_0ba0d124f1","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"123"}}]},"logprobs":null,"finish_reason":null}]} - data: {"id":"chatcmpl-AIEVFr8IGqjRC2wxrGU3tcRjNbGKf","object":"chat.completion.chunk","created":1728909017,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_8552ec53e1","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\":\""}}]},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-ASfaGWIziiqvP4PoufIFi3K2p2caY","object":"chat.completion.chunk","created":1731396396,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_0ba0d124f1","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"45"}}]},"logprobs":null,"finish_reason":null}]} + data: {"id":"chatcmpl-ASfaGWIziiqvP4PoufIFi3K2p2caY","object":"chat.completion.chunk","created":1731396396,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_0ba0d124f1","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\"}"}}]},"logprobs":null,"finish_reason":null}]} - data: {"id":"chatcmpl-AIEVFr8IGqjRC2wxrGU3tcRjNbGKf","object":"chat.completion.chunk","created":1728909017,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_8552ec53e1","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"order"}}]},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-AIEVFr8IGqjRC2wxrGU3tcRjNbGKf","object":"chat.completion.chunk","created":1728909017,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_8552ec53e1","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"_"}}]},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-AIEVFr8IGqjRC2wxrGU3tcRjNbGKf","object":"chat.completion.chunk","created":1728909017,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_8552ec53e1","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"123"}}]},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-AIEVFr8IGqjRC2wxrGU3tcRjNbGKf","object":"chat.completion.chunk","created":1728909017,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_8552ec53e1","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"45"}}]},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-AIEVFr8IGqjRC2wxrGU3tcRjNbGKf","object":"chat.completion.chunk","created":1728909017,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_8552ec53e1","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\"}"}}]},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-AIEVFr8IGqjRC2wxrGU3tcRjNbGKf","object":"chat.completion.chunk","created":1728909017,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_8552ec53e1","choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"tool_calls"}]} - + data: {"id":"chatcmpl-ASfaGWIziiqvP4PoufIFi3K2p2caY","object":"chat.completion.chunk","created":1731396396,"model":"gpt-4o-mini-2024-07-18","system_fingerprint":"fp_0ba0d124f1","choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"tool_calls"}]} data: [DONE] - - ' headers: CF-Cache-Status: - DYNAMIC CF-RAY: - - 8d27946fec104c45-MXP + - 8e14cb7608622eb6-SIN Connection: - keep-alive Content-Type: - text/event-stream; charset=utf-8 Date: - - Mon, 14 Oct 2024 12:30:18 GMT + - Tue, 12 Nov 2024 07:26:37 GMT Server: - cloudflare Set-Cookie: test_set_cookie @@ -107,7 +131,7 @@ interactions: - h3=":443"; ma=86400 openai-organization: test_openai_org_key openai-processing-ms: - - '621' + - '371' openai-version: - '2020-10-01' strict-transport-security: @@ -117,15 +141,15 @@ interactions: x-ratelimit-limit-tokens: - '200000' x-ratelimit-remaining-requests: - - '9997' + - '9989' x-ratelimit-remaining-tokens: - '199921' x-ratelimit-reset-requests: - - 19.444s + - 1m33.35s x-ratelimit-reset-tokens: - 23ms x-request-id: - - req_a90f027e4c3cd9eb3c0a6732a9b805f1 + - req_e7a1e495bed22af5cdd9cbe68b48e14b status: code: 200 message: OK diff --git a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_tools_with_capture_message_content[azure_provider_chat_completions].yaml b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_tools_with_capture_message_content[azure_provider_chat_completions].yaml index 3d1b1ab..41384c7 100644 --- a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_tools_with_capture_message_content[azure_provider_chat_completions].yaml +++ b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_tools_with_capture_message_content[azure_provider_chat_completions].yaml @@ -1,16 +1,49 @@ interactions: - request: - body: '{"messages": [{"role": "system", "content": "You are a helpful customer - support assistant. Use the supplied tools to assist the user."}, {"role": "user", - "content": "Hi, can you tell me the delivery date for my order?"}, {"role": - "assistant", "content": "Hi there! I can help with that. Can you please provide - your order ID?"}, {"role": "user", "content": "i think it is order_12345"}], - "model": "gpt-4o-mini", "tools": [{"type": "function", "function": {"name": - "get_delivery_date", "description": "Get the delivery date for a customer''s - order. Call this whenever you need to know the delivery date, for example when - a customer asks ''Where is my package''", "parameters": {"type": "object", "properties": - {"order_id": {"type": "string", "description": "The customer''s order ID."}}, - "required": ["order_id"], "additionalProperties": false}}}]}' + body: |- + { + "messages": [ + { + "role": "system", + "content": "You are a helpful customer support assistant. Use the supplied tools to assist the user." + }, + { + "role": "user", + "content": "Hi, can you tell me the delivery date for my order?" + }, + { + "role": "assistant", + "content": "Hi there! I can help with that. Can you please provide your order ID?" + }, + { + "role": "user", + "content": "i think it is order_12345" + } + ], + "model": "unused", + "tools": [ + { + "type": "function", + "function": { + "name": "get_delivery_date", + "description": "Get the delivery date for a customer's order. Call this whenever you need to know the delivery date, for example when a customer asks 'Where is my package'", + "parameters": { + "type": "object", + "properties": { + "order_id": { + "type": "string", + "description": "The customer's order ID." + } + }, + "required": [ + "order_id" + ], + "additionalProperties": false + } + } + } + ] + } headers: accept: - application/json @@ -23,69 +56,126 @@ interactions: connection: - keep-alive content-length: - - '842' + - '837' content-type: - application/json host: - test.openai.azure.com user-agent: - - AzureOpenAI/Python 1.50.0 + - AzureOpenAI/Python 1.54.3 x-stainless-arch: - - x64 + - arm64 x-stainless-async: - 'false' x-stainless-lang: - python x-stainless-os: - - Linux + - MacOS x-stainless-package-version: - - 1.50.0 + - 1.54.3 x-stainless-retry-count: - '0' x-stainless-runtime: - CPython x-stainless-runtime-version: - - 3.10.12 + - 3.12.6 method: POST - uri: https://test.openai.azure.com/openai/deployments/test-azure-deployment/chat/completions?api-version=2023-03-15-preview + uri: https://test.openai.azure.com/openai/deployments/test-azure-deployment/chat/completions?api-version=2024-08-01-preview response: body: - string: '{"choices":[{"finish_reason":"tool_calls","index":0,"message":{"content":null,"role":"assistant","tool_calls":[{"function":{"arguments":"{\"order_id\":\"order_12345\"}","name":"get_delivery_date"},"id":"call_EOPkr9g0pp71Wt6LEteCHWkZ","type":"function"}]}}],"created":1727962826,"id":"chatcmpl-AEGM6niNxWuulOpOMXNelXUZqF443","model":"gpt-4o-mini","object":"chat.completion","system_fingerprint":"fp_878413d04d","usage":{"completion_tokens":19,"prompt_tokens":140,"total_tokens":159}} - - ' + string: |- + { + "choices": [ + { + "content_filter_results": {}, + "finish_reason": "tool_calls", + "index": 0, + "logprobs": null, + "message": { + "content": null, + "role": "assistant", + "tool_calls": [ + { + "function": { + "arguments": "{\n \"order_id\": \"order_12345\"\n}", + "name": "get_delivery_date" + }, + "id": "call_hR2GEOnGJhmLsHHsMgfLuICf", + "type": "function" + } + ] + } + } + ], + "created": 1731466206, + "id": "chatcmpl-ASxkERPeCSyiDvA8jyN5dhIpAYryd", + "model": "gpt-4-32k", + "object": "chat.completion", + "prompt_filter_results": [ + { + "prompt_index": 0, + "content_filter_results": { + "hate": { + "filtered": false, + "severity": "safe" + }, + "self_harm": { + "filtered": false, + "severity": "safe" + }, + "sexual": { + "filtered": false, + "severity": "safe" + }, + "violence": { + "filtered": false, + "severity": "safe" + } + } + } + ], + "system_fingerprint": null, + "usage": { + "completion_tokens": 20, + "prompt_tokens": 144, + "total_tokens": 164 + } + } headers: + Cache-Control: + - no-cache, must-revalidate Content-Length: - - '483' + - '780' Content-Type: - application/json Date: - - Thu, 03 Oct 2024 13:40:25 GMT + - Wed, 13 Nov 2024 02:50:07 GMT Set-Cookie: test_set_cookie Strict-Transport-Security: - max-age=31536000; includeSubDomains; preload + access-control-allow-origin: + - '*' apim-request-id: - - d0b01be6-ec43-4811-ad49-f676561d8c07 + - 9284d670-be85-4101-8dde-1647df437da9 azureml-model-session: - - d008-20240930131836 - openai-organization: test_openai_org_key + - d156-20241010120317 + openai-organization: test_openai_org_id x-accel-buffering: - 'no' x-content-type-options: - nosniff - x-envoy-upstream-service-time: - - '298' x-ms-client-request-id: - - d0b01be6-ec43-4811-ad49-f676561d8c07 + - 9284d670-be85-4101-8dde-1647df437da9 x-ms-rai-invoked: - 'true' x-ms-region: - - East US + - Switzerland North x-ratelimit-remaining-requests: - - '909' + - '75' x-ratelimit-remaining-tokens: - - '90299' + - '79820' x-request-id: - - 7af3afc5-e922-467b-8325-d30aee1515e7 + - c6bbd315-92fa-4d9e-a832-d1cfc9fc0bb2 status: code: 200 message: OK diff --git a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_tools_with_capture_message_content[ollama_provider_chat_completions].yaml b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_tools_with_capture_message_content[ollama_provider_chat_completions].yaml index 86a6a1e..853d15e 100644 --- a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_tools_with_capture_message_content[ollama_provider_chat_completions].yaml +++ b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_tools_with_capture_message_content[ollama_provider_chat_completions].yaml @@ -1,16 +1,49 @@ interactions: - request: - body: '{"messages": [{"role": "system", "content": "You are a helpful customer - support assistant. Use the supplied tools to assist the user."}, {"role": "user", - "content": "Hi, can you tell me the delivery date for my order?"}, {"role": - "assistant", "content": "Hi there! I can help with that. Can you please provide - your order ID?"}, {"role": "user", "content": "i think it is order_12345"}], - "model": "qwen2.5:0.5b", "tools": [{"type": "function", "function": {"name": - "get_delivery_date", "description": "Get the delivery date for a customer''s - order. Call this whenever you need to know the delivery date, for example when - a customer asks ''Where is my package''", "parameters": {"type": "object", "properties": - {"order_id": {"type": "string", "description": "The customer''s order ID."}}, - "required": ["order_id"], "additionalProperties": false}}}]}' + body: |- + { + "messages": [ + { + "role": "system", + "content": "You are a helpful customer support assistant. Use the supplied tools to assist the user." + }, + { + "role": "user", + "content": "Hi, can you tell me the delivery date for my order?" + }, + { + "role": "assistant", + "content": "Hi there! I can help with that. Can you please provide your order ID?" + }, + { + "role": "user", + "content": "i think it is order_12345" + } + ], + "model": "qwen2.5:0.5b", + "tools": [ + { + "type": "function", + "function": { + "name": "get_delivery_date", + "description": "Get the delivery date for a customer's order. Call this whenever you need to know the delivery date, for example when a customer asks 'Where is my package'", + "parameters": { + "type": "object", + "properties": { + "order_id": { + "type": "string", + "description": "The customer's order ID." + } + }, + "required": [ + "order_id" + ], + "additionalProperties": false + } + } + } + ] + } headers: accept: - application/json @@ -27,37 +60,67 @@ interactions: host: - localhost:11434 user-agent: - - OpenAI/Python 1.50.0 + - OpenAI/Python 1.50.2 x-stainless-arch: - - x64 + - arm64 x-stainless-async: - 'false' x-stainless-lang: - python x-stainless-os: - - Linux + - MacOS x-stainless-package-version: - - 1.50.0 + - 1.50.2 x-stainless-retry-count: - '0' x-stainless-runtime: - CPython x-stainless-runtime-version: - - 3.10.12 + - 3.12.6 method: POST uri: http://localhost:11434/v1/chat/completions response: body: - string: '{"id":"chatcmpl-556","object":"chat.completion","created":1727962827,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"message":{"role":"assistant","content":"","tool_calls":[{"id":"call_sr2j6oa1","type":"function","function":{"name":"get_delivery_date","arguments":"{\"order_id\":\"order_12345\"}"}}]},"finish_reason":"tool_calls"}],"usage":{"prompt_tokens":241,"completion_tokens":28,"total_tokens":269}} - - ' + string: |- + { + "id": "chatcmpl-705", + "object": "chat.completion", + "created": 1731311780, + "model": "qwen2.5:0.5b", + "system_fingerprint": "fp_ollama", + "choices": [ + { + "index": 0, + "message": { + "role": "assistant", + "content": "", + "tool_calls": [ + { + "id": "call_u9zt4jf1", + "type": "function", + "function": { + "name": "get_delivery_date", + "arguments": "{\"order_id\":\"order_12345\"}" + } + } + ] + }, + "finish_reason": "tool_calls" + } + ], + "usage": { + "prompt_tokens": 241, + "completion_tokens": 28, + "total_tokens": 269 + } + } headers: Content-Length: - '436' Content-Type: - application/json Date: - - Thu, 03 Oct 2024 13:40:27 GMT + - Mon, 11 Nov 2024 07:56:20 GMT Set-Cookie: test_set_cookie openai-organization: test_openai_org_key status: diff --git a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_tools_with_capture_message_content[openai_provider_chat_completions].yaml b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_tools_with_capture_message_content[openai_provider_chat_completions].yaml index 3bb20a1..c520076 100644 --- a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_tools_with_capture_message_content[openai_provider_chat_completions].yaml +++ b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_tools_with_capture_message_content[openai_provider_chat_completions].yaml @@ -1,16 +1,49 @@ interactions: - request: - body: '{"messages": [{"role": "system", "content": "You are a helpful customer - support assistant. Use the supplied tools to assist the user."}, {"role": "user", - "content": "Hi, can you tell me the delivery date for my order?"}, {"role": - "assistant", "content": "Hi there! I can help with that. Can you please provide - your order ID?"}, {"role": "user", "content": "i think it is order_12345"}], - "model": "gpt-4o-mini", "tools": [{"type": "function", "function": {"name": - "get_delivery_date", "description": "Get the delivery date for a customer''s - order. Call this whenever you need to know the delivery date, for example when - a customer asks ''Where is my package''", "parameters": {"type": "object", "properties": - {"order_id": {"type": "string", "description": "The customer''s order ID."}}, - "required": ["order_id"], "additionalProperties": false}}}]}' + body: |- + { + "messages": [ + { + "role": "system", + "content": "You are a helpful customer support assistant. Use the supplied tools to assist the user." + }, + { + "role": "user", + "content": "Hi, can you tell me the delivery date for my order?" + }, + { + "role": "assistant", + "content": "Hi there! I can help with that. Can you please provide your order ID?" + }, + { + "role": "user", + "content": "i think it is order_12345" + } + ], + "model": "gpt-4o-mini", + "tools": [ + { + "type": "function", + "function": { + "name": "get_delivery_date", + "description": "Get the delivery date for a customer's order. Call this whenever you need to know the delivery date, for example when a customer asks 'Where is my package'", + "parameters": { + "type": "object", + "properties": { + "order_id": { + "type": "string", + "description": "The customer's order ID." + } + }, + "required": [ + "order_id" + ], + "additionalProperties": false + } + } + } + ] + } headers: accept: - application/json @@ -27,51 +60,83 @@ interactions: host: - api.openai.com user-agent: - - OpenAI/Python 1.50.0 + - OpenAI/Python 1.54.3 x-stainless-arch: - - x64 + - arm64 x-stainless-async: - 'false' x-stainless-lang: - python x-stainless-os: - - Linux + - MacOS x-stainless-package-version: - - 1.50.0 + - 1.54.3 x-stainless-retry-count: - '0' x-stainless-runtime: - CPython x-stainless-runtime-version: - - 3.10.12 + - 3.12.6 method: POST uri: https://api.openai.com/v1/chat/completions response: body: - string: "{\n \"id\": \"chatcmpl-AEGM5OhimYEMDsRq20IQCBx4vzf2Z\",\n \"object\": - \"chat.completion\",\n \"created\": 1727962825,\n \"model\": \"gpt-4o-mini-2024-07-18\",\n - \ \"choices\": [\n {\n \"index\": 0,\n \"message\": {\n \"role\": - \"assistant\",\n \"content\": null,\n \"tool_calls\": [\n {\n - \ \"id\": \"call_yU31CceO4OliQuZgPdsSPRXT\",\n \"type\": - \"function\",\n \"function\": {\n \"name\": \"get_delivery_date\",\n - \ \"arguments\": \"{\\\"order_id\\\":\\\"order_12345\\\"}\"\n - \ }\n }\n ],\n \"refusal\": null\n },\n - \ \"logprobs\": null,\n \"finish_reason\": \"tool_calls\"\n }\n - \ ],\n \"usage\": {\n \"prompt_tokens\": 140,\n \"completion_tokens\": - 19,\n \"total_tokens\": 159,\n \"prompt_tokens_details\": {\n \"cached_tokens\": - 0\n },\n \"completion_tokens_details\": {\n \"reasoning_tokens\": - 0\n }\n },\n \"system_fingerprint\": \"fp_74ba47b4ac\"\n}\n" + string: |- + { + "id": "chatcmpl-ASfa9bDXRwPIhzm7t58LNXJLZnBgC", + "object": "chat.completion", + "created": 1731396389, + "model": "gpt-4o-mini-2024-07-18", + "choices": [ + { + "index": 0, + "message": { + "role": "assistant", + "content": null, + "tool_calls": [ + { + "id": "call_QerODwH75OIstmsLXRkCOy4X", + "type": "function", + "function": { + "name": "get_delivery_date", + "arguments": "{\"order_id\":\"order_12345\"}" + } + } + ], + "refusal": null + }, + "logprobs": null, + "finish_reason": "tool_calls" + } + ], + "usage": { + "prompt_tokens": 140, + "completion_tokens": 19, + "total_tokens": 159, + "prompt_tokens_details": { + "cached_tokens": 0, + "audio_tokens": 0 + }, + "completion_tokens_details": { + "reasoning_tokens": 0, + "audio_tokens": 0, + "accepted_prediction_tokens": 0, + "rejected_prediction_tokens": 0 + } + }, + "system_fingerprint": "fp_0ba0d124f1" + } headers: CF-Cache-Status: - DYNAMIC CF-RAY: - - 8ccd58064c670f82-MXP + - 8e14cb494bcd401e-SIN Connection: - keep-alive Content-Type: - application/json Date: - - Thu, 03 Oct 2024 13:40:25 GMT + - Tue, 12 Nov 2024 07:26:30 GMT Server: - cloudflare Set-Cookie: test_set_cookie @@ -81,11 +146,13 @@ interactions: - nosniff access-control-expose-headers: - X-Request-ID + alt-svc: + - h3=":443"; ma=86400 content-length: - - '918' + - '1046' openai-organization: test_openai_org_key openai-processing-ms: - - '749' + - '516' openai-version: - '2020-10-01' strict-transport-security: @@ -95,15 +162,15 @@ interactions: x-ratelimit-limit-tokens: - '200000' x-ratelimit-remaining-requests: - - '9999' + - '9995' x-ratelimit-remaining-tokens: - '199921' x-ratelimit-reset-requests: - - 8.64s + - 40.008s x-ratelimit-reset-tokens: - 23ms x-request-id: - - req_45f48e5256de5ad05a765aa0f15e9f04 + - req_8c75e0b1c7b908bb414fba6160183ea7 status: code: 200 message: OK diff --git a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_tools_with_capture_message_content_log_events[azure_provider_chat_completions].yaml b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_tools_with_capture_message_content_log_events[azure_provider_chat_completions].yaml index 53b25b4..67d1087 100644 --- a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_tools_with_capture_message_content_log_events[azure_provider_chat_completions].yaml +++ b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_tools_with_capture_message_content_log_events[azure_provider_chat_completions].yaml @@ -1,16 +1,49 @@ interactions: - request: - body: '{"messages": [{"role": "system", "content": "You are a helpful customer - support assistant. Use the supplied tools to assist the user."}, {"role": "user", - "content": "Hi, can you tell me the delivery date for my order?"}, {"role": - "assistant", "content": "Hi there! I can help with that. Can you please provide - your order ID?"}, {"role": "user", "content": "i think it is order_12345"}], - "model": "gpt-4o-mini", "tools": [{"type": "function", "function": {"name": - "get_delivery_date", "description": "Get the delivery date for a customer''s - order. Call this whenever you need to know the delivery date, for example when - a customer asks ''Where is my package''", "parameters": {"type": "object", "properties": - {"order_id": {"type": "string", "description": "The customer''s order ID."}}, - "required": ["order_id"], "additionalProperties": false}}}]}' + body: |- + { + "messages": [ + { + "role": "system", + "content": "You are a helpful customer support assistant. Use the supplied tools to assist the user." + }, + { + "role": "user", + "content": "Hi, can you tell me the delivery date for my order?" + }, + { + "role": "assistant", + "content": "Hi there! I can help with that. Can you please provide your order ID?" + }, + { + "role": "user", + "content": "i think it is order_12345" + } + ], + "model": "unused", + "tools": [ + { + "type": "function", + "function": { + "name": "get_delivery_date", + "description": "Get the delivery date for a customer's order. Call this whenever you need to know the delivery date, for example when a customer asks 'Where is my package'", + "parameters": { + "type": "object", + "properties": { + "order_id": { + "type": "string", + "description": "The customer's order ID." + } + }, + "required": [ + "order_id" + ], + "additionalProperties": false + } + } + } + ] + } headers: accept: - application/json @@ -23,67 +56,126 @@ interactions: connection: - keep-alive content-length: - - '842' + - '837' content-type: - application/json host: - test.openai.azure.com user-agent: - - AzureOpenAI/Python 1.34.0 + - AzureOpenAI/Python 1.54.3 x-stainless-arch: - - x64 + - arm64 x-stainless-async: - 'false' x-stainless-lang: - python x-stainless-os: - - Linux + - MacOS x-stainless-package-version: - - 1.34.0 + - 1.54.3 + x-stainless-retry-count: + - '0' x-stainless-runtime: - CPython x-stainless-runtime-version: - - 3.10.12 + - 3.12.6 method: POST - uri: https://test.openai.azure.com/openai/deployments/test-azure-deployment/chat/completions?api-version=2023-03-15-preview + uri: https://test.openai.azure.com/openai/deployments/test-azure-deployment/chat/completions?api-version=2024-08-01-preview response: body: - string: '{"choices":[{"finish_reason":"tool_calls","index":0,"message":{"content":null,"role":"assistant","tool_calls":[{"function":{"arguments":"{\"order_id\":\"order_12345\"}","name":"get_delivery_date"},"id":"call_Xyr5OWcqhvuW62vUx3sPPruH","type":"function"}]}}],"created":1728909012,"id":"chatcmpl-AIEVA7wwx1Cxy8O31zWDnxgUETAeN","model":"gpt-4o-mini","object":"chat.completion","system_fingerprint":"fp_878413d04d","usage":{"completion_tokens":19,"prompt_tokens":140,"total_tokens":159}} - - ' + string: |- + { + "choices": [ + { + "content_filter_results": {}, + "finish_reason": "tool_calls", + "index": 0, + "logprobs": null, + "message": { + "content": null, + "role": "assistant", + "tool_calls": [ + { + "function": { + "arguments": "{\n \"order_id\": \"order_12345\"\n}", + "name": "get_delivery_date" + }, + "id": "call_hR2GEOnGJhmLsHHsMgfLuICf", + "type": "function" + } + ] + } + } + ], + "created": 1731466208, + "id": "chatcmpl-ASxkGiNWw960EEmcHpv6CgIyP6tHy", + "model": "gpt-4-32k", + "object": "chat.completion", + "prompt_filter_results": [ + { + "prompt_index": 0, + "content_filter_results": { + "hate": { + "filtered": false, + "severity": "safe" + }, + "self_harm": { + "filtered": false, + "severity": "safe" + }, + "sexual": { + "filtered": false, + "severity": "safe" + }, + "violence": { + "filtered": false, + "severity": "safe" + } + } + } + ], + "system_fingerprint": null, + "usage": { + "completion_tokens": 20, + "prompt_tokens": 144, + "total_tokens": 164 + } + } headers: + Cache-Control: + - no-cache, must-revalidate Content-Length: - - '483' + - '780' Content-Type: - application/json Date: - - Mon, 14 Oct 2024 12:30:12 GMT + - Wed, 13 Nov 2024 02:50:08 GMT Set-Cookie: test_set_cookie Strict-Transport-Security: - max-age=31536000; includeSubDomains; preload + access-control-allow-origin: + - '*' apim-request-id: - - a141176e-94e3-486c-9085-230741a42457 + - f2a2d7bd-955a-41bf-9331-13b30ee4235b azureml-model-session: - - d005-20241009165114 - openai-organization: test_openai_org_key + - d156-20241010120317 + openai-organization: test_openai_org_id x-accel-buffering: - 'no' x-content-type-options: - nosniff - x-envoy-upstream-service-time: - - '417' x-ms-client-request-id: - - a141176e-94e3-486c-9085-230741a42457 + - f2a2d7bd-955a-41bf-9331-13b30ee4235b x-ms-rai-invoked: - 'true' x-ms-region: - - East US + - Switzerland North x-ratelimit-remaining-requests: - - '909' + - '74' x-ratelimit-remaining-tokens: - - '90299' + - '79804' x-request-id: - - 320ccb63-87b7-40df-9d5d-538d1dc7fcad + - 56967b5f-c563-4d59-af77-891c41dbae2b status: code: 200 message: OK diff --git a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_tools_with_capture_message_content_log_events[ollama_provider_chat_completions].yaml b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_tools_with_capture_message_content_log_events[ollama_provider_chat_completions].yaml index 663b6e1..73e2551 100644 --- a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_tools_with_capture_message_content_log_events[ollama_provider_chat_completions].yaml +++ b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_tools_with_capture_message_content_log_events[ollama_provider_chat_completions].yaml @@ -1,16 +1,49 @@ interactions: - request: - body: '{"messages": [{"role": "system", "content": "You are a helpful customer - support assistant. Use the supplied tools to assist the user."}, {"role": "user", - "content": "Hi, can you tell me the delivery date for my order?"}, {"role": - "assistant", "content": "Hi there! I can help with that. Can you please provide - your order ID?"}, {"role": "user", "content": "i think it is order_12345"}], - "model": "qwen2.5:0.5b", "tools": [{"type": "function", "function": {"name": - "get_delivery_date", "description": "Get the delivery date for a customer''s - order. Call this whenever you need to know the delivery date, for example when - a customer asks ''Where is my package''", "parameters": {"type": "object", "properties": - {"order_id": {"type": "string", "description": "The customer''s order ID."}}, - "required": ["order_id"], "additionalProperties": false}}}]}' + body: |- + { + "messages": [ + { + "role": "system", + "content": "You are a helpful customer support assistant. Use the supplied tools to assist the user." + }, + { + "role": "user", + "content": "Hi, can you tell me the delivery date for my order?" + }, + { + "role": "assistant", + "content": "Hi there! I can help with that. Can you please provide your order ID?" + }, + { + "role": "user", + "content": "i think it is order_12345" + } + ], + "model": "qwen2.5:0.5b", + "tools": [ + { + "type": "function", + "function": { + "name": "get_delivery_date", + "description": "Get the delivery date for a customer's order. Call this whenever you need to know the delivery date, for example when a customer asks 'Where is my package'", + "parameters": { + "type": "object", + "properties": { + "order_id": { + "type": "string", + "description": "The customer's order ID." + } + }, + "required": [ + "order_id" + ], + "additionalProperties": false + } + } + } + ] + } headers: accept: - application/json @@ -27,35 +60,67 @@ interactions: host: - localhost:11434 user-agent: - - OpenAI/Python 1.34.0 + - OpenAI/Python 1.50.2 x-stainless-arch: - - x64 + - arm64 x-stainless-async: - 'false' x-stainless-lang: - python x-stainless-os: - - Linux + - MacOS x-stainless-package-version: - - 1.34.0 + - 1.50.2 + x-stainless-retry-count: + - '0' x-stainless-runtime: - CPython x-stainless-runtime-version: - - 3.10.12 + - 3.12.6 method: POST uri: http://localhost:11434/v1/chat/completions response: body: - string: '{"id":"chatcmpl-339","object":"chat.completion","created":1728909015,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"message":{"role":"assistant","content":"","tool_calls":[{"id":"call_3h40tlh2","type":"function","function":{"name":"get_delivery_date","arguments":"{\"order_id\":\"order_12345\"}"}}]},"finish_reason":"tool_calls"}],"usage":{"prompt_tokens":241,"completion_tokens":28,"total_tokens":269}} - - ' + string: |- + { + "id": "chatcmpl-695", + "object": "chat.completion", + "created": 1731311780, + "model": "qwen2.5:0.5b", + "system_fingerprint": "fp_ollama", + "choices": [ + { + "index": 0, + "message": { + "role": "assistant", + "content": "", + "tool_calls": [ + { + "id": "call_stzzh47r", + "type": "function", + "function": { + "name": "get_delivery_date", + "arguments": "{\"order_id\":\"order_12345\"}" + } + } + ] + }, + "finish_reason": "tool_calls" + } + ], + "usage": { + "prompt_tokens": 241, + "completion_tokens": 28, + "total_tokens": 269 + } + } headers: Content-Length: - '436' Content-Type: - application/json Date: - - Mon, 14 Oct 2024 12:30:15 GMT + - Mon, 11 Nov 2024 07:56:20 GMT Set-Cookie: test_set_cookie openai-organization: test_openai_org_key status: diff --git a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_tools_with_capture_message_content_log_events[openai_provider_chat_completions].yaml b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_tools_with_capture_message_content_log_events[openai_provider_chat_completions].yaml index 5991e9b..00eafe3 100644 --- a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_tools_with_capture_message_content_log_events[openai_provider_chat_completions].yaml +++ b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_tools_with_capture_message_content_log_events[openai_provider_chat_completions].yaml @@ -1,16 +1,49 @@ interactions: - request: - body: '{"messages": [{"role": "system", "content": "You are a helpful customer - support assistant. Use the supplied tools to assist the user."}, {"role": "user", - "content": "Hi, can you tell me the delivery date for my order?"}, {"role": - "assistant", "content": "Hi there! I can help with that. Can you please provide - your order ID?"}, {"role": "user", "content": "i think it is order_12345"}], - "model": "gpt-4o-mini", "tools": [{"type": "function", "function": {"name": - "get_delivery_date", "description": "Get the delivery date for a customer''s - order. Call this whenever you need to know the delivery date, for example when - a customer asks ''Where is my package''", "parameters": {"type": "object", "properties": - {"order_id": {"type": "string", "description": "The customer''s order ID."}}, - "required": ["order_id"], "additionalProperties": false}}}]}' + body: |- + { + "messages": [ + { + "role": "system", + "content": "You are a helpful customer support assistant. Use the supplied tools to assist the user." + }, + { + "role": "user", + "content": "Hi, can you tell me the delivery date for my order?" + }, + { + "role": "assistant", + "content": "Hi there! I can help with that. Can you please provide your order ID?" + }, + { + "role": "user", + "content": "i think it is order_12345" + } + ], + "model": "gpt-4o-mini", + "tools": [ + { + "type": "function", + "function": { + "name": "get_delivery_date", + "description": "Get the delivery date for a customer's order. Call this whenever you need to know the delivery date, for example when a customer asks 'Where is my package'", + "parameters": { + "type": "object", + "properties": { + "order_id": { + "type": "string", + "description": "The customer's order ID." + } + }, + "required": [ + "order_id" + ], + "additionalProperties": false + } + } + } + ] + } headers: accept: - application/json @@ -27,49 +60,83 @@ interactions: host: - api.openai.com user-agent: - - OpenAI/Python 1.34.0 + - OpenAI/Python 1.54.3 x-stainless-arch: - - x64 + - arm64 x-stainless-async: - 'false' x-stainless-lang: - python x-stainless-os: - - Linux + - MacOS x-stainless-package-version: - - 1.34.0 + - 1.54.3 + x-stainless-retry-count: + - '0' x-stainless-runtime: - CPython x-stainless-runtime-version: - - 3.10.12 + - 3.12.6 method: POST uri: https://api.openai.com/v1/chat/completions response: body: - string: "{\n \"id\": \"chatcmpl-AIEV9MTVUJ4HtPJm6pro1FgWlWQ2g\",\n \"object\": - \"chat.completion\",\n \"created\": 1728909011,\n \"model\": \"gpt-4o-mini-2024-07-18\",\n - \ \"choices\": [\n {\n \"index\": 0,\n \"message\": {\n \"role\": - \"assistant\",\n \"content\": null,\n \"tool_calls\": [\n {\n - \ \"id\": \"call_jQEwfwLUeVLVsxWaz8N0c8Yp\",\n \"type\": - \"function\",\n \"function\": {\n \"name\": \"get_delivery_date\",\n - \ \"arguments\": \"{\\\"order_id\\\":\\\"order_12345\\\"}\"\n - \ }\n }\n ],\n \"refusal\": null\n },\n - \ \"logprobs\": null,\n \"finish_reason\": \"tool_calls\"\n }\n - \ ],\n \"usage\": {\n \"prompt_tokens\": 140,\n \"completion_tokens\": - 19,\n \"total_tokens\": 159,\n \"prompt_tokens_details\": {\n \"cached_tokens\": - 0\n },\n \"completion_tokens_details\": {\n \"reasoning_tokens\": - 0\n }\n },\n \"system_fingerprint\": \"fp_8552ec53e1\"\n}\n" + string: |- + { + "id": "chatcmpl-ASfaAdUvnmifbYTNRZYh0TbM7mmTu", + "object": "chat.completion", + "created": 1731396390, + "model": "gpt-4o-mini-2024-07-18", + "choices": [ + { + "index": 0, + "message": { + "role": "assistant", + "content": null, + "tool_calls": [ + { + "id": "call_pWCLNanMRK7W7uEVHK8PzIKU", + "type": "function", + "function": { + "name": "get_delivery_date", + "arguments": "{\"order_id\":\"order_12345\"}" + } + } + ], + "refusal": null + }, + "logprobs": null, + "finish_reason": "tool_calls" + } + ], + "usage": { + "prompt_tokens": 140, + "completion_tokens": 19, + "total_tokens": 159, + "prompt_tokens_details": { + "cached_tokens": 0, + "audio_tokens": 0 + }, + "completion_tokens_details": { + "reasoning_tokens": 0, + "audio_tokens": 0, + "accepted_prediction_tokens": 0, + "rejected_prediction_tokens": 0 + } + }, + "system_fingerprint": "fp_0ba0d124f1" + } headers: CF-Cache-Status: - DYNAMIC CF-RAY: - - 8d2794478f680de8-MXP + - 8e14cb4f2fa381a1-SIN Connection: - keep-alive Content-Type: - application/json Date: - - Mon, 14 Oct 2024 12:30:12 GMT + - Tue, 12 Nov 2024 07:26:31 GMT Server: - cloudflare Set-Cookie: test_set_cookie @@ -82,10 +149,10 @@ interactions: alt-svc: - h3=":443"; ma=86400 content-length: - - '918' + - '1046' openai-organization: test_openai_org_key openai-processing-ms: - - '954' + - '480' openai-version: - '2020-10-01' strict-transport-security: @@ -95,15 +162,15 @@ interactions: x-ratelimit-limit-tokens: - '200000' x-ratelimit-remaining-requests: - - '9999' + - '9994' x-ratelimit-remaining-tokens: - '199921' x-ratelimit-reset-requests: - - 8.64s + - 47.726s x-ratelimit-reset-tokens: - 23ms x-request-id: - - req_899caaee8931b70c71856c7315a7312f + - req_ccdda6bf020fb93ddd72bcfc2385acc3 status: code: 200 message: OK diff --git a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_tools_with_followup_and_capture_content_log_events[ollama_provider_chat_completions].yaml b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_tools_with_followup_and_capture_content_log_events[ollama_provider_chat_completions].yaml new file mode 100644 index 0000000..2138beb --- /dev/null +++ b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_tools_with_followup_and_capture_content_log_events[ollama_provider_chat_completions].yaml @@ -0,0 +1,66 @@ +interactions: +- request: + body: '{"messages": [{"role": "system", "content": "You are a helpful assistant + providing weather updates."}, {"role": "user", "content": "What is the weather + in New York City and London?"}], "model": "qwen2.5:0.5b", "tools": [{"type": + "function", "function": {"name": "get_weather", "strict": true, "parameters": + {"type": "object", "properties": {"location": {"type": "string"}}, "required": + ["location"], "additionalProperties": false}}}]}' + headers: + accept: + - application/json + accept-encoding: + - gzip, deflate + authorization: + - Bearer test_openai_api_key + connection: + - keep-alive + content-length: + - '434' + content-type: + - application/json + host: + - localhost:11434 + user-agent: + - OpenAI/Python 1.50.0 + x-stainless-arch: + - x64 + x-stainless-async: + - 'false' + x-stainless-lang: + - python + x-stainless-os: + - Linux + x-stainless-package-version: + - 1.50.0 + x-stainless-retry-count: + - '0' + x-stainless-runtime: + - CPython + x-stainless-runtime-version: + - 3.10.12 + method: POST + uri: http://localhost:11434/v1/chat/completions + response: + body: + string: '{"id":"chatcmpl-97","object":"chat.completion","created":1730217202,"model":"qwen2.5:0.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"message":{"role":"assistant","content":"Sure, + I can help you find information about the temperature and weather in New York + City and London. Could you please specify which city(s) you''re interested + in looking up details for? If not provided immediately, I''ll assume we''re + looking at general trends or data across both cities. Please provide some + details so that I can provide accurate information."},"finish_reason":"stop"}],"usage":{"prompt_tokens":150,"completion_tokens":70,"total_tokens":220}} + + ' + headers: + Content-Length: + - '645' + Content-Type: + - application/json + Date: + - Tue, 29 Oct 2024 15:53:22 GMT + Set-Cookie: test_set_cookie + openai-organization: test_openai_org_key + status: + code: 200 + message: OK +version: 1 diff --git a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_tools_with_followup_and_capture_message_content_log_events[openai_provider_chat_completions].yaml b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_tools_with_followup_and_capture_message_content_log_events[openai_provider_chat_completions].yaml index 6246dbf..885480b 100644 --- a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_tools_with_followup_and_capture_message_content_log_events[openai_provider_chat_completions].yaml +++ b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_tools_with_followup_and_capture_message_content_log_events[openai_provider_chat_completions].yaml @@ -1,11 +1,40 @@ interactions: - request: - body: '{"messages": [{"role": "system", "content": "You are a helpful assistant - providing weather updates."}, {"role": "user", "content": "What is the weather - in New York City and London?"}], "model": "gpt-4o-mini", "tools": [{"type": - "function", "function": {"name": "get_weather", "strict": true, "parameters": - {"type": "object", "properties": {"location": {"type": "string"}}, "required": - ["location"], "additionalProperties": false}}}]}' + body: |- + { + "messages": [ + { + "role": "system", + "content": "You are a helpful assistant providing weather updates." + }, + { + "role": "user", + "content": "What is the weather in New York City and London?" + } + ], + "model": "gpt-4o-mini", + "tools": [ + { + "type": "function", + "function": { + "name": "get_weather", + "strict": true, + "parameters": { + "type": "object", + "properties": { + "location": { + "type": "string" + } + }, + "required": [ + "location" + ], + "additionalProperties": false + } + } + } + ] + } headers: accept: - application/json @@ -22,54 +51,91 @@ interactions: host: - api.openai.com user-agent: - - OpenAI/Python 1.50.0 + - OpenAI/Python 1.54.3 x-stainless-arch: - - x64 + - arm64 x-stainless-async: - 'false' x-stainless-lang: - python x-stainless-os: - - Linux + - MacOS x-stainless-package-version: - - 1.50.0 + - 1.54.3 x-stainless-retry-count: - '0' x-stainless-runtime: - CPython x-stainless-runtime-version: - - 3.10.12 + - 3.12.6 method: POST uri: https://api.openai.com/v1/chat/completions response: body: - string: "{\n \"id\": \"chatcmpl-ANiop2XcXbTSq8swBkuxNauL2ZCpp\",\n \"object\": - \"chat.completion\",\n \"created\": 1730217191,\n \"model\": \"gpt-4o-mini-2024-07-18\",\n - \ \"choices\": [\n {\n \"index\": 0,\n \"message\": {\n \"role\": - \"assistant\",\n \"content\": null,\n \"tool_calls\": [\n {\n - \ \"id\": \"call_WUdxyJgUagWwal3Oq9ZevTO0\",\n \"type\": - \"function\",\n \"function\": {\n \"name\": \"get_weather\",\n - \ \"arguments\": \"{\\\"location\\\": \\\"New York City\\\"}\"\n - \ }\n },\n {\n \"id\": \"call_BAZEZMlsHRPFvG5yYPNIPFA8\",\n - \ \"type\": \"function\",\n \"function\": {\n \"name\": - \"get_weather\",\n \"arguments\": \"{\\\"location\\\": \\\"London\\\"}\"\n - \ }\n }\n ],\n \"refusal\": null\n },\n - \ \"logprobs\": null,\n \"finish_reason\": \"tool_calls\"\n }\n - \ ],\n \"usage\": {\n \"prompt_tokens\": 57,\n \"completion_tokens\": - 46,\n \"total_tokens\": 103,\n \"prompt_tokens_details\": {\n \"cached_tokens\": - 0\n },\n \"completion_tokens_details\": {\n \"reasoning_tokens\": - 0\n }\n },\n \"system_fingerprint\": \"fp_f59a81427f\"\n}\n" + string: |- + { + "id": "chatcmpl-ASfaKW9DIuWmmJIEpHKl6zpB87fQk", + "object": "chat.completion", + "created": 1731396400, + "model": "gpt-4o-mini-2024-07-18", + "choices": [ + { + "index": 0, + "message": { + "role": "assistant", + "content": null, + "tool_calls": [ + { + "id": "call_PDht93e7bo48a7PyiyUcmK97", + "type": "function", + "function": { + "name": "get_weather", + "arguments": "{\"location\": \"New York City\"}" + } + }, + { + "id": "call_e5hauJIowS4IYEfeaiReu72o", + "type": "function", + "function": { + "name": "get_weather", + "arguments": "{\"location\": \"London\"}" + } + } + ], + "refusal": null + }, + "logprobs": null, + "finish_reason": "tool_calls" + } + ], + "usage": { + "prompt_tokens": 57, + "completion_tokens": 46, + "total_tokens": 103, + "prompt_tokens_details": { + "cached_tokens": 0, + "audio_tokens": 0 + }, + "completion_tokens_details": { + "reasoning_tokens": 0, + "audio_tokens": 0, + "accepted_prediction_tokens": 0, + "rejected_prediction_tokens": 0 + } + }, + "system_fingerprint": "fp_0ba0d124f1" + } headers: CF-Cache-Status: - DYNAMIC CF-RAY: - - 8da45642195e5261-MXP + - 8e14cb8eaa4849b4-SIN Connection: - keep-alive Content-Type: - application/json Date: - - Tue, 29 Oct 2024 15:53:11 GMT + - Tue, 12 Nov 2024 07:26:41 GMT Server: - cloudflare Set-Cookie: test_set_cookie @@ -82,10 +148,10 @@ interactions: alt-svc: - h3=":443"; ma=86400 content-length: - - '1155' + - '1283' openai-organization: test_openai_org_key openai-processing-ms: - - '1027' + - '1171' openai-version: - '2020-10-01' strict-transport-security: @@ -95,28 +161,64 @@ interactions: x-ratelimit-limit-tokens: - '200000' x-ratelimit-remaining-requests: - - '9999' + - '9986' x-ratelimit-remaining-tokens: - '199956' x-ratelimit-reset-requests: - - 8.64s + - 1m55.337s x-ratelimit-reset-tokens: - 13ms x-request-id: - - req_9020588902482d8196158fcf8203a9ee + - req_6c6d22f3f6a68edff6d29a9b9e46486c status: code: 200 message: OK - request: - body: '{"messages": [{"role": "system", "content": "You are a helpful assistant - providing weather updates."}, {"role": "user", "content": "What is the weather - in New York City and London?"}, {"role": "assistant", "tool_calls": [{"id": - "call_WUdxyJgUagWwal3Oq9ZevTO0", "function": {"arguments": "{\"location\": \"New - York City\"}", "name": "get_weather"}, "type": "function"}, {"id": "call_BAZEZMlsHRPFvG5yYPNIPFA8", - "function": {"arguments": "{\"location\": \"London\"}", "name": "get_weather"}, - "type": "function"}]}, {"role": "tool", "content": "25 degrees and sunny", "tool_call_id": - "call_WUdxyJgUagWwal3Oq9ZevTO0"}, {"role": "tool", "content": "15 degrees and - raining", "tool_call_id": "call_BAZEZMlsHRPFvG5yYPNIPFA8"}], "model": "gpt-4o-mini"}' + body: |- + { + "messages": [ + { + "role": "system", + "content": "You are a helpful assistant providing weather updates." + }, + { + "role": "user", + "content": "What is the weather in New York City and London?" + }, + { + "role": "assistant", + "tool_calls": [ + { + "id": "call_PDht93e7bo48a7PyiyUcmK97", + "function": { + "arguments": "{\"location\": \"New York City\"}", + "name": "get_weather" + }, + "type": "function" + }, + { + "id": "call_e5hauJIowS4IYEfeaiReu72o", + "function": { + "arguments": "{\"location\": \"London\"}", + "name": "get_weather" + }, + "type": "function" + } + ] + }, + { + "role": "tool", + "content": "25 degrees and sunny", + "tool_call_id": "call_PDht93e7bo48a7PyiyUcmK97" + }, + { + "role": "tool", + "content": "15 degrees and raining", + "tool_call_id": "call_e5hauJIowS4IYEfeaiReu72o" + } + ], + "model": "gpt-4o-mini" + } headers: accept: - application/json @@ -133,48 +235,73 @@ interactions: host: - api.openai.com user-agent: - - OpenAI/Python 1.50.0 + - OpenAI/Python 1.54.3 x-stainless-arch: - - x64 + - arm64 x-stainless-async: - 'false' x-stainless-lang: - python x-stainless-os: - - Linux + - MacOS x-stainless-package-version: - - 1.50.0 + - 1.54.3 x-stainless-retry-count: - '0' x-stainless-runtime: - CPython x-stainless-runtime-version: - - 3.10.12 + - 3.12.6 method: POST uri: https://api.openai.com/v1/chat/completions response: body: - string: "{\n \"id\": \"chatcmpl-ANioqFAl6knUGNXUHM97w9fnolOUA\",\n \"object\": - \"chat.completion\",\n \"created\": 1730217192,\n \"model\": \"gpt-4o-mini-2024-07-18\",\n - \ \"choices\": [\n {\n \"index\": 0,\n \"message\": {\n \"role\": - \"assistant\",\n \"content\": \"The current weather is as follows:\\n\\n- - **New York City**: 25 degrees and sunny\\n- **London**: 15 degrees and raining\",\n - \ \"refusal\": null\n },\n \"logprobs\": null,\n \"finish_reason\": - \"stop\"\n }\n ],\n \"usage\": {\n \"prompt_tokens\": 99,\n \"completion_tokens\": - 30,\n \"total_tokens\": 129,\n \"prompt_tokens_details\": {\n \"cached_tokens\": - 0\n },\n \"completion_tokens_details\": {\n \"reasoning_tokens\": - 0\n }\n },\n \"system_fingerprint\": \"fp_f59a81427f\"\n}\n" + string: |- + { + "id": "chatcmpl-ASfaMHRVNFyJBKQNN7PYWDC2YfD7T", + "object": "chat.completion", + "created": 1731396402, + "model": "gpt-4o-mini-2024-07-18", + "choices": [ + { + "index": 0, + "message": { + "role": "assistant", + "content": "The weather in New York City is 25 degrees and sunny. In London, it is 15 degrees and raining.", + "refusal": null + }, + "logprobs": null, + "finish_reason": "stop" + } + ], + "usage": { + "prompt_tokens": 99, + "completion_tokens": 24, + "total_tokens": 123, + "prompt_tokens_details": { + "cached_tokens": 0, + "audio_tokens": 0 + }, + "completion_tokens_details": { + "reasoning_tokens": 0, + "audio_tokens": 0, + "accepted_prediction_tokens": 0, + "rejected_prediction_tokens": 0 + } + }, + "system_fingerprint": "fp_0ba0d124f1" + } headers: CF-Cache-Status: - DYNAMIC CF-RAY: - - 8da45649ed485261-MXP + - 8e14cb983d8a49b4-SIN Connection: - keep-alive Content-Type: - application/json Date: - - Tue, 29 Oct 2024 15:53:13 GMT + - Tue, 12 Nov 2024 07:26:42 GMT Server: - cloudflare Set-Cookie: test_set_cookie @@ -187,10 +314,10 @@ interactions: alt-svc: - h3=":443"; ma=86400 content-length: - - '741' + - '846' openai-organization: test_openai_org_key openai-processing-ms: - - '1119' + - '699' openai-version: - '2020-10-01' strict-transport-security: @@ -200,15 +327,15 @@ interactions: x-ratelimit-limit-tokens: - '200000' x-ratelimit-remaining-requests: - - '9998' + - '9985' x-ratelimit-remaining-tokens: - - '199942' + - '199943' x-ratelimit-reset-requests: - - 16.076s + - 2m2.445s x-ratelimit-reset-tokens: - 17ms x-request-id: - - req_05dcf7d7979cddd2ca4d74b2ac762add + - req_5e17646545f163ab536bb358437e1461 status: code: 200 message: OK diff --git a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_with_model_not_found[ollama_provider_chat_completions].yaml b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_with_model_not_found[ollama_provider_chat_completions].yaml index df5db8b..2f7a733 100644 --- a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_with_model_not_found[ollama_provider_chat_completions].yaml +++ b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_with_model_not_found[ollama_provider_chat_completions].yaml @@ -1,7 +1,15 @@ interactions: - request: - body: '{"messages": [{"role": "user", "content": "Answer in up to 3 words: Which - ocean contains the falkland islands?"}], "model": "not-found-model"}' + body: |- + { + "messages": [ + { + "role": "user", + "content": "Answer in up to 3 words: Which ocean contains the falkland islands?" + } + ], + "model": "not-found-model" + } headers: accept: - application/json @@ -18,36 +26,43 @@ interactions: host: - localhost:11434 user-agent: - - OpenAI/Python 1.34.0 + - OpenAI/Python 1.50.2 x-stainless-arch: - - x64 + - arm64 x-stainless-async: - 'false' x-stainless-lang: - python x-stainless-os: - - Linux + - MacOS x-stainless-package-version: - - 1.34.0 + - 1.50.2 + x-stainless-retry-count: + - '0' x-stainless-runtime: - CPython x-stainless-runtime-version: - - 3.10.12 + - 3.12.6 method: POST uri: http://localhost:11434/v1/chat/completions response: body: - string: '{"error":{"message":"model \"not-found-model\" not found, try pulling - it first","type":"api_error","param":null,"code":null}} - - ' + string: |- + { + "error": { + "message": "model \"not-found-model\" not found, try pulling it first", + "type": "api_error", + "param": null, + "code": null + } + } headers: Content-Length: - '126' Content-Type: - application/json Date: - - Thu, 10 Oct 2024 13:37:48 GMT + - Mon, 11 Nov 2024 07:56:25 GMT Set-Cookie: test_set_cookie openai-organization: test_openai_org_key status: diff --git a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_with_model_not_found[openai_provider_chat_completions].yaml b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_with_model_not_found[openai_provider_chat_completions].yaml index c86cae0..4298b79 100644 --- a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_with_model_not_found[openai_provider_chat_completions].yaml +++ b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_chat_completions/test_with_model_not_found[openai_provider_chat_completions].yaml @@ -1,7 +1,15 @@ interactions: - request: - body: '{"messages": [{"role": "user", "content": "Answer in up to 3 words: Which - ocean contains the falkland islands?"}], "model": "not-found-model"}' + body: |- + { + "messages": [ + { + "role": "user", + "content": "Answer in up to 3 words: Which ocean contains the falkland islands?" + } + ], + "model": "not-found-model" + } headers: accept: - application/json @@ -18,39 +26,47 @@ interactions: host: - api.openai.com user-agent: - - OpenAI/Python 1.34.0 + - OpenAI/Python 1.54.3 x-stainless-arch: - - x64 + - arm64 x-stainless-async: - 'false' x-stainless-lang: - python x-stainless-os: - - Linux + - MacOS x-stainless-package-version: - - 1.34.0 + - 1.54.3 + x-stainless-retry-count: + - '0' x-stainless-runtime: - CPython x-stainless-runtime-version: - - 3.10.12 + - 3.12.6 method: POST uri: https://api.openai.com/v1/chat/completions response: body: - string: "{\n \"error\": {\n \"message\": \"The model `not-found-model` - does not exist or you do not have access to it.\",\n \"type\": \"invalid_request_error\",\n - \ \"param\": null,\n \"code\": \"model_not_found\"\n }\n}\n" + string: |- + { + "error": { + "message": "The model `not-found-model` does not exist or you do not have access to it.", + "type": "invalid_request_error", + "param": null, + "code": "model_not_found" + } + } headers: CF-Cache-Status: - DYNAMIC CF-RAY: - - 8d06f3a529a63865-LHR + - 8e14cbc6ec88602c-SIN Connection: - keep-alive Content-Type: - application/json; charset=utf-8 Date: - - Thu, 10 Oct 2024 13:28:07 GMT + - Tue, 12 Nov 2024 07:26:49 GMT Server: - cloudflare Set-Cookie: test_set_cookie @@ -68,7 +84,7 @@ interactions: vary: - Origin x-request-id: - - req_a61de9eb10d55c0c52033fd9e6715e6e + - req_1afb82ea505099d96c73253a788e70b1 status: code: 404 message: Not Found diff --git a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_embeddings/test_all_the_client_options[azure_provider_embeddings].yaml b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_embeddings/test_all_the_client_options[azure_provider_embeddings].yaml index 2e26245..fe2c1d7 100644 --- a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_embeddings/test_all_the_client_options[azure_provider_embeddings].yaml +++ b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_embeddings/test_all_the_client_options[azure_provider_embeddings].yaml @@ -1,7 +1,13 @@ interactions: - request: - body: '{"input": ["South Atlantic Ocean."], "model": "text-embedding-3-small", - "encoding_format": "float"}' + body: |- + { + "input": [ + "South Atlantic Ocean." + ], + "model": "ada", + "encoding_format": "float" + } headers: accept: - application/json @@ -14,450 +20,1615 @@ interactions: connection: - keep-alive content-length: - - '99' + - '80' content-type: - application/json host: - test.openai.azure.com user-agent: - - AzureOpenAI/Python 1.50.0 + - AzureOpenAI/Python 1.54.3 x-stainless-arch: - - x64 + - arm64 x-stainless-async: - 'false' x-stainless-lang: - python x-stainless-os: - - Linux + - MacOS x-stainless-package-version: - - 1.50.0 + - 1.54.3 x-stainless-retry-count: - '0' x-stainless-runtime: - CPython x-stainless-runtime-version: - - 3.10.12 + - 3.12.6 method: POST uri: https://test.openai.azure.com/openai/deployments/test-azure-deployment/embeddings?api-version=2023-05-15 response: body: - string: "{\n \"object\": \"list\",\n \"data\": [\n {\n \"object\": - \"embedding\",\n \"index\": 0,\n \"embedding\": [\n -0.031545125,\n - \ -0.030183462,\n 0.010235145,\n 0.0091061015,\n -0.030864293,\n - \ 0.064815015,\n 0.036061294,\n -0.0018737009,\n -0.004669359,\n - \ -0.021037648,\n 0.0026396345,\n -0.010927321,\n -0.018688783,\n - \ -0.012107427,\n 0.014955565,\n 0.02450988,\n -0.024282936,\n - \ 0.018881686,\n 0.016634947,\n 0.023170915,\n -0.028231751,\n - \ -0.03556202,\n -0.062817916,\n 0.061138533,\n 0.020390859,\n - \ -0.0150123015,\n 0.008255064,\n 0.01822355,\n -0.06377108,\n - \ 0.025962317,\n 0.10521093,\n -0.030705433,\n 0.00090280897,\n - \ 0.065722786,\n 0.039306585,\n 0.06862766,\n -0.020390859,\n - \ -0.01173297,\n -0.05587345,\n 0.008198328,\n 0.029003358,\n - \ -0.055555727,\n 0.0033445773,\n 0.0019148344,\n 0.008447966,\n - \ 0.0053501893,\n -0.06876383,\n -0.031681288,\n 0.035017356,\n - \ 0.01429743,\n -0.03415497,\n 0.028458694,\n -0.032407507,\n - \ -0.043073844,\n 0.043164622,\n -0.025758069,\n -0.013548517,\n - \ 0.00268786,\n 0.06921772,\n -0.00045140448,\n -0.04693188,\n - \ 0.048838206,\n -0.0016070425,\n -0.005143103,\n -0.046069495,\n - \ -0.0024197833,\n 0.014081834,\n 0.061365478,\n -0.056055002,\n - \ -0.01974407,\n -0.04838432,\n 0.02210428,\n 0.024055993,\n - \ -0.036356322,\n -0.05383096,\n -0.014853441,\n -0.01473997,\n - \ -0.036265545,\n -0.0015956953,\n -0.034495387,\n -0.029502634,\n - \ 0.06272714,\n 0.02154827,\n -0.012447841,\n -0.015545619,\n - \ -0.042551875,\n 0.016192406,\n 0.00840825,\n -0.018325673,\n - \ 0.026529675,\n -0.03272523,\n -0.020810703,\n -0.021037648,\n - \ -0.010445067,\n -0.010104652,\n 0.03912503,\n -0.009401128,\n - \ 0.01269748,\n 0.024124077,\n -0.0050012637,\n -0.02419216,\n - \ -0.026121177,\n 0.020799356,\n -0.01397971,\n -0.028299833,\n - \ -0.024850296,\n 0.0017857604,\n 0.010064937,\n 0.012470536,\n - \ -0.011381208,\n -0.009066386,\n 0.029457245,\n -0.0016226448,\n - \ 0.018915728,\n -0.0046636853,\n -0.021060342,\n 0.0029474266,\n - \ -0.06449729,\n 0.056009613,\n 0.0053019635,\n 0.008113224,\n - \ -0.036605958,\n 0.021378063,\n -0.014081834,\n -0.03708254,\n - \ -0.011630846,\n -0.025145322,\n -0.010263512,\n 0.006796953,\n - \ 0.003066572,\n 0.009503252,\n -0.012515925,\n -0.016078936,\n - \ -0.030909682,\n 0.020050444,\n 0.07107865,\n -0.0064395173,\n - \ -0.0216277,\n 0.0012340044,\n 0.01197126,\n 0.022921277,\n - \ 0.02791403,\n 0.0392385,\n 0.0034977642,\n 0.02010718,\n - \ -0.0043289443,\n -0.055691894,\n 0.027142422,\n 0.020118527,\n - \ -0.038444202,\n 0.013287532,\n -0.004947365,\n 0.003880731,\n - \ 0.025780763,\n -0.004728932,\n -0.012901728,\n -0.0036282565,\n - \ 0.005503376,\n 0.011755665,\n -0.0017573924,\n 0.0027587798,\n - \ -0.023012053,\n 0.043073844,\n 0.023760967,\n -0.0168165,\n - \ -0.008493355,\n 0.006632419,\n 0.015625048,\n -0.052015413,\n - \ -0.011454965,\n -0.008221022,\n -0.020674538,\n -0.025621902,\n - \ -0.0049530384,\n -0.010490456,\n -0.03576627,\n 0.009395454,\n - \ -0.031772066,\n -0.018132772,\n 0.016748417,\n -0.021287285,\n - \ 0.0022850358,\n 0.035902437,\n -0.007148715,\n 0.006825321,\n - \ 0.035902437,\n 0.0103883315,\n -0.010479108,\n -0.004192778,\n - \ -0.009463537,\n 0.01914267,\n -0.024918377,\n 0.07067015,\n - \ 0.015761215,\n -0.006944466,\n -0.046477996,\n 0.0140137505,\n - \ 0.04498017,\n -0.008198328,\n 0.03345145,\n 0.028186362,\n - \ -0.0230234,\n -0.033633,\n -0.060185373,\n -0.021809254,\n - \ -0.03315642,\n -0.05378557,\n 0.021196507,\n 0.05514723,\n - \ 0.0005794147,\n 0.016317226,\n -0.018677436,\n 0.02607579,\n - \ 0.019914277,\n -0.026620453,\n -0.0032311056,\n -0.016634947,\n - \ 0.009667786,\n 0.023488635,\n -0.012379759,\n -0.036015905,\n - \ 0.013877585,\n 0.01581795,\n 0.026302733,\n -0.013332921,\n - \ 0.05137997,\n 0.056418113,\n -0.022490084,\n 0.0095826825,\n - \ -0.021797907,\n 0.027051644,\n 0.017440595,\n -0.0065019266,\n - \ -0.034813106,\n -0.05169769,\n -0.040373217,\n -0.0058437907,\n - \ 0.011585457,\n 0.021219201,\n 0.0097926045,\n -0.028935274,\n - \ -0.014342818,\n 0.05097147,\n 0.029820355,\n -0.013401004,\n - \ -0.020254692,\n 0.046409912,\n 0.03905695,\n -0.016203754,\n - \ 0.050154477,\n -0.008192655,\n -0.014932871,\n 0.025894234,\n - \ 0.010802503,\n 0.01059258,\n -0.009486231,\n -0.050835308,\n - \ -0.052968573,\n -0.03985125,\n -0.015851991,\n -0.045592915,\n - \ -0.022932624,\n -0.048202764,\n 0.010081958,\n 0.024714129,\n - \ -0.006167185,\n 0.03315642,\n 0.006184206,\n -0.034132276,\n - \ -0.021536922,\n 0.0032538,\n 0.03760451,\n 0.0063090245,\n - \ 0.00400555,\n 0.028050195,\n 0.035062745,\n 0.02466874,\n - \ 0.019324224,\n 0.011500353,\n -0.004467947,\n 0.027777864,\n - \ -0.05610039,\n -0.0669029,\n 0.012663438,\n -0.012549967,\n - \ -0.015647743,\n 0.008618173,\n -0.027437449,\n 0.038943477,\n - \ 0.03295217,\n 0.08142727,\n 0.024759518,\n -0.020651843,\n - \ -0.015988158,\n -0.02607579,\n 0.0062863305,\n 0.021332674,\n - \ -0.0018268939,\n -0.027891336,\n -0.003662298,\n 0.054194067,\n - \ -0.019959666,\n 0.013627947,\n -0.016510127,\n 0.008379882,\n - \ 0.035312384,\n -0.04634183,\n 0.016078936,\n 0.023897134,\n - \ 0.010978384,\n 0.020458942,\n 0.0009148653,\n 0.03488119,\n - \ -0.017520025,\n 0.036991764,\n -0.011948567,\n -0.054874897,\n - \ -0.0032027378,\n 0.0035771942,\n -0.027142422,\n 0.012062038,\n - \ 0.024282936,\n -0.024963766,\n 0.012039344,\n -0.00036594612,\n - \ -0.046205662,\n -0.025304182,\n -0.02367019,\n 0.024373714,\n - \ -0.015193856,\n 0.001831149,\n 0.0066210716,\n 0.043709286,\n - \ -0.00992877,\n 0.022138322,\n -0.039647,\n -0.03272523,\n - \ 0.028367916,\n -0.035335075,\n 0.06050309,\n -0.009219573,\n - \ -0.01833702,\n 0.02246739,\n 0.02519071,\n -0.010042243,\n - \ -0.009611051,\n -0.01850723,\n 0.01437686,\n 0.07539058,\n - \ -0.015466188,\n 0.008680582,\n 0.0056707463,\n -0.0058097495,\n - \ -0.010172735,\n -0.023715578,\n 0.030523878,\n 0.033088338,\n - \ -0.034767717,\n -0.06871844,\n 0.02130998,\n -0.032589063,\n - \ 0.0036424405,\n -0.031658594,\n 0.0008226696,\n 0.04513903,\n - \ -0.024124077,\n -0.005199839,\n 0.0022126974,\n 0.008232369,\n - \ -0.011585457,\n -0.03576627,\n 0.04797582,\n -0.0520608,\n - \ 0.019154018,\n -0.003594215,\n 0.043391567,\n -0.05174308,\n - \ 0.0015006628,\n -0.03256637,\n -0.0012581171,\n -0.044526283,\n - \ 0.052514687,\n -0.027460143,\n 0.004970059,\n 0.029366467,\n - \ -0.052560076,\n 0.003350251,\n -0.030001909,\n -0.0043629855,\n - \ -0.02607579,\n -0.038466893,\n -0.026824702,\n 0.034745023,\n - \ 0.0026821864,\n -0.0032906784,\n 0.008748665,\n 0.04237032,\n - \ -0.018053342,\n -0.038217258,\n 0.048792817,\n 0.034245748,\n - \ -0.027255895,\n -0.0062749833,\n -0.022807805,\n 0.009174184,\n - \ 0.015114426,\n -0.05718972,\n 0.025667291,\n 0.0055771326,\n - \ -0.014524373,\n -0.0009311769,\n -0.054057904,\n -0.0037644226,\n - \ 0.03383725,\n 0.00013448166,\n 0.040350523,\n -0.015466188,\n - \ 0.051606912,\n 0.004453763,\n 0.025621902,\n -0.005063673,\n - \ 0.055328786,\n -0.007551539,\n -0.004206962,\n 0.011914525,\n - \ 0.0728942,\n 0.03465425,\n -0.030342324,\n 0.0142066525,\n - \ 0.015806602,\n 0.056055002,\n -0.010263512,\n 0.007528845,\n - \ 0.03011538,\n -0.017043443,\n 0.024759518,\n -0.0069955285,\n - \ 0.012844993,\n -0.031091237,\n 0.011284757,\n 0.0037786064,\n - \ 0.020368164,\n 0.00070707034,\n 0.008714624,\n -0.007971385,\n - \ -0.0019502942,\n 0.03277062,\n 0.021378063,\n -0.054693345,\n - \ -0.017894482,\n 0.053694792,\n -0.0049870797,\n -0.0059062,\n - \ 0.012720174,\n 0.028640248,\n -0.019437697,\n -0.008618173,\n - \ 0.027460143,\n 0.012799604,\n 0.045978718,\n 0.008379882,\n - \ -0.01670303,\n -0.054693345,\n 0.011063487,\n 0.02984305,\n - \ 0.028163668,\n 0.0007474946,\n 0.066176675,\n -0.0052196966,\n - \ -0.008720297,\n -0.022092933,\n -0.00923092,\n 0.028889887,\n - \ 0.014762664,\n -0.019710029,\n 0.0036225829,\n -0.0077444413,\n - \ -0.020356817,\n -0.04330079,\n -0.0316359,\n -0.0024552431,\n - \ -0.006479232,\n -0.028640248,\n -0.0139683625,\n -0.018405104,\n - \ -0.029026052,\n -0.0047317683,\n 0.013673336,\n -0.042801514,\n - \ -0.026121177,\n 0.022762416,\n 0.031681288,\n -0.00816996,\n - \ -0.008351515,\n 0.034858495,\n -0.041099437,\n -0.045161724,\n - \ -0.02194542,\n 0.052923184,\n -0.04929209,\n 0.04209799,\n - \ 0.0045927656,\n -0.011778359,\n 0.0057927286,\n 0.07570829,\n - \ -0.044753224,\n -0.016839195,\n -0.053195518,\n -0.025848845,\n - \ 0.015261939,\n -0.0011127315,\n 0.04025975,\n -0.017588109,\n - \ -0.03560741,\n -0.007177083,\n -0.0044310684,\n -0.01209608,\n - \ 0.025576513,\n -0.0015616538,\n -0.0014737133,\n -0.007699053,\n - \ -0.021253243,\n -0.019267488,\n -0.0025701332,\n -0.045933332,\n - \ -0.0011942893,\n -0.028640248,\n -0.0064849057,\n -0.021151118,\n - \ 0.037218705,\n 0.009503252,\n 0.027028952,\n -0.015364064,\n - \ -0.007954364,\n -0.026733924,\n -0.021525575,\n -0.0404413,\n - \ 0.014558415,\n -0.011477659,\n 0.034086887,\n 0.009321697,\n - \ 0.015602354,\n -0.014751317,\n 0.027346672,\n -0.008952915,\n - \ 0.006791279,\n -0.018371062,\n -0.008238043,\n 0.043845452,\n - \ 0.023216303,\n -0.019244794,\n 0.00056523073,\n 0.014002403,\n - \ -0.007449415,\n -0.0027828927,\n -0.035493936,\n 0.008022447,\n - \ -0.01746329,\n -0.013900279,\n 0.013469087,\n 0.029366467,\n - \ -0.016521474,\n -0.022365265,\n -0.009474884,\n 0.008680582,\n - \ 0.057779774,\n 0.016725725,\n -0.018802255,\n -0.0009070641,\n - \ 0.03031963,\n 0.023579413,\n 0.032884087,\n -0.012629396,\n - \ -0.0065700095,\n 0.0066380925,\n 0.023760967,\n 0.033337977,\n - \ -0.017644845,\n -0.014331471,\n 0.014422249,\n -0.022966666,\n - \ -0.022660293,\n -0.015250592,\n 0.044185866,\n -0.006280657,\n - \ 0.01193722,\n -0.02322765,\n -0.0040679593,\n 0.032112483,\n - \ 0.0064395173,\n 0.054647956,\n -0.02807289,\n -0.01369603,\n - \ -0.02330708,\n -0.02118516,\n -0.0085841315,\n 0.04273343,\n - \ -0.008385556,\n 0.012152815,\n 0.042597264,\n 0.018246245,\n - \ -0.024804907,\n -0.017088832,\n -0.004998427,\n -0.03456347,\n - \ 0.0005911165,\n 0.014569762,\n -0.023715578,\n -0.015545619,\n - \ 0.020515677,\n 0.011250716,\n 0.043663897,\n 0.017724274,\n - \ -0.051243804,\n 0.010853565,\n 0.013185408,\n -0.056872,\n - \ 0.03367839,\n 0.006955813,\n -0.01746329,\n -0.007074958,\n - \ 0.024419103,\n 0.029820355,\n 0.007965711,\n -0.020447595,\n - \ -0.0038722206,\n -0.023375163,\n 0.05237852,\n 0.0061898795,\n - \ 0.0022297183,\n -0.018427799,\n 0.028458694,\n 0.019085934,\n - \ 0.007369985,\n -0.0073132487,\n 0.018371062,\n -0.018654741,\n - \ 0.024850296,\n 0.05315013,\n 0.008595479,\n -0.032906782,\n - \ 0.022558168,\n 0.014615151,\n 0.002622614,\n 0.014240694,\n - \ -0.012243593,\n 0.012447841,\n -0.014660539,\n -0.029003358,\n - \ 0.011846442,\n 0.034495387,\n 0.018371062,\n 0.011199653,\n - \ -0.019539822,\n -0.02907144,\n -0.033791862,\n 0.01778101,\n - \ -0.039079644,\n -0.029207608,\n -0.0043232706,\n -0.008742992,\n - \ 0.037944924,\n 0.01893842,\n -0.046273746,\n -0.015466188,\n - \ -0.0057473397,\n -0.008362862,\n -0.001641084,\n 0.027845947,\n - \ -0.04309654,\n 0.039669696,\n -0.009996854,\n 0.042302236,\n - \ 0.0072508394,\n 0.03976047,\n -0.0048140353,\n 0.02582615,\n - \ -0.010989731,\n 0.012947117,\n 0.0005173599,\n -0.03383725,\n - \ 0.02246739,\n -0.006848015,\n 0.029638799,\n -0.011245042,\n - \ -0.0013992474,\n -0.0120733855,\n -0.0112393685,\n -0.009559988,\n - \ 0.04761271,\n -0.027074339,\n 0.045592915,\n 0.022648945,\n - \ 0.017826399,\n 0.014263389,\n 0.018666089,\n -0.020742621,\n - \ -0.0019616415,\n 0.020368164,\n -0.017236346,\n 0.04513903,\n - \ -0.0051799817,\n 0.012050691,\n 0.0074153733,\n -0.0063090245,\n - \ -0.01249323,\n -0.007874934,\n 0.0008531651,\n 0.020402206,\n - \ 0.04348234,\n 0.0166236,\n 0.014842094,\n -0.04761271,\n - \ 0.005049489,\n 0.001504918,\n -0.0091061015,\n -0.010768461,\n - \ 0.020629149,\n -0.042188767,\n -0.0071146735,\n 0.036106683,\n - \ 0.010059264,\n -0.022989359,\n 0.013003853,\n 0.03252098,\n - \ 0.00862952,\n 0.024010604,\n 0.0019375287,\n 0.0011645029,\n - \ -0.005109062,\n -0.016305879,\n 0.018007953,\n 0.00026045294,\n - \ 0.009809625,\n 0.01269748,\n 0.036628652,\n -0.006989855,\n - \ -0.021525575,\n 0.020844745,\n 0.0037956273,\n 0.013060588,\n - \ 0.0014595293,\n 0.020243345,\n 0.01193722,\n 0.025145322,\n - \ -0.0030467142,\n -0.014047792,\n -0.01594277,\n 0.0476581,\n - \ -0.003472233,\n -0.029661493,\n 0.0053672097,\n 0.0160222,\n - \ 0.02367019,\n -0.03199901,\n -0.014660539,\n 0.012765562,\n - \ 0.012243593,\n -0.034472693,\n -0.0029729577,\n -0.005528907,\n - \ 0.018802255,\n 0.040577468,\n 0.017088832,\n 0.02047029,\n - \ -0.00031293358,\n -0.017610803,\n 0.008601152,\n 0.0520608,\n - \ 0.019573862,\n 0.016975362,\n -0.025735375,\n -0.0024694272,\n - \ 0.03320181,\n -0.0038778943,\n 0.0049757324,\n -0.0073586376,\n - \ 0.022864541,\n -0.017156916,\n -0.00672887,\n -0.0014878972,\n - \ -0.030501183,\n 0.008033794,\n -0.002619777,\n 0.0012836482,\n - \ 0.0015432147,\n 0.024033299,\n -0.008209675,\n 0.030818904,\n - \ 0.0045927656,\n 0.00596861,\n -0.0015006628,\n -0.02943455,\n - \ -0.01990293,\n 0.058460604,\n 0.033564918,\n 0.033542223,\n - \ -0.044072397,\n -0.031681288,\n 0.01589738,\n 0.03156782,\n - \ -0.00885079,\n -0.0024935398,\n -0.040350523,\n 0.0028325366,\n - \ 0.051153027,\n -0.0048707714,\n 0.047158826,\n -0.010859239,\n - \ -0.006893404,\n -0.009769911,\n 0.0006854398,\n -0.0324302,\n - \ 0.020685885,\n 0.033088338,\n -0.007840892,\n 0.024577962,\n - \ 0.008289105,\n -0.011676234,\n 0.014354166,\n 0.024759518,\n - \ 0.011869136,\n 0.024441797,\n 0.0018978136,\n 0.052877795,\n - \ 0.0077784825,\n 0.045025557,\n -0.020697232,\n 0.01497826,\n - \ -0.023159567,\n 0.06122931,\n 0.0070976526,\n -0.025304182,\n - \ -0.014399555,\n 0.0142520415,\n -0.038058396,\n -0.02947994,\n - \ -0.026461592,\n -0.024963766,\n 0.029252995,\n 0.05991304,\n - \ 0.0019658967,\n -0.013310227,\n 0.00049856614,\n 0.018858992,\n - \ 0.019494433,\n 0.0128790345,\n -0.0025162343,\n 0.010677684,\n - \ -0.009474884,\n 0.013525822,\n -0.013310227,\n -0.030705433,\n - \ -0.032452896,\n 0.025644597,\n -0.022807805,\n -0.007438068,\n - \ -0.005321821,\n -0.029933825,\n -0.013037895,\n -0.0037360545,\n - \ 0.010195429,\n 0.008533069,\n -0.03340606,\n -0.018416451,\n - \ 0.015341369,\n -0.00877136,\n 0.023602108,\n 0.020924175,\n - \ -0.009304676,\n -0.009395454,\n 0.036174767,\n -0.04466245,\n - \ -0.02330708,\n -0.013673336,\n 0.0073075755,\n 0.021605005,\n - \ 0.02070858,\n -0.0058494643,\n 0.025077239,\n 0.03671943,\n - \ 0.0150123015,\n -0.050290644,\n 0.037309483,\n -0.044526283,\n - \ 0.010660663,\n 0.02194542,\n 0.010473435,\n -0.016544169,\n - \ 0.027868642,\n 0.022853194,\n 0.020731274,\n 0.00026453083,\n - \ -0.0061104493,\n -0.009951465,\n -0.05001831,\n -0.028526777,\n - \ -0.021525575,\n 0.017792357,\n -0.0017971075,\n -0.01633992,\n - \ 0.020606454,\n 0.0019275999,\n -0.04021436,\n 0.005704788,\n - \ 0.028640248,\n 0.011131571,\n 0.0013644968,\n 0.043822758,\n - \ 0.021673089,\n -0.040078193,\n 0.03174937,\n 0.024237547,\n - \ 0.012618049,\n 0.03195362,\n 0.0034552123,\n -0.0024197833,\n - \ -0.016782459,\n 0.0046778694,\n -0.0027488512,\n 0.024850296,\n - \ -0.009032344,\n -0.021820601,\n -0.02582615,\n 0.013843543,\n - \ 0.0017602292,\n -0.011925872,\n 0.0050324686,\n -0.02943455,\n - \ -0.011108876,\n 0.010870585,\n -0.0013602416,\n 0.016453391,\n - \ 0.0040083867,\n 0.00025389285,\n -0.025145322,\n 0.03199901,\n - \ 0.0021517065,\n 0.011159939,\n -0.008924547,\n 0.049655203,\n - \ -0.005608337,\n 0.028027501,\n -0.030501183,\n -0.011466312,\n - \ -0.02314822,\n 0.01345774,\n 0.032929476,\n 0.0070182225,\n - \ -0.03787684,\n 0.026665842,\n 0.028458694,\n 0.036356322,\n - \ -0.0034580491,\n -0.011914525,\n 0.0057416665,\n 0.03184015,\n - \ 0.0054125986,\n 0.0027814743,\n -0.058732934,\n 0.0021744007,\n - \ 0.0035006008,\n 0.016430696,\n -0.005758687,\n 0.0015446331,\n - \ -0.006099102,\n -0.029752271,\n 0.0020481637,\n 0.05374018,\n - \ -0.046750326,\n -0.012118774,\n -0.01826894,\n 0.05142536,\n - \ 0.04761271,\n -0.0036821556,\n 0.028436,\n 0.007812524,\n - \ 0.0041644103,\n -0.03667404,\n -0.017758315,\n -0.0051345928,\n - \ 0.027210506,\n -0.024078688,\n -0.036356322,\n -0.0038353424,\n - \ 0.0059288945,\n -0.00989473,\n 0.02503185,\n 0.023170915,\n - \ -0.027369365,\n 0.0008361443,\n -0.034132276,\n 0.033814557,\n - \ 0.029184913,\n 0.018200856,\n -0.008896179,\n 0.016192406,\n - \ -0.0036878292,\n -0.021366715,\n 0.002981468,\n -0.01550023,\n - \ -0.012345717,\n -0.01233437,\n -0.014059139,\n -0.0073870053,\n - \ 0.022875888,\n -0.017599456,\n 0.006138817,\n 0.014422249,\n - \ -0.019256141,\n -0.035743576,\n 0.036900986,\n 0.024419103,\n - \ 0.025168017,\n 0.024396408,\n -0.054284845,\n 0.023397857,\n - \ -0.003719034,\n -0.0596861,\n 0.022875888,\n 0.053694792,\n - \ 0.006467885,\n 0.0444582,\n -0.009395454,\n -0.031204708,\n - \ 0.004402701,\n 0.0025843172,\n 0.0054636607,\n 0.053649403,\n - \ -0.020368164,\n -0.01081385,\n -0.01589738,\n 0.0009198297,\n - \ 0.017871788,\n 0.010178409,\n 0.028050195,\n -0.010252165,\n - \ -0.0053700465,\n 0.0029077115,\n 0.06354413,\n 0.0134463925,\n - \ -0.0035006008,\n -0.0056991144,\n -0.006360087,\n -0.014354166,\n - \ 0.017917177,\n -0.008464986,\n 0.00038686747,\n -0.017633498,\n - \ -0.011642193,\n 0.0006974962,\n 0.011437944,\n 0.030138075,\n - \ -0.011846442,\n -0.058596767,\n 0.013310227,\n 0.017361164,\n - \ -0.02503185,\n 0.0076309694,\n 0.022149669,\n -0.0023488635,\n - \ 0.012345717,\n -0.00018598716,\n -0.024532575,\n -0.009446517,\n - \ 0.01589738,\n 0.028821804,\n 0.023375163,\n -0.047839653,\n - \ 0.006411149,\n 0.02582615,\n 0.043958925,\n 0.008192655,\n - \ 0.015806602,\n -0.040622856,\n -0.02138941,\n -0.019687334,\n - \ -0.006757238,\n 0.016112976,\n 0.0644519,\n -0.02879911,\n - \ 0.04300576,\n 0.003892078,\n -0.011755665,\n -0.010161388,\n - \ 0.024782212,\n -0.03392803,\n -0.0070636114,\n -0.030614655,\n - \ -0.017156916,\n -0.010479108,\n 0.024646046,\n -0.0037757696,\n - \ 0.04357312,\n 0.0018084546,\n -0.018813603,\n -0.0053813937,\n - \ 0.016044894,\n -0.00035654925,\n -0.00931035,\n 0.017837746,\n - \ -0.004141716,\n -0.006791279,\n 0.031726677,\n -0.019233447,\n - \ 0.008572784,\n -0.0118124,\n 0.040191665,\n 0.0034977642,\n - \ -0.019721376,\n -0.02186599,\n -0.040759023,\n 0.0009155745,\n - \ -0.037763372,\n -0.0022226262,\n -0.027800558,\n -0.02943455,\n - \ -0.003960161,\n -0.027028952,\n 0.02022065,\n 0.018030647,\n - \ -0.025689986,\n -0.003957324,\n 0.00283821,\n -0.01089328,\n - \ -0.004022571,\n 0.0042977394,\n 0.017667538,\n -0.02791403,\n - \ -0.017996605,\n 0.0033842924,\n -0.014808052,\n 0.027573615,\n - \ -0.004561561,\n 0.016010853,\n 0.0071260207,\n -0.007931669,\n - \ -0.016090283,\n -0.031136625,\n 0.043278094,\n 0.039828554,\n - \ 0.03572088,\n 0.018132772,\n 0.005804076,\n 0.018166814,\n - \ 0.029162219,\n 0.028889887,\n 0.09368221,\n 0.013741419,\n - \ -0.031136625,\n -0.020969564,\n 0.030750822,\n -0.008896179,\n - \ -0.02194542,\n 0.025236098,\n 0.014263389,\n 0.015216551,\n - \ 0.013843543,\n 0.005327495,\n 0.019551167,\n 0.001143227,\n - \ -0.00070316973,\n 0.03351953,\n 0.042914983,\n 0.0018155467,\n - \ 0.05069914,\n -0.012277634,\n 0.0032793311,\n -0.025758069,\n - \ -0.029411856,\n 0.035017356,\n 0.012118774,\n 0.020867439,\n - \ 0.0005123955,\n -0.019641945,\n 0.017826399,\n -0.011103203,\n - \ 0.008527395,\n -0.02907144,\n 0.0049076495,\n 0.020141222,\n - \ -0.04865665,\n 0.030841598,\n -0.015375411,\n 0.0006191298,\n - \ -0.025758069,\n 0.03551663,\n 0.0010701796,\n -0.012470536,\n - \ -0.025553819,\n -0.011613825,\n -0.00945219,\n -0.0044707838,\n - \ -0.0003148839,\n -0.003265147,\n -0.015273286,\n 0.002941753,\n - \ -0.012799604,\n 0.045229807,\n -0.0015134284,\n 0.014422249,\n - \ -0.040078193,\n -0.020549718,\n 0.0017956891,\n -0.023375163,\n - \ 0.014944218,\n -0.0236248,\n 0.012470536,\n 0.007171409,\n - \ 0.02655237,\n 0.067992225,\n 0.0021970952,\n -0.023556719,\n - \ -0.023397857,\n -0.008459313,\n -0.011767012,\n -0.015965464,\n - \ -0.0042977394,\n -0.012799604,\n 0.020447595,\n -0.01429743,\n - \ 0.006343066,\n 0.005214023,\n 0.037899535,\n -0.03199901,\n - \ -0.04153063,\n 0.04209799,\n -0.01838241,\n -0.014615151,\n - \ 0.03833073,\n 0.0010886188,\n 0.03111393,\n -0.0444582,\n - \ -0.0042268196,\n -0.0031658595,\n 0.010286206,\n -0.033292588,\n - \ -0.012549967,\n 0.0074550887,\n 0.0060537136,\n 0.007960037,\n - \ 0.01809873,\n 0.014819399,\n 0.00073756586,\n 0.056962777,\n - \ 0.0014339982,\n 0.0388527,\n 0.03127279,\n 0.006167185,\n - \ -0.028027501,\n -0.014161264,\n 0.015488883,\n -0.04498017,\n - \ 0.025009155,\n -0.020129874,\n -0.01105214,\n 0.01698671,\n - \ 0.0011595386,\n 0.027074339,\n -0.0043743327,\n -0.016589558,\n - \ 0.0036169093,\n 0.007835219,\n 0.011364187,\n 0.016124323,\n - \ -0.018575313,\n 0.015556965,\n -0.0023190773,\n -0.027687086,\n - \ 0.04241571,\n -0.02943455,\n 0.0011772686,\n 0.04697727,\n - \ 0.008056488,\n 0.042166073,\n -0.035743576,\n 0.040668245,\n - \ 0.0025616228,\n -0.010649316,\n -0.0032509633,\n 0.00097018277,\n - \ 0.008374209,\n 0.036379017,\n 0.0067458907,\n -0.006116123,\n - \ -0.012016649,\n -0.0021517065,\n -0.003066572,\n 0.005049489,\n - \ -0.021831948,\n -0.033383366,\n 0.018609352,\n -0.049155924,\n - \ 0.022058891,\n -0.005378557,\n -0.003267984,\n -0.020368164,\n - \ -0.016634947,\n 0.005242391,\n -0.02739206,\n 0.023193609,\n - \ 0.016476085,\n -0.015398106,\n -0.014853441,\n -0.007874934,\n - \ 0.008391229,\n 0.02047029,\n 0.027573615,\n 0.011375534,\n - \ -0.032793313,\n -0.024736824,\n 0.0340415,\n -0.0011297523,\n - \ 0.03136357,\n 0.016283184,\n -0.03508544,\n 0.019846195,\n - \ -0.03256637,\n -0.025009155,\n -0.015250592,\n 0.027641699,\n - \ 0.014047792,\n 0.020288734,\n 0.012686132,\n 0.014320124,\n - \ -0.00029999073,\n -0.004059449,\n 0.0024594984,\n 0.0060423664,\n - \ -0.01710018,\n -0.0031034502,\n -0.01249323,\n 0.0021829112,\n - \ 0.026847396,\n -0.004519009,\n -0.016975362,\n 0.012527272,\n - \ 0.014478984,\n 0.03535777,\n 0.035266995,\n -0.013412351,\n - \ -0.016124323,\n 0.013208102,\n 0.03976047,\n -0.0168165,\n - \ -0.0074777827,\n 0.030138075,\n 0.010286206,\n -0.011216674,\n - \ 0.0063771075,\n 0.06771989,\n -0.018756866,\n 0.025463043,\n - \ -0.010728746,\n -0.02727859,\n 0.0078068506,\n 0.040713634,\n - \ 0.012720174,\n -0.010064937,\n -0.0029871417,\n -0.0007567142,\n - \ -0.02991113,\n -0.0063544135,\n -0.007301902,\n 0.0048282193,\n - \ 0.02387444,\n -0.0019261815,\n -0.00009503252,\n -0.024532575,\n - \ 0.019176712,\n -0.006564336,\n 0.0058891797,\n 0.001175141,\n - \ -0.035947826,\n -0.0352443,\n -0.0015999505,\n -0.028776415,\n - \ -0.023420552,\n 0.019846195,\n 0.0005861521,\n -0.01950578,\n - \ 0.047385767,\n 0.0015829297,\n 0.0088224225,\n -0.016487433,\n - \ -0.038421508,\n 0.03195362,\n 0.009015324,\n 0.027528226,\n - \ -0.009662112,\n -0.012652091,\n 0.0128790345,\n 0.029343773,\n - \ -0.015647743,\n 0.00514594,\n 0.048248153,\n 0.019256141,\n - \ 0.005128919,\n 0.01762215,\n 0.008334494,\n -0.033383366,\n - \ 0.018325673,\n 0.024124077,\n -0.018450493,\n 0.016952667,\n - \ -0.014478984,\n 0.018927073,\n 0.027437449,\n 0.0071146735,\n - \ 0.00045034068,\n 0.012765562,\n -0.020697232,\n 0.032543674,\n - \ -0.037581816,\n 0.003321883,\n -0.018132772,\n -0.034813106,\n - \ 0.007665011,\n -0.005923221,\n -0.017474636,\n -0.03755912,\n - \ -0.044390116,\n 0.037854146,\n -0.009735869,\n 0.015398106,\n - \ 0.00207795,\n 0.002314822,\n 0.00598563,\n 0.013571211,\n - \ 0.0012808114,\n -0.03560741,\n -0.01950578,\n 0.0031233076,\n - \ 0.0036112359,\n -0.0046920534,\n 0.0115968045,\n 0.017871788,\n - \ 0.0516523,\n -0.0042636977,\n 0.025258793,\n 0.023102831,\n - \ 0.015795255,\n -0.021491533,\n 0.01029188,\n -0.026575064,\n - \ -0.012776909,\n -0.02650698,\n -0.011494679,\n -0.016044894,\n - \ 0.00020105761,\n -0.0029701209,\n 0.005270759,\n -0.017871788,\n - \ 0.02991113,\n -0.015103078,\n 0.006019672,\n -0.023420552,\n - \ 0.031681288,\n -0.005389904,\n -0.009457864,\n 0.03944275,\n - \ 0.028209057,\n -0.010967037,\n 0.0038778943,\n 0.0027545248,\n - \ 0.0026921153,\n -0.00598563,\n -0.04441281,\n -0.014887483,\n - \ 0.029820355,\n -0.012833646,\n -0.020368164,\n -0.006876383,\n - \ -0.008674909,\n 0.03451808,\n 0.010252165,\n -0.020742621,\n - \ 0.00726786,\n -0.017236346,\n 0.01809873,\n 0.01809873,\n - \ 0.024441797,\n 0.011562763,\n -0.017349819,\n 0.0005187783,\n - \ -0.05991304,\n 0.018291632,\n 0.0072621866,\n -0.012731521,\n - \ 0.016759764,\n -0.03969239,\n 0.0019417839,\n 0.0035431527,\n - \ -0.00062444876,\n 0.0038864047,\n 0.033428755,\n -0.012062038,\n - \ 0.018484535,\n -0.043550424,\n 0.004655175,\n 0.0013793899,\n - \ -0.010620948,\n -0.01730443,\n 0.0025034687,\n 0.019891582,\n - \ -0.01822355,\n -0.03592513,\n 0.01285634,\n -0.01293577,\n - \ 0.006252289,\n -0.010274859,\n -0.009588356,\n -0.018302979,\n - \ -0.017168263,\n 0.029548021,\n -0.036152072,\n 0.00931035,\n - \ -0.0046353177,\n -0.03027424,\n -0.011925872,\n 0.025553819,\n - \ 0.0050041005,\n -0.030864293,\n 0.0013340013,\n 0.030569267,\n - \ -0.01051315,\n 0.038534977,\n -0.045161724,\n 0.008697603,\n - \ 0.0027148097,\n -0.008969936,\n 0.039783165,\n 0.025304182,\n - \ 0.029933825,\n 0.020595107,\n 0.04513903\n ]\n - \ }\n ],\n \"model\": \"text-embedding-3-small\",\n \"usage\": {\n \"prompt_tokens\": - 4,\n \"total_tokens\": 4\n }\n}\n" + string: |- + { + "object": "list", + "data": [ + { + "object": "embedding", + "index": 0, + "embedding": [ + -0.0046182093, + 0.003616477, + 0.012347229, + -0.026422685, + -0.025347343, + 0.023401486, + -0.0131857395, + 0.0063720406, + -0.0106510045, + -0.008269891, + 6.240823e-05, + 0.008986785, + 0.0032196247, + -0.01349298, + 0.010862233, + 0.0010697411, + 0.009050794, + -0.014363495, + 0.02099477, + -0.0100045195, + -0.0024083178, + 0.013928237, + 0.01691103, + 0.0058023655, + 0.01623254, + -0.0012569658, + -0.0060039917, + -0.015643664, + -0.0036068757, + -0.0021698861, + -0.00021942894, + -0.002600343, + -0.018127192, + -0.027677251, + 0.002941188, + -0.010715013, + 0.0016178134, + -0.013582592, + -0.009140406, + -0.0032692312, + -0.029392676, + 0.0075081903, + -0.0034756584, + -0.0379186, + 0.015643664, + 0.022774205, + 0.012769684, + -0.018511241, + -0.018920897, + 0.011207879, + 0.021775672, + 0.023004634, + -0.0009977316, + -0.010894237, + 0.004973456, + -0.005888777, + -0.027856475, + -0.008583532, + 0.042040747, + -0.023324676, + -0.0031348134, + -0.0031348134, + -0.013736212, + 0.0065928698, + -0.014337891, + 0.00386611, + 0.008026659, + 0.026166651, + -0.015950903, + 0.009422042, + 0.028189318, + 0.02941828, + -0.0041573485, + 0.0065672663, + 0.009050794, + -0.010862233, + -0.008257089, + -0.022249335, + -0.015349224, + 0.012744081, + 0.0056999517, + -0.013582592, + -0.0310825, + 0.026320271, + 0.021314811, + -0.0077898274, + -0.011150271, + 0.00090731966, + -0.0024947291, + 0.0044837915, + 0.011559925, + 0.020277875, + 0.0030692047, + -0.0065000574, + -0.005594338, + 0.0006016794, + -0.0066824816, + 0.029469486, + -0.0030307998, + -0.034129303, + -0.003373245, + -0.004419783, + -0.026397081, + -0.004973456, + -0.023683123, + 0.015016381, + -0.00074929884, + 0.014209874, + 0.027677251, + -0.0016882226, + -0.01834482, + -0.01911292, + 0.023990365, + -0.020034643, + 0.00055687345, + -0.009217216, + 0.002115479, + 0.00174423, + -0.015323621, + -0.016155731, + 0.01774314, + 0.011975979, + 0.019394558, + -0.016847022, + 0.013556988, + 0.0011777553, + -0.012616064, + -0.032388274, + 0.003206823, + -0.014542718, + 0.016578186, + 0.009716482, + -0.0049158484, + 4.588105e-05, + 0.0036676838, + 0.002995595, + -0.038481876, + 0.0012161604, + -0.00043685763, + -0.016398963, + 0.0054183146, + 0.023695925, + 2.5903417e-05, + -0.025680188, + -0.01432509, + 0.028778195, + 0.013057723, + 0.00034084497, + 0.01038217, + -0.011547123, + 0.020201065, + -0.021340415, + 0.006836102, + -0.022607783, + -0.01917693, + 0.017192667, + 0.0077834264, + 0.013352161, + 0.0023603113, + -0.006400844, + -0.0026515496, + 0.003760496, + 0.016360559, + -0.013966642, + 0.025347343, + 0.017935166, + -0.0045830044, + -0.030903276, + 0.008308296, + 0.012776085, + -0.012385634, + 0.02190369, + -0.006490456, + 0.016808618, + -0.00030364006, + 0.04009489, + -0.010996651, + 0.0008857168, + -0.0011049458, + -0.010222148, + -0.026627513, + -0.0013561789, + 0.004979857, + -0.0028787798, + -0.003744494, + 0.0034820593, + 0.01645017, + -0.0016274146, + 0.030724052, + -0.02039309, + 0.02356791, + 0.0070793335, + -0.0015137997, + -0.009146807, + -0.66978437, + -0.010900638, + -0.012334427, + -0.021878086, + 0.019420162, + 0.010420575, + 0.018178398, + 0.013147335, + -0.015298018, + -0.010068528, + -0.027549233, + 0.025577774, + -0.019125722, + -0.008090667, + -0.008449115, + -0.012007983, + -0.005021462, + 0.016296549, + 0.022620583, + -0.011956777, + -0.034154907, + 0.023811141, + 0.024143985, + 0.02941828, + 0.028522162, + -0.012686473, + 0.027882077, + -0.013620997, + -0.021775672, + 0.006007192, + -0.017231073, + -0.0060936036, + 0.010452579, + 0.0113743, + 0.03796981, + -0.03494861, + -0.018677663, + 0.012091195, + 0.012756882, + 0.021084381, + 0.02009865, + 0.010356566, + 0.018204002, + -0.021634854, + 0.008161076, + 0.015605259, + 0.022569377, + -0.014171469, + -0.011182275, + -0.021775672, + 0.0019506573, + -0.005799165, + -0.025360145, + 0.0045670024, + -0.00043405726, + -0.019804211, + 0.027011562, + -0.029162247, + 0.01728228, + 0.015899697, + -0.0076234057, + 0.014222676, + -0.03679205, + -0.028675782, + -0.005322302, + 0.022121318, + -0.014389098, + 0.021750068, + -0.00042485603, + -0.008321097, + 0.0136466, + 0.0026963556, + -0.005223089, + -0.003373245, + 0.01447871, + 0.009102001, + 0.020789942, + -0.00087371527, + -0.0028339738, + -0.009204414, + 0.030698448, + 0.0021826879, + -0.01758952, + 0.005171882, + 0.018139992, + -0.040760577, + -0.015067588, + 0.01068941, + -0.016706204, + -0.008737152, + 0.012539254, + 0.04839038, + -0.0051430785, + 0.01637336, + 0.002144283, + -0.0073737726, + 0.0042021545, + 0.014453107, + -0.002085075, + -0.036433607, + 0.016462972, + 0.0013145733, + 0.019957833, + -0.0128913, + 0.026960356, + -0.0006404845, + -0.028522162, + 0.013275351, + 0.03569111, + -0.043704964, + 0.016053317, + 0.0020562713, + -0.023401486, + 0.011124668, + -0.0023363081, + -0.018204002, + -0.0019442565, + 0.0036804855, + 0.012398436, + -0.03167138, + -0.003328439, + 0.012916904, + 0.0181912, + -0.008429912, + -0.0144915115, + 0.006308032, + 0.015797284, + -0.023465496, + -0.0012897701, + -0.012321625, + -0.013608195, + 0.004807034, + 0.012136001, + 0.0020498703, + 0.021481233, + 0.021033173, + 0.025833808, + 0.009274824, + 0.0046918187, + -0.009716482, + -0.018664861, + -0.024912085, + -0.0072969627, + -0.0036932873, + -0.007104937, + -0.026883546, + -0.009940512, + -0.019458566, + -0.043704964, + 0.009005988, + -0.011489515, + -0.007777026, + -0.019740203, + 0.013275351, + -0.0014521915, + -0.008244287, + -0.014056254, + -0.016808618, + -0.0042181564, + -0.023311876, + 0.025104111, + 0.026883546, + -0.0138386255, + 0.0016066119, + 0.0044933925, + -0.010926241, + -0.024054373, + 0.017448701, + -0.017384693, + -0.03208103, + 0.017922364, + -0.014235478, + 0.014350693, + 0.0031412144, + 0.014337891, + 0.026576305, + -0.01728228, + -0.008404309, + 0.012385634, + -0.012827292, + -0.021954896, + 0.005616741, + 0.015899697, + -0.011233482, + 0.025488162, + -0.011630334, + 0.037252914, + 0.0026867543, + -0.02448963, + 0.0045958064, + 0.015003579, + -0.0002092276, + 0.00045045943, + -0.007892241, + -0.004435785, + 0.0014129864, + -0.01569487, + 0.016936634, + 0.008269891, + 0.01623254, + 0.025488162, + 0.01766633, + 0.015234009, + -0.0023539106, + 0.011745549, + -0.022518171, + 0.014645131, + -0.027113976, + 0.051513996, + 0.017179865, + 0.013134533, + -0.017487107, + 0.0197146, + -0.010548592, + 0.009716482, + 0.03192741, + 0.01598931, + -0.0076234057, + 0.01554125, + 0.033694044, + 0.007719418, + 0.010702211, + -0.008468317, + -0.016923832, + -0.024976095, + 0.010971047, + 0.01114387, + -0.0026867543, + 0.0017410297, + -0.027267596, + -0.0045990064, + -0.019791411, + 0.010868633, + 0.025936222, + 0.02039309, + 0.0011673539, + -0.0047974326, + -0.02319666, + 0.012987313, + -0.0024195192, + -0.0021698861, + 0.019023309, + 0.029392676, + 0.00017552315, + 0.028317334, + 0.005482323, + 0.037406534, + 0.0008697147, + -0.005680749, + -0.00021242801, + -0.0066056713, + -0.0062984307, + -0.034590162, + 0.011559925, + 0.013467376, + -0.025001697, + -0.0022690992, + 0.0023155054, + -0.008929178, + 0.022543773, + 0.0058695744, + 0.02017546, + 0.0043493737, + -0.015746078, + 0.024464026, + -0.017615123, + -0.010817427, + 0.008365903, + -0.004131745, + -0.014837157, + 0.006548064, + -0.02783087, + 0.007642608, + -0.024079977, + 0.0010753418, + -0.02176287, + -0.004896646, + -0.006103205, + -0.013505781, + -0.008244287, + -0.0071817474, + -0.054791227, + 0.01228322, + 0.026217857, + -0.0008481119, + -0.0020306678, + -0.010676608, + 0.015041984, + -0.03722731, + 0.042015143, + 0.010977448, + 0.0145043135, + -0.0013601794, + 0.0017554315, + -0.016795816, + -0.024105579, + 0.005719154, + -0.011361498, + 0.016104525, + 0.008161076, + -0.0039525214, + -0.010068528, + 0.005555933, + 0.017295081, + 0.036510415, + 0.017141461, + -0.008429912, + 0.015707672, + -0.019087318, + -0.011169474, + -0.00079730514, + -0.023542305, + -0.0036388799, + 0.018306416, + -0.0073865745, + 0.012225613, + -0.0023635118, + -0.007841034, + 0.019688997, + -0.0014945972, + -0.0049766563, + -0.019202532, + -0.009441245, + -0.027498027, + 0.0659543, + 0.012347229, + 0.01266727, + 0.007540195, + 0.028445352, + -0.008890772, + -0.015221207, + 0.013313756, + 0.0001259166, + 0.0001872247, + 0.00045165958, + -0.0075529963, + 0.005754359, + 0.02539855, + 0.0042629624, + 0.011655938, + -0.009089199, + -0.035588693, + 0.0045445994, + -0.00033384404, + 0.009524456, + -0.007111338, + -0.002318706, + 0.039890062, + 0.012616064, + 0.002025867, + 0.012340828, + 0.004419783, + 0.032413874, + -0.02372153, + -0.003910916, + 0.004951053, + -0.023030238, + 0.00060007913, + 0.015592457, + -0.004512595, + -0.0021250802, + -0.0010705412, + 0.029469486, + -0.0042053545, + 0.029623108, + -0.0112910895, + 0.0037764981, + -0.011156672, + 0.00970368, + 0.0022771005, + -0.0034980613, + 0.03505102, + -0.01189917, + -0.010862233, + 0.013467376, + 0.006772093, + -0.002024267, + -0.02176287, + -0.019586584, + -0.0011665538, + 0.007821832, + 0.007028127, + 0.007693815, + -0.016859824, + 0.0021618851, + -0.0028179716, + 0.0061960174, + -0.016194137, + -0.0013881831, + -0.02319666, + -0.006525661, + -0.008026659, + -0.047801506, + -0.019573782, + 0.0030900075, + -0.023593511, + -0.021173993, + 0.013076925, + 0.01387703, + 0.0059399833, + -0.004109342, + 0.0013769816, + 0.004518996, + 0.01121428, + 0.007777026, + 0.0018866488, + -0.03692007, + -0.014542718, + 0.012808089, + 0.019228136, + 0.02737001, + -0.024796871, + -0.012456043, + 0.004525397, + 0.021314811, + 0.015349224, + 0.030135175, + 5.935783e-05, + 0.007988254, + -0.00021762871, + 0.0038757112, + 0.0042117555, + -0.010055726, + 0.003600475, + 0.01940736, + -0.020649124, + 0.010983849, + -0.0063368357, + 0.024592044, + -0.0074249795, + -0.007937047, + 0.015682068, + -0.04808314, + -0.01735909, + 0.002865978, + -0.0042565614, + 0.0050470657, + -0.020188263, + -0.025308939, + 0.042578418, + 0.017192667, + 0.01403065, + -0.013313756, + -0.004390979, + -0.0067656925, + -0.012161604, + 0.011783955, + 0.01084303, + 0.01797357, + 0.020828348, + 0.00735457, + -0.013518583, + -0.034231715, + 0.00060848024, + 0.008026659, + 0.007930646, + -0.009223617, + -0.004198954, + -0.01940736, + 0.0048198355, + 0.0151443975, + -0.0033540423, + -0.003214824, + -0.007687414, + 0.009159608, + -0.0132241445, + -0.011099064, + -0.015041984, + -0.018178398, + -0.026115445, + 0.009466848, + -0.019765807, + -0.0075721988, + 0.011003051, + -0.0080586625, + -0.00085451273, + -0.018536845, + -0.005072669, + -0.041119024, + -0.02319666, + -0.039915666, + -0.0071433424, + 0.018652061, + 0.009268423, + 0.010977448, + 0.007930646, + 0.03889153, + 0.017167063, + -0.0036644833, + -0.018856887, + 0.0067656925, + -0.0060904035, + -0.023299074, + 0.023708727, + 0.025411353, + 0.027677251, + -0.016962238, + -0.017807148, + 0.007264958, + 0.018408827, + 0.005632743, + -0.00644245, + 0.0077578234, + -0.017192667, + -0.01129749, + -0.004829437, + -0.004176551, + 0.001661019, + -0.009044393, + -0.022198128, + 0.056276225, + 0.010030123, + -0.0036900868, + 0.00065368623, + 0.032490686, + 0.007834634, + 0.02137882, + 0.0025491363, + -0.018152794, + -0.033694044, + -0.024438424, + -0.00041005408, + -0.0067144856, + 0.0034820593, + 0.0024995296, + -0.006407245, + 0.0018994506, + -0.01660379, + 0.0059143803, + 0.015886895, + -0.0023363081, + 0.006541663, + -0.00044005804, + -0.027088372, + -0.015285216, + -0.010330963, + -0.017960768, + -0.026832338, + 0.00795625, + 0.0045670024, + -0.026179453, + 0.020341882, + -0.022172524, + -0.013544186, + 0.007834634, + 0.019420162, + 0.017986372, + -0.0105997985, + 0.05745398, + 0.010286157, + 0.010663806, + -0.01691103, + -0.010881435, + -0.0031636173, + -0.003904515, + 0.03768817, + -0.021750068, + -0.005543131, + -0.033028357, + -0.0030804062, + -0.013096128, + 0.021494035, + 0.0021490834, + 0.026550703, + 0.010887836, + 0.003214824, + -0.017192667, + -0.00079090433, + -0.0257826, + 0.040222906, + -0.018434431, + 0.013339359, + -0.010663806, + -0.006362439, + -0.0416823, + 0.012308824, + -0.0045061945, + 0.046342112, + 0.016642194, + -0.003962123, + -0.019023309, + 0.008845967, + 0.0003956522, + -0.01038217, + 0.0031412144, + -0.002267499, + -0.02737001, + 0.015784482, + 0.0005160681, + 0.013749014, + 0.004406981, + 0.0052646943, + -0.0054695215, + 0.02139162, + -0.016053317, + -0.02888061, + 0.0030516025, + 0.025155319, + -0.0012457643, + 0.0087179495, + 0.0014921968, + 0.0035492682, + -0.017256675, + -0.029827934, + 0.020380288, + 0.00803306, + 0.008749954, + -0.021852482, + -0.008820363, + -0.009671676, + -0.0333612, + -0.005139878, + -0.0112526845, + -0.009895706, + -0.028752593, + -0.010606199, + -0.014107461, + 0.0197146, + 0.008673144, + -0.029520694, + 0.0023747133, + 0.005322302, + -0.01508039, + 0.021084381, + -0.011099064, + 0.02698596, + -0.030186381, + 0.01008773, + -0.005194285, + -0.010465381, + 0.025577774, + -0.010490984, + -0.007488988, + -0.035153437, + -0.010734215, + 0.020047445, + -0.01752551, + 0.0093452325, + 0.042655226, + -0.002517132, + 0.006352838, + 0.0026211457, + -0.00091932126, + 0.030340001, + -0.0028003694, + -0.013889832, + 0.02221093, + -0.0011681541, + 0.010721414, + -0.0020498703, + 0.0052198884, + 0.0031396141, + -0.0065096584, + -0.008941979, + 0.0128913, + 0.020457098, + 0.0007108938, + 0.0051526795, + -0.033924475, + -0.024272002, + -0.009671676, + 0.011233482, + 0.006301631, + -0.004237359, + 0.011700743, + 0.030826466, + 0.0257698, + -0.019279342, + -0.003971724, + 0.009550059, + -0.01463233, + -0.004653414, + -0.018063182, + -0.001789036, + -0.02872699, + 0.02570579, + -0.0049318504, + -0.01834482, + -0.026781132, + 0.016859824, + -0.019753005, + 0.0057735615, + -0.0017266277, + 0.011163073, + 0.009966115, + 0.02532174, + 0.010753418, + 0.029674314, + -0.0033380403, + 0.007348169, + -0.008596334, + -0.006490456, + 0.0072969627, + 0.0059367833, + 0.0018306414, + -0.027523631, + -0.028112508, + 0.007693815, + 0.01630935, + -0.008557929, + -0.010734215, + 0.010266954, + -0.016053317, + -0.0024051173, + -0.018984905, + 0.006244024, + 0.012596861, + 0.024246398, + 0.0010073328, + -0.033335596, + 0.0031316131, + 0.01387703, + 0.008404309, + -0.01273768, + -0.0042245574, + -0.015746078, + 0.012968111, + 0.0009569262, + -0.01917693, + -0.011815959, + 0.011585528, + -0.026704323, + 0.004768629, + 0.009242819, + -0.0026259464, + 0.010426975, + 0.0026643514, + -0.004695019, + -0.0145171145, + -0.017000642, + -0.013403368, + 0.017231073, + 0.0028755793, + -0.0059015783, + 0.0032340265, + -0.039992474, + -0.009838098, + -0.023286272, + 0.014337891, + -0.02737001, + -0.01637336, + -0.024028769, + 0.024348812, + 0.033105165, + -0.012091195, + -0.0014385898, + -0.020226669, + -0.013608195, + 0.0019874622, + 0.006035996, + -0.0012761683, + -0.010074929, + -0.0031428146, + 0.011105465, + -0.016475772, + -0.026038634, + 0.013441773, + 0.013428971, + -0.013608195, + 0.025564972, + 0.1978629, + 0.011707144, + -0.009159608, + 0.045369186, + -0.021135587, + 0.039890062, + 0.020930761, + 0.020789942, + 0.0046342113, + 0.0132241445, + -0.018767275, + 0.020354684, + -0.016590988, + 0.005034264, + -0.0021826879, + -0.0010825428, + -0.027549233, + -0.013428971, + 0.004829437, + -0.011687942, + 0.0067528905, + -0.005191085, + -0.030800862, + -0.009300427, + 0.03092888, + -0.017039048, + -0.03927558, + -0.0041893525, + -0.011617532, + -0.0001304172, + -0.0036964875, + 0.008365903, + -0.008468317, + 0.017346287, + -0.019868221, + -0.01623254, + -0.002888381, + -0.02290222, + 0.021109985, + 0.037560154, + -0.005527129, + 0.026038634, + 0.016168533, + -0.024143985, + 0.0034436542, + 0.038635496, + -0.002237095, + 0.0018642459, + -0.0086859455, + 0.018293614, + -0.002381114, + 0.009082798, + 0.015298018, + 0.054688815, + 0.013480178, + 0.0060007917, + 0.029111039, + 0.017883958, + 0.008001056, + 0.004464589, + -0.018639259, + 0.0295719, + -0.0012521652, + -0.003025999, + -0.013672204, + 0.019266542, + -0.03328439, + 0.026397081, + 0.025449757, + -0.008807561, + 0.019087318, + -0.031133706, + -0.019087318, + -0.0039301184, + -0.032337066, + -0.023209462, + 0.022044508, + -0.01152792, + 0.01849844, + 0.03313077, + -0.016578186, + 0.0036964875, + -0.02615385, + -0.00042405594, + -0.013672204, + -0.023081444, + 0.009332431, + 0.020226669, + -0.013300954, + 0.019919427, + -0.0166806, + -0.014337891, + -0.00041605489, + -0.010542191, + 0.032004222, + 0.0010097332, + -0.0029843936, + 0.0112910895, + -0.0072969627, + 0.0075850002, + -0.0037572957, + 0.003933319, + 0.01016454, + -0.009908507, + -0.007770625, + -0.011591929, + -0.01857525, + 8.066064e-05, + 0.016667798, + 0.010663806, + -0.006317633, + -0.018280812, + -0.0016770212, + -0.024220794, + -0.0061128065, + 0.0035076626, + 0.020405892, + 0.0039013147, + 0.052742958, + 0.004615009, + -0.013787419, + -0.0020146656, + -0.0069641187, + 0.009799693, + -0.004080538, + -0.03553749, + -0.034538954, + 0.010343764, + 0.0049542533, + -0.04004368, + 0.007943448, + 0.005104673, + -0.014363495, + -0.012872098, + -0.009262022, + 0.035204645, + 0.011579127, + -0.009838098, + -0.025232129, + -0.0054631205, + 0.0356399, + -0.004000528, + -0.0022931024, + 0.005703152, + -0.0098509, + -0.031799395, + 0.036408003, + -0.013800221, + -0.030621639, + -0.0059303823, + 0.00049566536, + -0.007444182, + 0.017627925, + 0.017755942, + 0.03533266, + 0.016629394, + -0.018216804, + -0.009793292, + -0.018434431, + 0.02327347, + -0.012065591, + -0.0011681541, + 0.021801276, + -0.02629467, + -0.0060936036, + 0.01977861, + -0.16253024, + 0.009774089, + 0.0004086539, + -0.023209462, + 0.016885428, + 0.020354684, + 0.022185326, + 0.015349224, + -0.014747545, + 0.0049158484, + 0.03569111, + 0.0219805, + -0.036177572, + -0.0025155318, + -0.01403065, + -0.018063182, + -0.011790355, + 0.0069513167, + -0.005725555, + 0.009863701, + 0.015234009, + -0.022799807, + 0.00917241, + -0.02242856, + 0.010644604, + 0.008711549, + -0.018856887, + 0.023363082, + -0.02032908, + -0.002685154, + -0.00019222536, + -0.0004428584, + 0.028163714, + -0.0044165826, + 0.002888381, + 0.032644305, + 0.0018786478, + -0.019688997, + -0.023772735, + 0.009812494, + 0.010426975, + 0.015490043, + 0.0045606014, + 0.015592457, + -0.0075145913, + 0.012340828, + 0.024924887, + -0.006906511, + 0.01045898, + -0.02737001, + -0.01561806, + -0.026934752, + -0.008801161, + 0.0019250539, + 0.011745549, + 0.023619115, + 0.009134005, + 0.0039013147, + 0.015976507, + -0.000447259, + -0.019893823, + -0.0067976965, + -0.015246811, + -0.03556309, + 0.024553638, + -0.003472458, + -0.01349298, + 0.0028547766, + -0.017768744, + 0.017691934, + -0.021122785, + -0.0093452325, + -0.009012389, + -0.020521106, + -0.014094659, + 0.0125584565, + -0.02244136, + 0.0181912, + -0.010407773, + -0.0039301184, + -0.008135473, + 0.0272932, + -0.03351482, + 0.0017154262, + 0.008090667, + -0.00049926585, + -0.021263605, + 0.010260553, + -0.0005440718, + 0.0026627511, + 0.021097183, + -0.02032908, + -0.0029155845, + -0.024207992, + 0.051462788, + 0.02721639, + -0.005776762, + 0.016667798, + -0.0021170792, + 0.019893823, + 0.014798752, + -0.011393502, + -0.023107048, + 0.0065064584, + 0.034308527, + 0.032106634, + 0.015630862, + 0.0067656925, + 0.049747363, + -0.0037412934, + -0.00098493, + 0.0054535195, + 0.013300954, + 0.01008773, + 0.0021426827, + 0.024438424, + 0.0012833693, + -0.042040747, + 0.012315224, + -0.012315224, + 0.030032761, + 0.017384693, + -0.007828233, + 0.015003579, + 0.004115743, + -0.022991832, + -0.08454235, + -0.033642836, + 0.030596036, + 0.030340001, + -0.003328439, + 0.017307883, + 0.012174406, + 0.022761403, + -0.0007841034, + 0.016142929, + -0.01296171, + -0.019010507, + 0.0011937574, + -0.018204002, + 0.044677895, + -0.0008049062, + -0.011662338, + -0.018460035, + -0.026345875, + -0.012955309, + 0.019343352, + 0.0001614213, + -0.015822887, + -0.003155616, + -0.015566853, + 0.0066120722, + -0.01940736, + 0.020060247, + 0.0067528905, + 0.0053030993, + 0.00787944, + -0.016130127, + 0.0037764981, + -0.014286685, + -0.011207879, + -0.01720547, + -0.017717537, + 0.013710609, + 0.024131183, + -0.0034276522, + 0.01903611, + 0.005949585, + 0.02464325, + -0.024592044, + 0.008429912, + -0.016706204, + -0.0013129732, + 0.007156144, + -0.0086923465, + -0.024796871, + 0.010439777, + -0.005680749, + -0.03599835, + 0.015861291, + -0.008449115, + -0.009511654, + 0.016027713, + 0.02190369, + -0.0021426827, + 0.016245343, + -0.029136643, + 0.019765807, + 0.000970528, + 0.012872098, + 0.007873039, + 0.019548178, + -0.023439892, + 0.0053959116, + 0.009799693, + -0.015374828, + 0.009050794, + 0.021109985, + -0.019087318, + 0.006164013, + -0.022185326, + 0.0059783887, + -0.03100569, + 0.0151443975, + -0.018703267, + -0.02698596, + -0.029981555, + -0.018984905, + -0.028214922, + -0.0020018641, + 0.010036523, + 0.017935166, + -0.002214692, + -0.01303852, + -0.007520992, + -0.018434431, + 0.01372341, + 0.036561623, + -0.00082970946, + -0.031850602, + -0.022492567, + 0.013774617, + -0.018767275, + -0.0099917175, + 0.0099789165, + -0.0021186795, + -0.03510223, + -0.004042133, + -0.06226741, + 0.017909562, + 0.013441773, + 0.0099917175, + 0.00084331125, + -0.017397495, + 0.0045478, + -0.004374977, + -0.016770212, + 0.008135473, + -0.008545127, + 0.020149859, + -0.0033604433, + 0.007828233, + -0.0121296, + 0.0014625929, + 0.014453107, + 0.02183968, + 0.009230018, + 0.00583757, + -0.023081444, + 0.0029731921, + 0.003267631, + 0.0027491627, + -0.010971047, + 0.004791032, + 0.0051814835, + 0.010740616, + -0.0125584565, + 0.006868106, + 0.011771153, + -0.009537258, + -0.027498027, + 0.05025943, + -0.018741673, + -0.020303478, + 0.002099477, + -0.00071129383, + 0.006413646, + 0.029597504, + -0.0049926587, + -0.02865018, + 0.034026887, + 0.0077898274, + -0.0015153999, + 0.029879142, + 0.015656466, + -0.0065000574, + 0.0032356267, + -0.0027235593, + 0.0034852596, + 0.020303478, + 0.0080458615, + -0.010465381, + -0.016334955, + -0.026013032, + 0.009518055, + 0.03971084, + 0.010471781, + -0.004070937, + 0.02539855, + 0.021302009, + 0.021302009, + -0.0009809294, + -0.006029595, + 0.003176419, + -0.00012341628, + 0.0074633844, + 0.010305359, + -0.037841793, + -0.033028357, + -0.00940284, + 0.019842617, + 0.0054407176, + 0.011329494, + -0.023324676, + -0.012232013, + 0.022466963, + 0.0001706225, + -0.0034052492, + 0.013454575, + 0.001296171, + 0.0037700974, + 0.03236267, + 0.001728228, + -0.010727815, + -0.0057799625, + 0.015886895, + -0.008090667, + -0.005059867, + -0.015438836, + 0.01175195, + -0.0010217348, + -0.021826878, + -0.034897402, + 0.013160136, + 0.008538727, + -0.020431494, + -0.014837157, + 0.034538954, + -0.007066532, + 0.011156672, + -0.011406304, + 0.004186152, + -0.02342709, + 0.014363495, + -0.008513123, + -0.035921536, + -0.0011193476, + -0.015413233, + 0.016027713, + 0.00113695, + -0.0035844727, + 0.0027427617, + -0.00894838, + 0.013979444, + -0.024079977, + -0.024015967, + -0.01372341, + -0.020265073, + -0.02379834, + 0.011950376, + 0.033335596, + -0.0017922363, + -0.012648068, + 0.019996237, + 0.018396026, + -0.021647654, + -0.002630747, + 0.002062672, + -0.003070805, + -0.0067656925, + -4.0830386e-05, + -0.011489515, + -0.02721639, + 0.016462972, + 0.010510187, + -0.0197146, + -0.02857337, + 0.049184088, + 0.018011976, + -0.02629467, + 0.024745664, + 0.007034528, + 0.012859296, + 0.017768744, + 0.01751271, + -0.016987842, + -0.016194137, + 0.00856433, + -0.016962238, + 0.0046694158, + -0.026806736, + -0.018152794, + 0.0049670553, + -0.02629467, + 0.015899697, + -0.03781619, + 0.009550059, + 0.021442829, + 0.0041669495, + 0.026857942, + 0.012014384, + -0.018613655, + -0.0046438123, + -0.0028691785, + -0.010522988, + -0.0053095003, + -0.055405706, + -0.0027763662, + -0.008922777, + -0.053408645, + 0.0006884908, + -0.0067656925, + -0.009198013, + 0.0028643778, + -0.013685005, + 0.018242406, + 0.027190786, + -0.0012705675, + 0.0086923465, + -0.029059833, + -0.019048912, + 0.023260668, + -0.0035588695, + -0.0036420804, + -0.007892241, + -0.011502317 + ] + } + ], + "model": "ada", + "usage": { + "prompt_tokens": 4, + "total_tokens": 4 + } + } headers: Content-Length: - - '33207' + - '33444' Content-Type: - application/json Date: - - Wed, 02 Oct 2024 14:24:01 GMT + - Wed, 13 Nov 2024 05:23:01 GMT Set-Cookie: test_set_cookie Strict-Transport-Security: - max-age=31536000; includeSubDomains; preload access-control-allow-origin: - '*' apim-request-id: - - f0570ab0-79bb-47e2-af52-2bab1b7a41b0 + - e3ea1cdb-4923-40ef-a6b8-d771755ef03a azureml-model-session: - - d005-20240531125325 - openai-organization: test_openai_org_key + - y1aa697a585e8-10 + openai-organization: test_openai_org_id x-content-type-options: - nosniff x-ms-client-request-id: - - f0570ab0-79bb-47e2-af52-2bab1b7a41b0 + - e3ea1cdb-4923-40ef-a6b8-d771755ef03a x-ms-region: - - East US + - Switzerland North x-ratelimit-remaining-requests: - - '1' + - '0' x-ratelimit-remaining-tokens: - - '2988' + - '994' x-request-id: - - d536759b-6321-43a4-9440-07af18197040 + - 78e66926-c9b6-49de-b578-aa0d8ca906ac status: code: 200 message: OK diff --git a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_embeddings/test_all_the_client_options[openai_provider_embeddings].yaml b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_embeddings/test_all_the_client_options[openai_provider_embeddings].yaml index 199e675..fa94a88 100644 --- a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_embeddings/test_all_the_client_options[openai_provider_embeddings].yaml +++ b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_embeddings/test_all_the_client_options[openai_provider_embeddings].yaml @@ -1,7 +1,13 @@ interactions: - request: - body: '{"input": ["South Atlantic Ocean."], "model": "text-embedding-3-small", - "encoding_format": "float"}' + body: |- + { + "input": [ + "South Atlantic Ocean." + ], + "model": "text-embedding-3-small", + "encoding_format": "float" + } headers: accept: - application/json @@ -18,426 +24,1591 @@ interactions: host: - api.openai.com user-agent: - - OpenAI/Python 1.50.0 + - OpenAI/Python 1.54.3 x-stainless-arch: - - x64 + - arm64 x-stainless-async: - 'false' x-stainless-lang: - python x-stainless-os: - - Linux + - MacOS x-stainless-package-version: - - 1.50.0 + - 1.54.3 x-stainless-retry-count: - '0' x-stainless-runtime: - CPython x-stainless-runtime-version: - - 3.10.12 + - 3.12.6 method: POST uri: https://api.openai.com/v1/embeddings response: body: - string: "{\n \"object\": \"list\",\n \"data\": [\n {\n \"object\": - \"embedding\",\n \"index\": 0,\n \"embedding\": [\n -0.031546354,\n - \ -0.03013925,\n 0.010269586,\n 0.009123478,\n -0.030865498,\n - \ 0.06481755,\n 0.036040008,\n -0.0019063983,\n -0.004714932,\n - \ -0.020981729,\n 0.002685128,\n -0.010956117,\n -0.018689513,\n - \ -0.012062509,\n 0.015001539,\n 0.024578921,\n -0.024283884,\n - \ 0.018871075,\n 0.0166129,\n 0.023137776,\n -0.028255546,\n - \ -0.0356088,\n -0.06286576,\n 0.06109553,\n 0.020391654,\n - \ -0.014990192,\n 0.008221343,\n 0.018258303,\n -0.063728176,\n - \ 0.02596333,\n 0.105215035,\n -0.030752022,\n 0.00089717034,\n - \ 0.065770745,\n 0.039330814,\n 0.06858495,\n -0.020368958,\n - \ -0.011744776,\n -0.055921018,\n 0.008249712,\n 0.028936403,\n - \ -0.055603284,\n 0.0033787508,\n 0.0019801578,\n 0.0084596425,\n - \ 0.0053532347,\n -0.06876651,\n -0.031682525,\n 0.034996025,\n - \ 0.014297987,\n -0.034179,\n 0.02843711,\n -0.032386076,\n - \ -0.043075524,\n 0.043166306,\n -0.025736379,\n -0.013560393,\n - \ 0.002700731,\n 0.069220416,\n -0.00047553575,\n -0.046979103,\n - \ 0.04884011,\n -0.0016780277,\n -0.0051177717,\n -0.046116684,\n - \ -0.0024269698,\n 0.014105079,\n 0.06136787,\n -0.05605719,\n - \ -0.019767536,\n -0.048386205,\n 0.022037057,\n 0.024125017,\n - \ -0.036380436,\n -0.05383306,\n -0.014842673,\n -0.014740544,\n - \ -0.036289655,\n -0.0015915022,\n -0.034496732,\n -0.029549174,\n - \ 0.06282037,\n 0.02150372,\n -0.012414285,\n -0.0155689195,\n - \ -0.04253084,\n 0.016204387,\n 0.0084256,\n -0.018405823,\n - \ 0.026530711,\n -0.032771897,\n -0.020777473,\n -0.02102712,\n - \ -0.010479517,\n -0.010144763,\n 0.039194643,\n -0.009333408,\n - \ 0.01276606,\n 0.024125017,\n -0.005049686,\n -0.024170408,\n - \ -0.026144892,\n 0.020822862,\n -0.01400295,\n -0.028369023,\n - \ -0.024873959,\n 0.0018397311,\n 0.010071003,\n 0.012459675,\n - \ -0.011410021,\n -0.009095109,\n 0.029435698,\n -0.0016397296,\n - \ 0.018871075,\n -0.004678052,\n -0.021083858,\n 0.0029163356,\n - \ -0.06445442,\n 0.0560118,\n 0.005316355,\n 0.008085172,\n - \ -0.036561996,\n 0.0213562,\n -0.014048341,\n -0.03710668,\n - \ -0.011597257,\n -0.025168998,\n -0.010269586,\n 0.006763175,\n - \ 0.0031092449,\n 0.009514971,\n -0.012527761,\n -0.016079562,\n - \ -0.031001668,\n 0.02007392,\n 0.07108142,\n -0.0064681373,\n - \ -0.021628544,\n 0.0012709323,\n 0.01191499,\n 0.022956213,\n - \ 0.027983205,\n 0.039285425,\n 0.0034610208,\n 0.020142006,\n - \ -0.0043971986,\n -0.055648677,\n 0.027143482,\n 0.020107964,\n - \ -0.0384457,\n 0.013254007,\n -0.004933373,\n 0.0038695347,\n - \ 0.025781767,\n -0.004743301,\n -0.012868189,\n -0.0035886813,\n - \ 0.0054383418,\n 0.011756123,\n -0.0017546241,\n 0.0027517953,\n - \ -0.023012951,\n 0.04309822,\n 0.023807283,\n -0.016794462,\n - \ -0.008522054,\n 0.006649699,\n 0.01561431,\n -0.05201744,\n - \ -0.011500802,\n -0.008221343,\n -0.020675344,\n -0.02553212,\n - \ -0.0049872743,\n -0.010473844,\n -0.035767663,\n 0.009356104,\n - \ -0.031773306,\n -0.01817887,\n 0.016805809,\n -0.021254072,\n - \ 0.0022468267,\n 0.035858445,\n -0.0071376464,\n 0.0068709776,\n - \ 0.035903838,\n 0.010400084,\n -0.010496538,\n -0.0041872677,\n - \ -0.009497949,\n 0.01917746,\n -0.024896655,\n 0.07067291,\n - \ 0.015727786,\n -0.0068936725,\n -0.046411723,\n 0.014036993,\n - \ 0.0450954,\n -0.008153257,\n 0.03340736,\n 0.028255546,\n - \ -0.023035647,\n -0.03365701,\n -0.06018772,\n -0.021764714,\n - \ -0.033157714,\n -0.053787667,\n 0.021231377,\n 0.055194773,\n - \ 0.0005829834,\n 0.01632921,\n -0.018678164,\n 0.026076807,\n - \ 0.019903706,\n -0.026598796,\n -0.0032056996,\n -0.016646942,\n - \ 0.009668163,\n 0.023534942,\n -0.012402937,\n -0.035994615,\n - \ 0.013934864,\n 0.015795872,\n 0.026326453,\n -0.013367483,\n - \ 0.051336583,\n 0.056329533,\n -0.022468267,\n 0.009605751,\n - \ -0.021821452,\n 0.027030006,\n 0.017498013,\n -0.006536223,\n - \ -0.034769073,\n -0.051654316,\n -0.040420186,\n -0.005807139,\n - \ 0.011619952,\n 0.021242725,\n 0.0098327035,\n -0.028868318,\n - \ -0.0143660735,\n 0.051018853,\n 0.029821517,\n -0.01343557,\n - \ -0.02026683,\n 0.046411723,\n 0.039035775,\n -0.016204387,\n - \ 0.050111044,\n -0.008249712,\n -0.014944801,\n 0.025895244,\n - \ 0.010780229,\n 0.01063271,\n -0.009412842,\n -0.0507919,\n - \ -0.05292525,\n -0.039807413,\n -0.015863957,\n -0.045594692,\n - \ -0.022933519,\n -0.048250034,\n 0.010099372,\n 0.024715094,\n - \ -0.006184447,\n 0.033157714,\n 0.0062014684,\n -0.03413361,\n - \ -0.02154911,\n 0.0032312318,\n 0.037651367,\n 0.006309271,\n - \ 0.0039631524,\n 0.028073985,\n 0.035064112,\n 0.024624312,\n - \ 0.019347673,\n 0.0115348445,\n -0.0044936533,\n 0.027778948,\n - \ -0.05610258,\n -0.066905506,\n 0.012686627,\n -0.012561804,\n - \ -0.01561431,\n 0.00859014,\n -0.027461214,\n 0.038944997,\n - \ 0.03293076,\n 0.08147583,\n 0.024805874,\n -0.020629954,\n - \ -0.015988782,\n -0.026076807,\n 0.0063149445,\n 0.021299463,\n - \ -0.0018042699,\n -0.027892424,\n -0.0036737884,\n 0.05424157,\n - \ -0.019926403,\n 0.013605784,\n -0.016578857,\n 0.008380209,\n - \ 0.035336453,\n -0.046252854,\n 0.016068215,\n 0.02387537,\n - \ 0.010973138,\n 0.020425696,\n 0.0009177379,\n 0.03488255,\n - \ -0.017486665,\n 0.037061293,\n -0.011949033,\n -0.05487704,\n - \ -0.0031489616,\n 0.0035688232,\n -0.027166177,\n 0.012028466,\n - \ 0.024306579,\n -0.024896655,\n 0.012028466,\n -0.00041099623,\n - \ -0.046162076,\n -0.025305169,\n -0.023625722,\n 0.02439736,\n - \ -0.015217144,\n 0.0017915039,\n 0.0066043087,\n 0.043733686,\n - \ -0.010002918,\n 0.022139186,\n -0.039625853,\n -0.032771897,\n - \ 0.02843711,\n -0.035336453,\n 0.060596235,\n -0.00925965,\n - \ -0.018280998,\n 0.02244557,\n 0.025214387,\n -0.010002918,\n - \ -0.00963412,\n -0.018485256,\n 0.014400116,\n 0.07543891,\n - \ -0.015500834,\n 0.008658226,\n 0.005662457,\n -0.0058213235,\n - \ -0.0101901535,\n -0.023648418,\n 0.03052507,\n 0.033112325,\n - \ -0.034769073,\n -0.068675734,\n 0.021254072,\n -0.032590333,\n - \ 0.003605703,\n -0.031637136,\n 0.00083263085,\n 0.045140788,\n - \ -0.024125017,\n -0.0051489775,\n 0.00222555,\n 0.008227017,\n - \ -0.01155754,\n -0.03569958,\n 0.047977693,\n -0.05210822,\n - \ 0.01917746,\n -0.0035830077,\n 0.043415952,\n -0.05169971,\n - \ 0.0014737707,\n -0.032590333,\n -0.0012815706,\n -0.04452802,\n - \ 0.052516736,\n -0.02743852,\n 0.0049248626,\n 0.029390307,\n - \ -0.052607518,\n 0.0033276863,\n -0.029934993,\n -0.0043886877,\n - \ -0.026076807,\n -0.038468394,\n -0.026848443,\n 0.034723684,\n - \ 0.002713497,\n -0.0033191757,\n 0.008737659,\n 0.04234928,\n - \ -0.018020004,\n -0.038196053,\n 0.04884011,\n 0.03426978,\n - \ -0.027279653,\n -0.006241185,\n -0.022808695,\n 0.0091461735,\n - \ 0.015092321,\n -0.057237342,\n 0.025645597,\n 0.005600045,\n - \ -0.014558983,\n -0.0009078087,\n -0.054060012,\n -0.003747548,\n - \ 0.033815876,\n 0.00015452252,\n 0.0403521,\n -0.015455443,\n - \ 0.051563535,\n 0.004442589,\n 0.025622902,\n -0.005029828,\n - \ 0.055376332,\n -0.0075404863,\n -0.004241169,\n 0.01196038,\n - \ 0.07289704,\n 0.034723684,\n -0.030343506,\n 0.014229902,\n - \ 0.015818568,\n 0.0560118,\n -0.010252565,\n 0.0075348127,\n - \ 0.03013925,\n -0.01698737,\n 0.024760483,\n -0.0070241704,\n - \ 0.012834146,\n -0.031069754,\n 0.011285197,\n 0.0037815908,\n - \ 0.020334916,\n 0.0007102894,\n 0.008641205,\n -0.008051129,\n - \ -0.0019106537,\n 0.03270381,\n 0.021333506,\n -0.05474087,\n - \ -0.017917875,\n 0.05374228,\n -0.00501848,\n -0.00586104,\n - \ 0.012697975,\n 0.028664062,\n -0.01946115,\n -0.008646878,\n - \ 0.027415823,\n 0.01276606,\n 0.046025902,\n 0.008368862,\n - \ -0.016692333,\n -0.054695476,\n 0.011063919,\n 0.029821517,\n - \ 0.028096681,\n 0.00078511273,\n 0.06604309,\n -0.0051830206,\n - \ -0.008692268,\n -0.02211649,\n -0.009225606,\n 0.028891014,\n - \ 0.014729197,\n -0.019710798,\n 0.003605703,\n -0.0077107004,\n - \ -0.020368958,\n -0.043302476,\n -0.031591743,\n -0.002442573,\n - \ -0.006473811,\n -0.028641365,\n -0.013968907,\n -0.01837178,\n - \ -0.029027184,\n -0.0047291163,\n 0.013685217,\n -0.042825878,\n - \ -0.026167586,\n 0.02272926,\n 0.031727914,\n -0.008147583,\n - \ -0.00835184,\n 0.034859855,\n -0.04105565,\n -0.04518618,\n - \ -0.021923581,\n 0.05292525,\n -0.049248625,\n 0.042122327,\n - \ 0.0045730867,\n -0.011858252,\n 0.005784444,\n 0.07566586,\n - \ -0.04475497,\n -0.016783115,\n -0.053197592,\n -0.025827158,\n - \ 0.015228491,\n -0.0011723499,\n 0.04028401,\n -0.017543403,\n - \ -0.0356088,\n -0.0071830368,\n -0.004431241,\n -0.012073856,\n - \ 0.025577512,\n -0.0015744808,\n -0.0014624231,\n -0.0076993527,\n - \ -0.02126542,\n -0.019256894,\n -0.0025929287,\n -0.045935124,\n - \ -0.0011489454,\n -0.028618671,\n -0.006507854,\n -0.021129249,\n - \ 0.037220158,\n 0.00946958,\n 0.0270527,\n -0.015398705,\n - \ -0.007937653,\n -0.026712272,\n -0.02154911,\n -0.040374793,\n - \ 0.014536288,\n -0.011529171,\n 0.034088217,\n 0.009344757,\n - \ 0.015625658,\n -0.01480863,\n 0.027325043,\n -0.008970285,\n - \ 0.006791544,\n -0.01837178,\n -0.008283755,\n 0.04389255,\n - \ 0.023217209,\n -0.019290935,\n 0.00057695503,\n 0.013968907,\n - \ -0.0074553792,\n -0.0027830012,\n -0.035518017,\n 0.008005738,\n - \ -0.017452624,\n -0.013889474,\n 0.013446917,\n 0.029390307,\n - \ -0.016499424,\n -0.022366138,\n -0.009480927,\n 0.00870929,\n - \ 0.057736635,\n 0.01671503,\n -0.01879164,\n -0.0008397231,\n - \ 0.030343506,\n 0.023557637,\n 0.032817286,\n -0.012595846,\n - \ -0.0065248753,\n 0.0066383514,\n 0.023784589,\n 0.03336197,\n - \ -0.017668227,\n -0.014275293,\n 0.014445507,\n -0.023012951,\n - \ -0.022638481,\n -0.0152965775,\n 0.04418759,\n -0.0062582064,\n - \ 0.01196038,\n -0.023239903,\n -0.004059607,\n 0.03213643,\n - \ 0.006473811,\n 0.054695476,\n -0.028028594,\n -0.013707912,\n - \ -0.02330799,\n -0.02122003,\n -0.008567445,\n 0.04275779,\n - \ -0.008368862,\n 0.012210027,\n 0.042553537,\n 0.018258303,\n - \ -0.024760483,\n -0.0170895,\n -0.004990111,\n -0.034519427,\n - \ 0.000620927,\n 0.014593026,\n -0.023671113,\n -0.01552353,\n - \ 0.020516478,\n 0.0112341335,\n 0.04371099,\n 0.017690923,\n - \ -0.051155023,\n 0.010842641,\n 0.013185922,\n -0.05687422,\n - \ 0.033634312,\n 0.0069617582,\n -0.01746397,\n -0.0070525394,\n - \ 0.02439736,\n 0.029821517,\n 0.007966022,\n -0.020471087,\n - \ -0.0038723717,\n -0.023421466,\n 0.052335173,\n 0.0062014684,\n - \ 0.0022411528,\n -0.01841717,\n 0.028505195,\n 0.019120721,\n - \ 0.0073305555,\n -0.007341903,\n 0.018326389,\n -0.018666817,\n - \ 0.02491935,\n 0.053152204,\n 0.008567445,\n -0.032953456,\n - \ 0.022570394,\n 0.014615721,\n 0.0026822912,\n 0.014263945,\n - \ -0.012255418,\n 0.012448328,\n -0.014615721,\n -0.029027184,\n - \ 0.011824209,\n 0.034496732,\n 0.01841717,\n 0.011188743,\n - \ -0.019551931,\n -0.029072575,\n -0.03374779,\n 0.017759008,\n - \ -0.039081167,\n -0.029186051,\n -0.004374503,\n -0.008771702,\n - \ 0.03792371,\n 0.01893916,\n -0.04623016,\n -0.015478139,\n - \ -0.00577877,\n -0.0084256,\n -0.0016964676,\n 0.027869727,\n - \ -0.043075524,\n 0.039762024,\n -0.010002918,\n 0.042303886,\n - \ 0.007239775,\n 0.03971663,\n -0.0047745067,\n 0.025827158,\n - \ -0.010967464,\n 0.0129362745,\n 0.0005521321,\n -0.033815876,\n - \ 0.022513656,\n -0.006853956,\n 0.02966265,\n -0.0112341335,\n - \ -0.0013886637,\n -0.012051161,\n -0.011228459,\n -0.009514971,\n - \ 0.047614567,\n -0.0270527,\n 0.045549303,\n 0.022627132,\n - \ 0.017815746,\n 0.014275293,\n 0.018723555,\n -0.02074343,\n - \ -0.0019290936,\n 0.02035761,\n -0.017237019,\n 0.045140788,\n - \ -0.0051745097,\n 0.012017118,\n 0.007438358,\n -0.006297923,\n - \ -0.012527761,\n -0.007903609,\n 0.0008163186,\n 0.020403001,\n - \ 0.043461345,\n 0.016635595,\n 0.01480863,\n -0.047614567,\n - \ 0.005049686,\n 0.0015205797,\n -0.0091178045,\n -0.010763207,\n - \ 0.020652648,\n -0.04219041,\n -0.007114951,\n 0.036085397,\n - \ 0.010059656,\n -0.022922171,\n 0.013015708,\n 0.03252225,\n - \ 0.008595814,\n 0.024011541,\n 0.0019560442,\n 0.001138307,\n - \ -0.005114935,\n -0.016363252,\n 0.017951919,\n 0.00025071125,\n - \ 0.009758944,\n 0.012686627,\n 0.03660739,\n -0.0069844536,\n - \ -0.021526415,\n 0.020845558,\n 0.003775917,\n 0.013049751,\n - \ 0.0015035582,\n 0.020289525,\n 0.011937685,\n 0.025146302,\n - \ -0.0030950604,\n -0.014071035,\n -0.015966086,\n 0.047614567,\n - \ -0.0034695314,\n -0.02966265,\n 0.005370256,\n 0.016011477,\n - \ 0.023648418,\n -0.03200026,\n -0.014695154,\n 0.012788756,\n - \ 0.01224407,\n -0.034428645,\n -0.003018464,\n -0.00554047,\n - \ 0.01880299,\n 0.04057905,\n 0.0170895,\n 0.020471087,\n - \ -0.0003187969,\n -0.017645532,\n 0.008567445,\n 0.05210822,\n - \ 0.019563278,\n 0.016976023,\n -0.025690988,\n -0.0024496652,\n - \ 0.033248495,\n -0.003866698,\n 0.004998622,\n -0.007341903,\n - \ 0.022922171,\n -0.017112195,\n -0.006717785,\n -0.0015446934,\n - \ -0.030547764,\n 0.008045455,\n -0.0026198793,\n 0.0012780245,\n - \ 0.0015588779,\n 0.024011541,\n -0.008192974,\n 0.030820107,\n - \ 0.0045759236,\n 0.005929126,\n -0.0015063952,\n -0.029413003,\n - \ -0.019903706,\n 0.058372103,\n 0.033543535,\n 0.033520836,\n - \ -0.044119503,\n -0.031773306,\n 0.015886653,\n 0.031546354,\n - \ -0.008856809,\n -0.0024851265,\n -0.0403521,\n 0.002798604,\n - \ 0.05110963,\n -0.0048709614,\n 0.047160663,\n -0.010808598,\n - \ -0.006910694,\n -0.00975327,\n 0.0006953957,\n -0.032454163,\n - \ 0.020698039,\n 0.033157714,\n -0.007863893,\n 0.024556227,\n - \ 0.00830645,\n -0.011665342,\n 0.0143660735,\n 0.024715094,\n - \ 0.011846904,\n 0.024420055,\n 0.0018922138,\n 0.05287986,\n - \ 0.007750417,\n 0.044981923,\n -0.020709386,\n 0.014978845,\n - \ -0.023103733,\n 0.06118631,\n 0.0070922556,\n -0.025282474,\n - \ -0.014400116,\n 0.014275293,\n -0.038037185,\n -0.029458394,\n - \ -0.02648532,\n -0.024942046,\n 0.029254137,\n 0.059960768,\n - \ 0.0019716471,\n -0.013344789,\n 0.0005070963,\n 0.018871075,\n - \ 0.019438455,\n 0.012845494,\n -0.0024751972,\n 0.010712143,\n - \ -0.0094752535,\n 0.013503655,\n -0.013288051,\n -0.030683935,\n - \ -0.032454163,\n 0.025645597,\n -0.022808695,\n -0.0074213366,\n - \ -0.005310681,\n -0.029912299,\n -0.013049751,\n -0.0037588957,\n - \ 0.0101617845,\n 0.008561771,\n -0.03336197,\n -0.018394474,\n - \ 0.0153533155,\n -0.008749006,\n 0.023625722,\n 0.020936338,\n - \ -0.009293692,\n -0.0094185155,\n 0.03617618,\n -0.044709582,\n - \ -0.02330799,\n -0.013673869,\n 0.0072794915,\n 0.021662585,\n - \ 0.020686692,\n -0.005844019,\n 0.025078217,\n 0.036652777,\n - \ 0.01504693,\n -0.050292604,\n 0.03731094,\n -0.04448263,\n - \ 0.010706469,\n 0.021923581,\n 0.010445475,\n -0.016590204,\n - \ 0.027869727,\n 0.022808695,\n 0.020720735,\n 0.00026383193,\n - \ -0.0060823187,\n -0.009895115,\n -0.050020263,\n -0.02852789,\n - \ -0.021526415,\n 0.017815746,\n -0.0018085252,\n -0.016272472,\n - \ 0.020663997,\n 0.001933349,\n -0.040193234,\n 0.005665294,\n - \ 0.028618671,\n 0.011092288,\n 0.0013404364,\n 0.043847162,\n - \ 0.021673935,\n -0.040034365,\n 0.031727914,\n 0.024215799,\n - \ 0.012641237,\n 0.03193217,\n 0.0034808791,\n -0.002424133,\n - \ -0.016783115,\n 0.0046440093,\n -0.0027957673,\n 0.024873959,\n - \ -0.008981633,\n -0.021821452,\n -0.025804464,\n 0.013844083,\n - \ 0.0017390212,\n -0.0118922945,\n 0.005052523,\n -0.029481089,\n - \ -0.011109309,\n 0.010836967,\n -0.0013943375,\n 0.016499424,\n - \ 0.004034075,\n 0.000265605,\n -0.025146302,\n 0.032022953,\n - \ 0.0021305135,\n 0.011143352,\n -0.008958938,\n 0.049611747,\n - \ -0.0056028822,\n 0.028073985,\n -0.030502373,\n -0.011489455,\n - \ -0.023171818,\n 0.013469612,\n 0.03293076,\n 0.007058213,\n - \ -0.037901014,\n 0.026666882,\n 0.028414413,\n 0.036380436,\n - \ -0.0034638578,\n -0.01191499,\n 0.0057617486,\n 0.031886782,\n - \ 0.005483732,\n 0.0027262631,\n -0.058735225,\n 0.0021773225,\n - \ 0.00345251,\n 0.016408643,\n -0.0057702595,\n 0.0015347642,\n - \ -0.00609934,\n -0.029753432,\n 0.0020383142,\n 0.05374228,\n - \ -0.04675215,\n -0.012096551,\n -0.018292347,\n 0.051336583,\n - \ 0.04770535,\n -0.0036822993,\n 0.028414413,\n 0.007841198,\n - \ 0.004144714,\n -0.036652777,\n -0.017736314,\n -0.005143304,\n - \ 0.027234262,\n -0.024147712,\n -0.03635774,\n -0.0038752086,\n - \ 0.0059177782,\n -0.009917811,\n 0.025010131,\n 0.023171818,\n - \ -0.027370434,\n 0.00081844634,\n -0.034156304,\n 0.03383857,\n - \ 0.029231442,\n 0.01817887,\n -0.008896526,\n 0.016170343,\n - \ -0.0037021574,\n -0.021344854,\n 0.0030411594,\n -0.015455443,\n - \ -0.012357547,\n -0.012346199,\n -0.014082383,\n -0.0073872935,\n - \ 0.022854086,\n -0.017622838,\n 0.0061504045,\n 0.014422812,\n - \ -0.019234197,\n -0.035767663,\n 0.036925122,\n 0.02439736,\n - \ 0.025168998,\n 0.02439736,\n -0.054286964,\n 0.023421466,\n - \ -0.0036936468,\n -0.059733815,\n 0.022842737,\n 0.053651497,\n - \ 0.0064567896,\n 0.04445993,\n -0.009373126,\n -0.031205926,\n - \ 0.0044000354,\n 0.0025986026,\n 0.005432668,\n 0.053606108,\n - \ -0.020289525,\n -0.010831293,\n -0.015875306,\n 0.0008985888,\n - \ 0.01784979,\n 0.010178805,\n 0.0280059,\n -0.010286608,\n - \ -0.0053617456,\n 0.002879456,\n 0.06354661,\n 0.013458265,\n - \ -0.0034893898,\n -0.0057163583,\n -0.006360335,\n -0.014354725,\n - \ 0.01789518,\n -0.008453969,\n 0.0004106416,\n -0.017611489,\n - \ -0.011688038,\n 0.0007156086,\n 0.01143839,\n 0.030116554,\n - \ -0.011869599,\n -0.058644444,\n 0.013310745,\n 0.017384537,\n - \ -0.025055522,\n 0.0076596364,\n 0.022173228,\n -0.002339026,\n - \ 0.012312156,\n -0.00014521394,\n -0.024510836,\n -0.009424189,\n - \ 0.015932044,\n 0.028845623,\n 0.02335338,\n -0.04775074,\n - \ 0.0064624636,\n 0.025804464,\n 0.04396064,\n 0.008221343,\n - \ 0.015818568,\n -0.040669832,\n -0.021412939,\n -0.019676754,\n - \ -0.006763175,\n 0.0161363,\n 0.06440903,\n -0.028800232,\n - \ 0.043030135,\n 0.0038808824,\n -0.011778818,\n -0.010122067,\n - \ 0.024805874,\n -0.033906657,\n -0.0070468653,\n -0.030593155,\n - \ -0.017146237,\n -0.010479517,\n 0.024578921,\n -0.0037617325,\n - \ 0.04357482,\n 0.0017602979,\n -0.018825684,\n -0.005370256,\n - \ 0.016034171,\n -0.0003719888,\n -0.009333408,\n 0.017838443,\n - \ -0.004127693,\n -0.006825587,\n 0.031750612,\n -0.019234197,\n - \ 0.008584467,\n -0.011801514,\n 0.040215928,\n 0.003486553,\n - \ -0.019733492,\n -0.021866843,\n -0.040760614,\n 0.00087234745,\n - \ -0.037787538,\n -0.0021943438,\n -0.027824339,\n -0.029481089,\n - \ -0.003946131,\n -0.027030006,\n 0.020232787,\n 0.018042699,\n - \ -0.025690988,\n -0.0039319466,\n 0.0028482499,\n -0.01087101,\n - \ -0.004039749,\n 0.004323439,\n 0.017634185,\n -0.027892424,\n - \ -0.017997308,\n 0.0033787508,\n -0.014785935,\n 0.027597386,\n - \ -0.004584434,\n 0.016011477,\n 0.0071319724,\n -0.007954674,\n - \ -0.016102258,\n -0.031137839,\n 0.043257087,\n 0.039830107,\n - \ 0.03574497,\n 0.018099437,\n 0.005809976,\n 0.018190218,\n - \ 0.029186051,\n 0.028936403,\n 0.093685865,\n 0.013787345,\n - \ -0.03118323,\n -0.021015773,\n 0.030774716,\n -0.008958938,\n - \ -0.021934928,\n 0.025237083,\n 0.014275293,\n 0.015183101,\n - \ 0.013866778,\n 0.005347561,\n 0.019597322,\n 0.0011333425,\n - \ -0.000682275,\n 0.033498142,\n 0.042871267,\n 0.0018269651,\n - \ 0.05070112,\n -0.012255418,\n 0.003253927,\n -0.025736379,\n - \ -0.029390307,\n 0.034996025,\n 0.012141942,\n 0.020902297,\n - \ 0.0005205716,\n -0.019688101,\n 0.017827094,\n -0.011103636,\n - \ 0.008533402,\n -0.029117966,\n 0.004876635,\n 0.020142006,\n - \ -0.048613157,\n 0.030820107,\n -0.015364663,\n 0.0006216362,\n - \ -0.025781767,\n 0.03554071,\n 0.001087952,\n -0.012471023,\n - \ -0.025577512,\n -0.011653995,\n -0.009458233,\n -0.0045135114,\n - \ -0.00031489617,\n -0.003253927,\n -0.0152965775,\n 0.0029248463,\n - \ -0.012788756,\n 0.04518618,\n -0.0014751892,\n 0.0143660735,\n - \ -0.040034365,\n -0.020550521,\n 0.0018127806,\n -0.02335338,\n - \ 0.0149107585,\n -0.023648418,\n 0.012471023,\n 0.0071546678,\n - \ 0.026553405,\n 0.06799488,\n 0.002178741,\n -0.023557637,\n - \ -0.02339877,\n -0.008470991,\n -0.011767471,\n -0.015954738,\n - \ -0.0043120915,\n -0.012822798,\n 0.020471087,\n -0.014275293,\n - \ 0.006388704,\n 0.0052425954,\n 0.03787832,\n -0.03200026,\n - \ -0.04148686,\n 0.04209963,\n -0.01841717,\n -0.014638416,\n - \ 0.038332224,\n 0.0011141934,\n 0.031160535,\n -0.044414543,\n - \ -0.0042581903,\n -0.0031744938,\n 0.010292281,\n -0.03327119,\n - \ -0.012595846,\n 0.007466727,\n 0.006042602,\n 0.007994391,\n - \ 0.01808809,\n 0.014819978,\n 0.0007375946,\n 0.05705578,\n - \ 0.0014390188,\n 0.03887691,\n 0.031251315,\n 0.0061390568,\n - \ -0.02805129,\n -0.014150469,\n 0.015478139,\n -0.044981923,\n - \ 0.025055522,\n -0.020119311,\n -0.01108094,\n 0.01698737,\n - \ 0.0011879528,\n 0.0270527,\n -0.0043886877,\n -0.016533466,\n - \ 0.0036425826,\n 0.007807155,\n 0.01136463,\n 0.016113605,\n - \ -0.018587384,\n 0.01552353,\n -0.0023503737,\n -0.027710862,\n - \ 0.042371973,\n -0.029390307,\n 0.0012113573,\n 0.046979103,\n - \ 0.008011412,\n 0.042122327,\n -0.035722274,\n 0.040669832,\n - \ 0.002584418,\n -0.010655405,\n -0.0032198841,\n 0.00092412095,\n - \ 0.00835184,\n 0.036380436,\n 0.0067404797,\n -0.0061163614,\n - \ -0.012017118,\n -0.0021432796,\n -0.003083713,\n 0.00505536,\n - \ -0.0218328,\n -0.033339277,\n 0.018632775,\n -0.049157843,\n - \ 0.02202571,\n -0.0053560715,\n -0.0032879699,\n -0.020368958,\n - \ -0.016590204,\n 0.005236922,\n -0.027461214,\n 0.023217209,\n - \ 0.01646538,\n -0.015398705,\n -0.014899411,\n -0.007892262,\n - \ 0.0084029045,\n 0.020471087,\n 0.02757469,\n 0.011353283,\n - \ -0.03279459,\n -0.024715094,\n 0.034042828,\n -0.001119158,\n - \ 0.031342097,\n 0.016295167,\n -0.0351322,\n 0.019881012,\n - \ -0.03256764,\n -0.025032826,\n -0.015251187,\n 0.02757469,\n - \ 0.01400295,\n 0.020289525,\n 0.012652584,\n 0.01428664,\n - \ -0.0003044351,\n -0.0040766285,\n 0.0024269698,\n 0.0060596233,\n - \ -0.017055457,\n -0.0031489616,\n -0.012539108,\n 0.0021886702,\n - \ 0.026848443,\n -0.004502164,\n -0.016953329,\n 0.012539108,\n - \ 0.01447955,\n 0.035336453,\n 0.035222977,\n -0.013424221,\n - \ -0.016147649,\n 0.013185922,\n 0.039762024,\n -0.016862547,\n - \ -0.0075007696,\n 0.030116554,\n 0.010252565,\n -0.01120009,\n - \ 0.0063773566,\n 0.06772253,\n -0.018768946,\n 0.025464036,\n - \ -0.010768881,\n -0.027325043,\n 0.007807155,\n 0.04071522,\n - \ 0.012788756,\n -0.010099372,\n -0.002964563,\n -0.0007148994,\n - \ -0.02995769,\n -0.0064057256,\n -0.007324882,\n 0.0048369183,\n - \ 0.023898065,\n -0.0019078169,\n -0.00008621524,\n -0.024556227,\n - \ 0.019188806,\n -0.0065475707,\n 0.005889409,\n 0.0012283787,\n - \ -0.03597192,\n -0.035291065,\n -0.001612779,\n -0.02870945,\n - \ -0.023421466,\n 0.01989236,\n 0.00059184874,\n -0.019551931,\n - \ 0.047342226,\n 0.001556041,\n 0.0088454615,\n -0.01656751,\n - \ -0.038377613,\n 0.03200026,\n 0.009049718,\n 0.027506605,\n - \ -0.009696532,\n -0.012618542,\n 0.012947622,\n 0.029367613,\n - \ -0.015637005,\n 0.0051659993,\n 0.048250034,\n 0.019234197,\n - \ 0.005140467,\n 0.017634185,\n 0.008334819,\n -0.03340736,\n - \ 0.018315041,\n 0.024193102,\n -0.018428518,\n 0.016941981,\n - \ -0.01447955,\n 0.018927813,\n 0.02748391,\n 0.0070695607,\n - \ 0.00045284053,\n 0.012788756,\n -0.020663997,\n 0.032544944,\n - \ -0.037560586,\n 0.0033021544,\n -0.018156175,\n -0.034814466,\n - \ 0.0076596364,\n -0.0059461473,\n -0.017441275,\n -0.037515197,\n - \ -0.044437237,\n 0.037810232,\n -0.009798661,\n 0.015410054,\n - \ 0.002062428,\n 0.002295054,\n 0.006008559,\n 0.0135944355,\n - \ 0.0013290887,\n -0.035631493,\n -0.019495193,\n 0.003112082,\n - \ 0.0036198874,\n -0.0047234423,\n 0.011597257,\n 0.017883832,\n - \ 0.051608928,\n -0.004306418,\n 0.025237083,\n 0.023103733,\n - \ 0.015773177,\n -0.021492371,\n 0.01030363,\n -0.026530711,\n - \ -0.012754713,\n -0.02648532,\n -0.011517824,\n -0.01604552,\n - \ 0.0001859944,\n -0.0029532153,\n 0.0052794754,\n -0.017861137,\n - \ 0.029889602,\n -0.015069625,\n 0.0060312543,\n -0.023421466,\n - \ 0.031637136,\n -0.00537593,\n -0.009480927,\n 0.03944429,\n - \ 0.028232852,\n -0.010967464,\n 0.0038553502,\n 0.0027844196,\n - \ 0.0027205893,\n -0.0059631686,\n -0.044369154,\n -0.014876716,\n - \ 0.029821517,\n -0.012834146,\n -0.020334916,\n -0.00690502,\n - \ -0.008726312,\n 0.03456482,\n 0.010252565,\n -0.02074343,\n - \ 0.0072908388,\n -0.017191628,\n 0.01808809,\n 0.018110784,\n - \ 0.024442751,\n 0.011563214,\n -0.017361842,\n 0.0005159616,\n - \ -0.059869986,\n 0.01822426,\n 0.0072738174,\n -0.012709322,\n - \ 0.016737724,\n -0.039693937,\n 0.0019106537,\n 0.0035376172,\n - \ -0.00066312595,\n 0.003861024,\n 0.03340736,\n -0.012085204,\n - \ 0.018485256,\n -0.043552123,\n 0.0046553565,\n 0.0013695146,\n - \ -0.010712143,\n -0.017305104,\n 0.0025517936,\n 0.01989236,\n - \ -0.018190218,\n -0.03588114,\n 0.012856841,\n -0.012970317,\n - \ 0.0062298374,\n -0.010263912,\n -0.00958873,\n -0.018280998,\n - \ -0.017248366,\n 0.029503783,\n -0.036153484,\n 0.009310713,\n - \ -0.0045986185,\n -0.030252727,\n -0.011937685,\n 0.025554815,\n - \ 0.005024154,\n -0.030910887,\n 0.0013191595,\n 0.030547764,\n - \ -0.010496538,\n 0.038559176,\n -0.045163486,\n 0.008743333,\n - \ 0.0027489583,\n -0.009010002,\n 0.03973933,\n 0.025259778,\n - \ 0.029934993,\n 0.02059591,\n 0.045140788\n ]\n - \ }\n ],\n \"model\": \"text-embedding-3-small\",\n \"usage\": {\n \"prompt_tokens\": - 4,\n \"total_tokens\": 4\n }\n}\n" + string: |- + { + "object": "list", + "data": [ + { + "object": "embedding", + "index": 0, + "embedding": [ + -0.031546354, + -0.03013925, + 0.010269586, + 0.009123478, + -0.030865498, + 0.06481755, + 0.036040008, + -0.0019063983, + -0.004714932, + -0.020981729, + 0.002685128, + -0.010956117, + -0.018689513, + -0.012062509, + 0.015001539, + 0.024578921, + -0.024283884, + 0.018871075, + 0.0166129, + 0.023137776, + -0.028255546, + -0.0356088, + -0.06286576, + 0.06109553, + 0.020391654, + -0.014990192, + 0.008221343, + 0.018258303, + -0.063728176, + 0.02596333, + 0.105215035, + -0.030752022, + 0.00089717034, + 0.065770745, + 0.039330814, + 0.06858495, + -0.020368958, + -0.011744776, + -0.055921018, + 0.008249712, + 0.028936403, + -0.055603284, + 0.0033787508, + 0.0019801578, + 0.0084596425, + 0.0053532347, + -0.06876651, + -0.031682525, + 0.034996025, + 0.014297987, + -0.034179, + 0.02843711, + -0.032386076, + -0.043075524, + 0.043166306, + -0.025736379, + -0.013560393, + 0.002700731, + 0.069220416, + -0.00047553575, + -0.046979103, + 0.04884011, + -0.0016780277, + -0.0051177717, + -0.046116684, + -0.0024269698, + 0.014105079, + 0.06136787, + -0.05605719, + -0.019767536, + -0.048386205, + 0.022037057, + 0.024125017, + -0.036380436, + -0.05383306, + -0.014842673, + -0.014740544, + -0.036289655, + -0.0015915022, + -0.034496732, + -0.029549174, + 0.06282037, + 0.02150372, + -0.012414285, + -0.0155689195, + -0.04253084, + 0.016204387, + 0.0084256, + -0.018405823, + 0.026530711, + -0.032771897, + -0.020777473, + -0.02102712, + -0.010479517, + -0.010144763, + 0.039194643, + -0.009333408, + 0.01276606, + 0.024125017, + -0.005049686, + -0.024170408, + -0.026144892, + 0.020822862, + -0.01400295, + -0.028369023, + -0.024873959, + 0.0018397311, + 0.010071003, + 0.012459675, + -0.011410021, + -0.009095109, + 0.029435698, + -0.0016397296, + 0.018871075, + -0.004678052, + -0.021083858, + 0.0029163356, + -0.06445442, + 0.0560118, + 0.005316355, + 0.008085172, + -0.036561996, + 0.0213562, + -0.014048341, + -0.03710668, + -0.011597257, + -0.025168998, + -0.010269586, + 0.006763175, + 0.0031092449, + 0.009514971, + -0.012527761, + -0.016079562, + -0.031001668, + 0.02007392, + 0.07108142, + -0.0064681373, + -0.021628544, + 0.0012709323, + 0.01191499, + 0.022956213, + 0.027983205, + 0.039285425, + 0.0034610208, + 0.020142006, + -0.0043971986, + -0.055648677, + 0.027143482, + 0.020107964, + -0.0384457, + 0.013254007, + -0.004933373, + 0.0038695347, + 0.025781767, + -0.004743301, + -0.012868189, + -0.0035886813, + 0.0054383418, + 0.011756123, + -0.0017546241, + 0.0027517953, + -0.023012951, + 0.04309822, + 0.023807283, + -0.016794462, + -0.008522054, + 0.006649699, + 0.01561431, + -0.05201744, + -0.011500802, + -0.008221343, + -0.020675344, + -0.02553212, + -0.0049872743, + -0.010473844, + -0.035767663, + 0.009356104, + -0.031773306, + -0.01817887, + 0.016805809, + -0.021254072, + 0.0022468267, + 0.035858445, + -0.0071376464, + 0.0068709776, + 0.035903838, + 0.010400084, + -0.010496538, + -0.0041872677, + -0.009497949, + 0.01917746, + -0.024896655, + 0.07067291, + 0.015727786, + -0.0068936725, + -0.046411723, + 0.014036993, + 0.0450954, + -0.008153257, + 0.03340736, + 0.028255546, + -0.023035647, + -0.03365701, + -0.06018772, + -0.021764714, + -0.033157714, + -0.053787667, + 0.021231377, + 0.055194773, + 0.0005829834, + 0.01632921, + -0.018678164, + 0.026076807, + 0.019903706, + -0.026598796, + -0.0032056996, + -0.016646942, + 0.009668163, + 0.023534942, + -0.012402937, + -0.035994615, + 0.013934864, + 0.015795872, + 0.026326453, + -0.013367483, + 0.051336583, + 0.056329533, + -0.022468267, + 0.009605751, + -0.021821452, + 0.027030006, + 0.017498013, + -0.006536223, + -0.034769073, + -0.051654316, + -0.040420186, + -0.005807139, + 0.011619952, + 0.021242725, + 0.0098327035, + -0.028868318, + -0.0143660735, + 0.051018853, + 0.029821517, + -0.01343557, + -0.02026683, + 0.046411723, + 0.039035775, + -0.016204387, + 0.050111044, + -0.008249712, + -0.014944801, + 0.025895244, + 0.010780229, + 0.01063271, + -0.009412842, + -0.0507919, + -0.05292525, + -0.039807413, + -0.015863957, + -0.045594692, + -0.022933519, + -0.048250034, + 0.010099372, + 0.024715094, + -0.006184447, + 0.033157714, + 0.0062014684, + -0.03413361, + -0.02154911, + 0.0032312318, + 0.037651367, + 0.006309271, + 0.0039631524, + 0.028073985, + 0.035064112, + 0.024624312, + 0.019347673, + 0.0115348445, + -0.0044936533, + 0.027778948, + -0.05610258, + -0.066905506, + 0.012686627, + -0.012561804, + -0.01561431, + 0.00859014, + -0.027461214, + 0.038944997, + 0.03293076, + 0.08147583, + 0.024805874, + -0.020629954, + -0.015988782, + -0.026076807, + 0.0063149445, + 0.021299463, + -0.0018042699, + -0.027892424, + -0.0036737884, + 0.05424157, + -0.019926403, + 0.013605784, + -0.016578857, + 0.008380209, + 0.035336453, + -0.046252854, + 0.016068215, + 0.02387537, + 0.010973138, + 0.020425696, + 0.0009177379, + 0.03488255, + -0.017486665, + 0.037061293, + -0.011949033, + -0.05487704, + -0.0031489616, + 0.0035688232, + -0.027166177, + 0.012028466, + 0.024306579, + -0.024896655, + 0.012028466, + -0.00041099623, + -0.046162076, + -0.025305169, + -0.023625722, + 0.02439736, + -0.015217144, + 0.0017915039, + 0.0066043087, + 0.043733686, + -0.010002918, + 0.022139186, + -0.039625853, + -0.032771897, + 0.02843711, + -0.035336453, + 0.060596235, + -0.00925965, + -0.018280998, + 0.02244557, + 0.025214387, + -0.010002918, + -0.00963412, + -0.018485256, + 0.014400116, + 0.07543891, + -0.015500834, + 0.008658226, + 0.005662457, + -0.0058213235, + -0.0101901535, + -0.023648418, + 0.03052507, + 0.033112325, + -0.034769073, + -0.068675734, + 0.021254072, + -0.032590333, + 0.003605703, + -0.031637136, + 0.00083263085, + 0.045140788, + -0.024125017, + -0.0051489775, + 0.00222555, + 0.008227017, + -0.01155754, + -0.03569958, + 0.047977693, + -0.05210822, + 0.01917746, + -0.0035830077, + 0.043415952, + -0.05169971, + 0.0014737707, + -0.032590333, + -0.0012815706, + -0.04452802, + 0.052516736, + -0.02743852, + 0.0049248626, + 0.029390307, + -0.052607518, + 0.0033276863, + -0.029934993, + -0.0043886877, + -0.026076807, + -0.038468394, + -0.026848443, + 0.034723684, + 0.002713497, + -0.0033191757, + 0.008737659, + 0.04234928, + -0.018020004, + -0.038196053, + 0.04884011, + 0.03426978, + -0.027279653, + -0.006241185, + -0.022808695, + 0.0091461735, + 0.015092321, + -0.057237342, + 0.025645597, + 0.005600045, + -0.014558983, + -0.0009078087, + -0.054060012, + -0.003747548, + 0.033815876, + 0.00015452252, + 0.0403521, + -0.015455443, + 0.051563535, + 0.004442589, + 0.025622902, + -0.005029828, + 0.055376332, + -0.0075404863, + -0.004241169, + 0.01196038, + 0.07289704, + 0.034723684, + -0.030343506, + 0.014229902, + 0.015818568, + 0.0560118, + -0.010252565, + 0.0075348127, + 0.03013925, + -0.01698737, + 0.024760483, + -0.0070241704, + 0.012834146, + -0.031069754, + 0.011285197, + 0.0037815908, + 0.020334916, + 0.0007102894, + 0.008641205, + -0.008051129, + -0.0019106537, + 0.03270381, + 0.021333506, + -0.05474087, + -0.017917875, + 0.05374228, + -0.00501848, + -0.00586104, + 0.012697975, + 0.028664062, + -0.01946115, + -0.008646878, + 0.027415823, + 0.01276606, + 0.046025902, + 0.008368862, + -0.016692333, + -0.054695476, + 0.011063919, + 0.029821517, + 0.028096681, + 0.00078511273, + 0.06604309, + -0.0051830206, + -0.008692268, + -0.02211649, + -0.009225606, + 0.028891014, + 0.014729197, + -0.019710798, + 0.003605703, + -0.0077107004, + -0.020368958, + -0.043302476, + -0.031591743, + -0.002442573, + -0.006473811, + -0.028641365, + -0.013968907, + -0.01837178, + -0.029027184, + -0.0047291163, + 0.013685217, + -0.042825878, + -0.026167586, + 0.02272926, + 0.031727914, + -0.008147583, + -0.00835184, + 0.034859855, + -0.04105565, + -0.04518618, + -0.021923581, + 0.05292525, + -0.049248625, + 0.042122327, + 0.0045730867, + -0.011858252, + 0.005784444, + 0.07566586, + -0.04475497, + -0.016783115, + -0.053197592, + -0.025827158, + 0.015228491, + -0.0011723499, + 0.04028401, + -0.017543403, + -0.0356088, + -0.0071830368, + -0.004431241, + -0.012073856, + 0.025577512, + -0.0015744808, + -0.0014624231, + -0.0076993527, + -0.02126542, + -0.019256894, + -0.0025929287, + -0.045935124, + -0.0011489454, + -0.028618671, + -0.006507854, + -0.021129249, + 0.037220158, + 0.00946958, + 0.0270527, + -0.015398705, + -0.007937653, + -0.026712272, + -0.02154911, + -0.040374793, + 0.014536288, + -0.011529171, + 0.034088217, + 0.009344757, + 0.015625658, + -0.01480863, + 0.027325043, + -0.008970285, + 0.006791544, + -0.01837178, + -0.008283755, + 0.04389255, + 0.023217209, + -0.019290935, + 0.00057695503, + 0.013968907, + -0.0074553792, + -0.0027830012, + -0.035518017, + 0.008005738, + -0.017452624, + -0.013889474, + 0.013446917, + 0.029390307, + -0.016499424, + -0.022366138, + -0.009480927, + 0.00870929, + 0.057736635, + 0.01671503, + -0.01879164, + -0.0008397231, + 0.030343506, + 0.023557637, + 0.032817286, + -0.012595846, + -0.0065248753, + 0.0066383514, + 0.023784589, + 0.03336197, + -0.017668227, + -0.014275293, + 0.014445507, + -0.023012951, + -0.022638481, + -0.0152965775, + 0.04418759, + -0.0062582064, + 0.01196038, + -0.023239903, + -0.004059607, + 0.03213643, + 0.006473811, + 0.054695476, + -0.028028594, + -0.013707912, + -0.02330799, + -0.02122003, + -0.008567445, + 0.04275779, + -0.008368862, + 0.012210027, + 0.042553537, + 0.018258303, + -0.024760483, + -0.0170895, + -0.004990111, + -0.034519427, + 0.000620927, + 0.014593026, + -0.023671113, + -0.01552353, + 0.020516478, + 0.0112341335, + 0.04371099, + 0.017690923, + -0.051155023, + 0.010842641, + 0.013185922, + -0.05687422, + 0.033634312, + 0.0069617582, + -0.01746397, + -0.0070525394, + 0.02439736, + 0.029821517, + 0.007966022, + -0.020471087, + -0.0038723717, + -0.023421466, + 0.052335173, + 0.0062014684, + 0.0022411528, + -0.01841717, + 0.028505195, + 0.019120721, + 0.0073305555, + -0.007341903, + 0.018326389, + -0.018666817, + 0.02491935, + 0.053152204, + 0.008567445, + -0.032953456, + 0.022570394, + 0.014615721, + 0.0026822912, + 0.014263945, + -0.012255418, + 0.012448328, + -0.014615721, + -0.029027184, + 0.011824209, + 0.034496732, + 0.01841717, + 0.011188743, + -0.019551931, + -0.029072575, + -0.03374779, + 0.017759008, + -0.039081167, + -0.029186051, + -0.004374503, + -0.008771702, + 0.03792371, + 0.01893916, + -0.04623016, + -0.015478139, + -0.00577877, + -0.0084256, + -0.0016964676, + 0.027869727, + -0.043075524, + 0.039762024, + -0.010002918, + 0.042303886, + 0.007239775, + 0.03971663, + -0.0047745067, + 0.025827158, + -0.010967464, + 0.0129362745, + 0.0005521321, + -0.033815876, + 0.022513656, + -0.006853956, + 0.02966265, + -0.0112341335, + -0.0013886637, + -0.012051161, + -0.011228459, + -0.009514971, + 0.047614567, + -0.0270527, + 0.045549303, + 0.022627132, + 0.017815746, + 0.014275293, + 0.018723555, + -0.02074343, + -0.0019290936, + 0.02035761, + -0.017237019, + 0.045140788, + -0.0051745097, + 0.012017118, + 0.007438358, + -0.006297923, + -0.012527761, + -0.007903609, + 0.0008163186, + 0.020403001, + 0.043461345, + 0.016635595, + 0.01480863, + -0.047614567, + 0.005049686, + 0.0015205797, + -0.0091178045, + -0.010763207, + 0.020652648, + -0.04219041, + -0.007114951, + 0.036085397, + 0.010059656, + -0.022922171, + 0.013015708, + 0.03252225, + 0.008595814, + 0.024011541, + 0.0019560442, + 0.001138307, + -0.005114935, + -0.016363252, + 0.017951919, + 0.00025071125, + 0.009758944, + 0.012686627, + 0.03660739, + -0.0069844536, + -0.021526415, + 0.020845558, + 0.003775917, + 0.013049751, + 0.0015035582, + 0.020289525, + 0.011937685, + 0.025146302, + -0.0030950604, + -0.014071035, + -0.015966086, + 0.047614567, + -0.0034695314, + -0.02966265, + 0.005370256, + 0.016011477, + 0.023648418, + -0.03200026, + -0.014695154, + 0.012788756, + 0.01224407, + -0.034428645, + -0.003018464, + -0.00554047, + 0.01880299, + 0.04057905, + 0.0170895, + 0.020471087, + -0.0003187969, + -0.017645532, + 0.008567445, + 0.05210822, + 0.019563278, + 0.016976023, + -0.025690988, + -0.0024496652, + 0.033248495, + -0.003866698, + 0.004998622, + -0.007341903, + 0.022922171, + -0.017112195, + -0.006717785, + -0.0015446934, + -0.030547764, + 0.008045455, + -0.0026198793, + 0.0012780245, + 0.0015588779, + 0.024011541, + -0.008192974, + 0.030820107, + 0.0045759236, + 0.005929126, + -0.0015063952, + -0.029413003, + -0.019903706, + 0.058372103, + 0.033543535, + 0.033520836, + -0.044119503, + -0.031773306, + 0.015886653, + 0.031546354, + -0.008856809, + -0.0024851265, + -0.0403521, + 0.002798604, + 0.05110963, + -0.0048709614, + 0.047160663, + -0.010808598, + -0.006910694, + -0.00975327, + 0.0006953957, + -0.032454163, + 0.020698039, + 0.033157714, + -0.007863893, + 0.024556227, + 0.00830645, + -0.011665342, + 0.0143660735, + 0.024715094, + 0.011846904, + 0.024420055, + 0.0018922138, + 0.05287986, + 0.007750417, + 0.044981923, + -0.020709386, + 0.014978845, + -0.023103733, + 0.06118631, + 0.0070922556, + -0.025282474, + -0.014400116, + 0.014275293, + -0.038037185, + -0.029458394, + -0.02648532, + -0.024942046, + 0.029254137, + 0.059960768, + 0.0019716471, + -0.013344789, + 0.0005070963, + 0.018871075, + 0.019438455, + 0.012845494, + -0.0024751972, + 0.010712143, + -0.0094752535, + 0.013503655, + -0.013288051, + -0.030683935, + -0.032454163, + 0.025645597, + -0.022808695, + -0.0074213366, + -0.005310681, + -0.029912299, + -0.013049751, + -0.0037588957, + 0.0101617845, + 0.008561771, + -0.03336197, + -0.018394474, + 0.0153533155, + -0.008749006, + 0.023625722, + 0.020936338, + -0.009293692, + -0.0094185155, + 0.03617618, + -0.044709582, + -0.02330799, + -0.013673869, + 0.0072794915, + 0.021662585, + 0.020686692, + -0.005844019, + 0.025078217, + 0.036652777, + 0.01504693, + -0.050292604, + 0.03731094, + -0.04448263, + 0.010706469, + 0.021923581, + 0.010445475, + -0.016590204, + 0.027869727, + 0.022808695, + 0.020720735, + 0.00026383193, + -0.0060823187, + -0.009895115, + -0.050020263, + -0.02852789, + -0.021526415, + 0.017815746, + -0.0018085252, + -0.016272472, + 0.020663997, + 0.001933349, + -0.040193234, + 0.005665294, + 0.028618671, + 0.011092288, + 0.0013404364, + 0.043847162, + 0.021673935, + -0.040034365, + 0.031727914, + 0.024215799, + 0.012641237, + 0.03193217, + 0.0034808791, + -0.002424133, + -0.016783115, + 0.0046440093, + -0.0027957673, + 0.024873959, + -0.008981633, + -0.021821452, + -0.025804464, + 0.013844083, + 0.0017390212, + -0.0118922945, + 0.005052523, + -0.029481089, + -0.011109309, + 0.010836967, + -0.0013943375, + 0.016499424, + 0.004034075, + 0.000265605, + -0.025146302, + 0.032022953, + 0.0021305135, + 0.011143352, + -0.008958938, + 0.049611747, + -0.0056028822, + 0.028073985, + -0.030502373, + -0.011489455, + -0.023171818, + 0.013469612, + 0.03293076, + 0.007058213, + -0.037901014, + 0.026666882, + 0.028414413, + 0.036380436, + -0.0034638578, + -0.01191499, + 0.0057617486, + 0.031886782, + 0.005483732, + 0.0027262631, + -0.058735225, + 0.0021773225, + 0.00345251, + 0.016408643, + -0.0057702595, + 0.0015347642, + -0.00609934, + -0.029753432, + 0.0020383142, + 0.05374228, + -0.04675215, + -0.012096551, + -0.018292347, + 0.051336583, + 0.04770535, + -0.0036822993, + 0.028414413, + 0.007841198, + 0.004144714, + -0.036652777, + -0.017736314, + -0.005143304, + 0.027234262, + -0.024147712, + -0.03635774, + -0.0038752086, + 0.0059177782, + -0.009917811, + 0.025010131, + 0.023171818, + -0.027370434, + 0.00081844634, + -0.034156304, + 0.03383857, + 0.029231442, + 0.01817887, + -0.008896526, + 0.016170343, + -0.0037021574, + -0.021344854, + 0.0030411594, + -0.015455443, + -0.012357547, + -0.012346199, + -0.014082383, + -0.0073872935, + 0.022854086, + -0.017622838, + 0.0061504045, + 0.014422812, + -0.019234197, + -0.035767663, + 0.036925122, + 0.02439736, + 0.025168998, + 0.02439736, + -0.054286964, + 0.023421466, + -0.0036936468, + -0.059733815, + 0.022842737, + 0.053651497, + 0.0064567896, + 0.04445993, + -0.009373126, + -0.031205926, + 0.0044000354, + 0.0025986026, + 0.005432668, + 0.053606108, + -0.020289525, + -0.010831293, + -0.015875306, + 0.0008985888, + 0.01784979, + 0.010178805, + 0.0280059, + -0.010286608, + -0.0053617456, + 0.002879456, + 0.06354661, + 0.013458265, + -0.0034893898, + -0.0057163583, + -0.006360335, + -0.014354725, + 0.01789518, + -0.008453969, + 0.0004106416, + -0.017611489, + -0.011688038, + 0.0007156086, + 0.01143839, + 0.030116554, + -0.011869599, + -0.058644444, + 0.013310745, + 0.017384537, + -0.025055522, + 0.0076596364, + 0.022173228, + -0.002339026, + 0.012312156, + -0.00014521394, + -0.024510836, + -0.009424189, + 0.015932044, + 0.028845623, + 0.02335338, + -0.04775074, + 0.0064624636, + 0.025804464, + 0.04396064, + 0.008221343, + 0.015818568, + -0.040669832, + -0.021412939, + -0.019676754, + -0.006763175, + 0.0161363, + 0.06440903, + -0.028800232, + 0.043030135, + 0.0038808824, + -0.011778818, + -0.010122067, + 0.024805874, + -0.033906657, + -0.0070468653, + -0.030593155, + -0.017146237, + -0.010479517, + 0.024578921, + -0.0037617325, + 0.04357482, + 0.0017602979, + -0.018825684, + -0.005370256, + 0.016034171, + -0.0003719888, + -0.009333408, + 0.017838443, + -0.004127693, + -0.006825587, + 0.031750612, + -0.019234197, + 0.008584467, + -0.011801514, + 0.040215928, + 0.003486553, + -0.019733492, + -0.021866843, + -0.040760614, + 0.00087234745, + -0.037787538, + -0.0021943438, + -0.027824339, + -0.029481089, + -0.003946131, + -0.027030006, + 0.020232787, + 0.018042699, + -0.025690988, + -0.0039319466, + 0.0028482499, + -0.01087101, + -0.004039749, + 0.004323439, + 0.017634185, + -0.027892424, + -0.017997308, + 0.0033787508, + -0.014785935, + 0.027597386, + -0.004584434, + 0.016011477, + 0.0071319724, + -0.007954674, + -0.016102258, + -0.031137839, + 0.043257087, + 0.039830107, + 0.03574497, + 0.018099437, + 0.005809976, + 0.018190218, + 0.029186051, + 0.028936403, + 0.093685865, + 0.013787345, + -0.03118323, + -0.021015773, + 0.030774716, + -0.008958938, + -0.021934928, + 0.025237083, + 0.014275293, + 0.015183101, + 0.013866778, + 0.005347561, + 0.019597322, + 0.0011333425, + -0.000682275, + 0.033498142, + 0.042871267, + 0.0018269651, + 0.05070112, + -0.012255418, + 0.003253927, + -0.025736379, + -0.029390307, + 0.034996025, + 0.012141942, + 0.020902297, + 0.0005205716, + -0.019688101, + 0.017827094, + -0.011103636, + 0.008533402, + -0.029117966, + 0.004876635, + 0.020142006, + -0.048613157, + 0.030820107, + -0.015364663, + 0.0006216362, + -0.025781767, + 0.03554071, + 0.001087952, + -0.012471023, + -0.025577512, + -0.011653995, + -0.009458233, + -0.0045135114, + -0.00031489617, + -0.003253927, + -0.0152965775, + 0.0029248463, + -0.012788756, + 0.04518618, + -0.0014751892, + 0.0143660735, + -0.040034365, + -0.020550521, + 0.0018127806, + -0.02335338, + 0.0149107585, + -0.023648418, + 0.012471023, + 0.0071546678, + 0.026553405, + 0.06799488, + 0.002178741, + -0.023557637, + -0.02339877, + -0.008470991, + -0.011767471, + -0.015954738, + -0.0043120915, + -0.012822798, + 0.020471087, + -0.014275293, + 0.006388704, + 0.0052425954, + 0.03787832, + -0.03200026, + -0.04148686, + 0.04209963, + -0.01841717, + -0.014638416, + 0.038332224, + 0.0011141934, + 0.031160535, + -0.044414543, + -0.0042581903, + -0.0031744938, + 0.010292281, + -0.03327119, + -0.012595846, + 0.007466727, + 0.006042602, + 0.007994391, + 0.01808809, + 0.014819978, + 0.0007375946, + 0.05705578, + 0.0014390188, + 0.03887691, + 0.031251315, + 0.0061390568, + -0.02805129, + -0.014150469, + 0.015478139, + -0.044981923, + 0.025055522, + -0.020119311, + -0.01108094, + 0.01698737, + 0.0011879528, + 0.0270527, + -0.0043886877, + -0.016533466, + 0.0036425826, + 0.007807155, + 0.01136463, + 0.016113605, + -0.018587384, + 0.01552353, + -0.0023503737, + -0.027710862, + 0.042371973, + -0.029390307, + 0.0012113573, + 0.046979103, + 0.008011412, + 0.042122327, + -0.035722274, + 0.040669832, + 0.002584418, + -0.010655405, + -0.0032198841, + 0.00092412095, + 0.00835184, + 0.036380436, + 0.0067404797, + -0.0061163614, + -0.012017118, + -0.0021432796, + -0.003083713, + 0.00505536, + -0.0218328, + -0.033339277, + 0.018632775, + -0.049157843, + 0.02202571, + -0.0053560715, + -0.0032879699, + -0.020368958, + -0.016590204, + 0.005236922, + -0.027461214, + 0.023217209, + 0.01646538, + -0.015398705, + -0.014899411, + -0.007892262, + 0.0084029045, + 0.020471087, + 0.02757469, + 0.011353283, + -0.03279459, + -0.024715094, + 0.034042828, + -0.001119158, + 0.031342097, + 0.016295167, + -0.0351322, + 0.019881012, + -0.03256764, + -0.025032826, + -0.015251187, + 0.02757469, + 0.01400295, + 0.020289525, + 0.012652584, + 0.01428664, + -0.0003044351, + -0.0040766285, + 0.0024269698, + 0.0060596233, + -0.017055457, + -0.0031489616, + -0.012539108, + 0.0021886702, + 0.026848443, + -0.004502164, + -0.016953329, + 0.012539108, + 0.01447955, + 0.035336453, + 0.035222977, + -0.013424221, + -0.016147649, + 0.013185922, + 0.039762024, + -0.016862547, + -0.0075007696, + 0.030116554, + 0.010252565, + -0.01120009, + 0.0063773566, + 0.06772253, + -0.018768946, + 0.025464036, + -0.010768881, + -0.027325043, + 0.007807155, + 0.04071522, + 0.012788756, + -0.010099372, + -0.002964563, + -0.0007148994, + -0.02995769, + -0.0064057256, + -0.007324882, + 0.0048369183, + 0.023898065, + -0.0019078169, + -8.621524e-05, + -0.024556227, + 0.019188806, + -0.0065475707, + 0.005889409, + 0.0012283787, + -0.03597192, + -0.035291065, + -0.001612779, + -0.02870945, + -0.023421466, + 0.01989236, + 0.00059184874, + -0.019551931, + 0.047342226, + 0.001556041, + 0.0088454615, + -0.01656751, + -0.038377613, + 0.03200026, + 0.009049718, + 0.027506605, + -0.009696532, + -0.012618542, + 0.012947622, + 0.029367613, + -0.015637005, + 0.0051659993, + 0.048250034, + 0.019234197, + 0.005140467, + 0.017634185, + 0.008334819, + -0.03340736, + 0.018315041, + 0.024193102, + -0.018428518, + 0.016941981, + -0.01447955, + 0.018927813, + 0.02748391, + 0.0070695607, + 0.00045284053, + 0.012788756, + -0.020663997, + 0.032544944, + -0.037560586, + 0.0033021544, + -0.018156175, + -0.034814466, + 0.0076596364, + -0.0059461473, + -0.017441275, + -0.037515197, + -0.044437237, + 0.037810232, + -0.009798661, + 0.015410054, + 0.002062428, + 0.002295054, + 0.006008559, + 0.0135944355, + 0.0013290887, + -0.035631493, + -0.019495193, + 0.003112082, + 0.0036198874, + -0.0047234423, + 0.011597257, + 0.017883832, + 0.051608928, + -0.004306418, + 0.025237083, + 0.023103733, + 0.015773177, + -0.021492371, + 0.01030363, + -0.026530711, + -0.012754713, + -0.02648532, + -0.011517824, + -0.01604552, + 0.0001859944, + -0.0029532153, + 0.0052794754, + -0.017861137, + 0.029889602, + -0.015069625, + 0.0060312543, + -0.023421466, + 0.031637136, + -0.00537593, + -0.009480927, + 0.03944429, + 0.028232852, + -0.010967464, + 0.0038553502, + 0.0027844196, + 0.0027205893, + -0.0059631686, + -0.044369154, + -0.014876716, + 0.029821517, + -0.012834146, + -0.020334916, + -0.00690502, + -0.008726312, + 0.03456482, + 0.010252565, + -0.02074343, + 0.0072908388, + -0.017191628, + 0.01808809, + 0.018110784, + 0.024442751, + 0.011563214, + -0.017361842, + 0.0005159616, + -0.059869986, + 0.01822426, + 0.0072738174, + -0.012709322, + 0.016737724, + -0.039693937, + 0.0019106537, + 0.0035376172, + -0.00066312595, + 0.003861024, + 0.03340736, + -0.012085204, + 0.018485256, + -0.043552123, + 0.0046553565, + 0.0013695146, + -0.010712143, + -0.017305104, + 0.0025517936, + 0.01989236, + -0.018190218, + -0.03588114, + 0.012856841, + -0.012970317, + 0.0062298374, + -0.010263912, + -0.00958873, + -0.018280998, + -0.017248366, + 0.029503783, + -0.036153484, + 0.009310713, + -0.0045986185, + -0.030252727, + -0.011937685, + 0.025554815, + 0.005024154, + -0.030910887, + 0.0013191595, + 0.030547764, + -0.010496538, + 0.038559176, + -0.045163486, + 0.008743333, + 0.0027489583, + -0.009010002, + 0.03973933, + 0.025259778, + 0.029934993, + 0.02059591, + 0.045140788 + ] + } + ], + "model": "text-embedding-3-small", + "usage": { + "prompt_tokens": 4, + "total_tokens": 4 + } + } headers: CF-Cache-Status: - DYNAMIC CF-RAY: - - 8cc55a853a16bab5-MXP + - 8e14cbd059df4691-SIN Connection: - keep-alive Content-Type: - application/json Date: - - Wed, 02 Oct 2024 14:24:01 GMT + - Tue, 12 Nov 2024 07:26:51 GMT Server: - cloudflare Set-Cookie: test_set_cookie @@ -449,13 +1620,15 @@ interactions: - '*' access-control-expose-headers: - X-Request-ID + alt-svc: + - h3=":443"; ma=86400 content-length: - '33244' openai-model: - text-embedding-3-small openai-organization: test_openai_org_key openai-processing-ms: - - '18' + - '54' openai-version: - '2020-10-01' strict-transport-security: @@ -473,7 +1646,7 @@ interactions: x-ratelimit-reset-tokens: - 0s x-request-id: - - req_dfcdb7ecd2227bb7addc7e38f759ae6d + - req_530cddc048a226141dd6c9e8db16f235 status: code: 200 message: OK diff --git a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_embeddings/test_async_all_the_client_options[azure_provider_embeddings].yaml b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_embeddings/test_async_all_the_client_options[azure_provider_embeddings].yaml index 40b05f0..35a3e5c 100644 --- a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_embeddings/test_async_all_the_client_options[azure_provider_embeddings].yaml +++ b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_embeddings/test_async_all_the_client_options[azure_provider_embeddings].yaml @@ -1,7 +1,13 @@ interactions: - request: - body: '{"input": ["South Atlantic Ocean."], "model": "text-embedding-3-small", - "encoding_format": "float"}' + body: |- + { + "input": [ + "South Atlantic Ocean." + ], + "model": "ada", + "encoding_format": "float" + } headers: accept: - application/json @@ -14,450 +20,1615 @@ interactions: connection: - keep-alive content-length: - - '99' + - '80' content-type: - application/json host: - test.openai.azure.com user-agent: - - AsyncAzureOpenAI/Python 1.50.0 + - AsyncAzureOpenAI/Python 1.54.3 x-stainless-arch: - - x64 + - arm64 x-stainless-async: - async:asyncio x-stainless-lang: - python x-stainless-os: - - Linux + - MacOS x-stainless-package-version: - - 1.50.0 + - 1.54.3 x-stainless-retry-count: - - '0' + - '1' x-stainless-runtime: - CPython x-stainless-runtime-version: - - 3.10.12 + - 3.12.6 method: POST uri: https://test.openai.azure.com/openai/deployments/test-azure-deployment/embeddings?api-version=2023-05-15 response: body: - string: "{\n \"object\": \"list\",\n \"data\": [\n {\n \"object\": - \"embedding\",\n \"index\": 0,\n \"embedding\": [\n -0.031545125,\n - \ -0.030183462,\n 0.010235145,\n 0.0091061015,\n -0.030864293,\n - \ 0.064815015,\n 0.036061294,\n -0.0018737009,\n -0.004669359,\n - \ -0.021037648,\n 0.0026396345,\n -0.010927321,\n -0.018688783,\n - \ -0.012107427,\n 0.014955565,\n 0.02450988,\n -0.024282936,\n - \ 0.018881686,\n 0.016634947,\n 0.023170915,\n -0.028231751,\n - \ -0.03556202,\n -0.062817916,\n 0.061138533,\n 0.020390859,\n - \ -0.0150123015,\n 0.008255064,\n 0.01822355,\n -0.06377108,\n - \ 0.025962317,\n 0.10521093,\n -0.030705433,\n 0.00090280897,\n - \ 0.065722786,\n 0.039306585,\n 0.06862766,\n -0.020390859,\n - \ -0.01173297,\n -0.05587345,\n 0.008198328,\n 0.029003358,\n - \ -0.055555727,\n 0.0033445773,\n 0.0019148344,\n 0.008447966,\n - \ 0.0053501893,\n -0.06876383,\n -0.031681288,\n 0.035017356,\n - \ 0.01429743,\n -0.03415497,\n 0.028458694,\n -0.032407507,\n - \ -0.043073844,\n 0.043164622,\n -0.025758069,\n -0.013548517,\n - \ 0.00268786,\n 0.06921772,\n -0.00045140448,\n -0.04693188,\n - \ 0.048838206,\n -0.0016070425,\n -0.005143103,\n -0.046069495,\n - \ -0.0024197833,\n 0.014081834,\n 0.061365478,\n -0.056055002,\n - \ -0.01974407,\n -0.04838432,\n 0.02210428,\n 0.024055993,\n - \ -0.036356322,\n -0.05383096,\n -0.014853441,\n -0.01473997,\n - \ -0.036265545,\n -0.0015956953,\n -0.034495387,\n -0.029502634,\n - \ 0.06272714,\n 0.02154827,\n -0.012447841,\n -0.015545619,\n - \ -0.042551875,\n 0.016192406,\n 0.00840825,\n -0.018325673,\n - \ 0.026529675,\n -0.03272523,\n -0.020810703,\n -0.021037648,\n - \ -0.010445067,\n -0.010104652,\n 0.03912503,\n -0.009401128,\n - \ 0.01269748,\n 0.024124077,\n -0.0050012637,\n -0.02419216,\n - \ -0.026121177,\n 0.020799356,\n -0.01397971,\n -0.028299833,\n - \ -0.024850296,\n 0.0017857604,\n 0.010064937,\n 0.012470536,\n - \ -0.011381208,\n -0.009066386,\n 0.029457245,\n -0.0016226448,\n - \ 0.018915728,\n -0.0046636853,\n -0.021060342,\n 0.0029474266,\n - \ -0.06449729,\n 0.056009613,\n 0.0053019635,\n 0.008113224,\n - \ -0.036605958,\n 0.021378063,\n -0.014081834,\n -0.03708254,\n - \ -0.011630846,\n -0.025145322,\n -0.010263512,\n 0.006796953,\n - \ 0.003066572,\n 0.009503252,\n -0.012515925,\n -0.016078936,\n - \ -0.030909682,\n 0.020050444,\n 0.07107865,\n -0.0064395173,\n - \ -0.0216277,\n 0.0012340044,\n 0.01197126,\n 0.022921277,\n - \ 0.02791403,\n 0.0392385,\n 0.0034977642,\n 0.02010718,\n - \ -0.0043289443,\n -0.055691894,\n 0.027142422,\n 0.020118527,\n - \ -0.038444202,\n 0.013287532,\n -0.004947365,\n 0.003880731,\n - \ 0.025780763,\n -0.004728932,\n -0.012901728,\n -0.0036282565,\n - \ 0.005503376,\n 0.011755665,\n -0.0017573924,\n 0.0027587798,\n - \ -0.023012053,\n 0.043073844,\n 0.023760967,\n -0.0168165,\n - \ -0.008493355,\n 0.006632419,\n 0.015625048,\n -0.052015413,\n - \ -0.011454965,\n -0.008221022,\n -0.020674538,\n -0.025621902,\n - \ -0.0049530384,\n -0.010490456,\n -0.03576627,\n 0.009395454,\n - \ -0.031772066,\n -0.018132772,\n 0.016748417,\n -0.021287285,\n - \ 0.0022850358,\n 0.035902437,\n -0.007148715,\n 0.006825321,\n - \ 0.035902437,\n 0.0103883315,\n -0.010479108,\n -0.004192778,\n - \ -0.009463537,\n 0.01914267,\n -0.024918377,\n 0.07067015,\n - \ 0.015761215,\n -0.006944466,\n -0.046477996,\n 0.0140137505,\n - \ 0.04498017,\n -0.008198328,\n 0.03345145,\n 0.028186362,\n - \ -0.0230234,\n -0.033633,\n -0.060185373,\n -0.021809254,\n - \ -0.03315642,\n -0.05378557,\n 0.021196507,\n 0.05514723,\n - \ 0.0005794147,\n 0.016317226,\n -0.018677436,\n 0.02607579,\n - \ 0.019914277,\n -0.026620453,\n -0.0032311056,\n -0.016634947,\n - \ 0.009667786,\n 0.023488635,\n -0.012379759,\n -0.036015905,\n - \ 0.013877585,\n 0.01581795,\n 0.026302733,\n -0.013332921,\n - \ 0.05137997,\n 0.056418113,\n -0.022490084,\n 0.0095826825,\n - \ -0.021797907,\n 0.027051644,\n 0.017440595,\n -0.0065019266,\n - \ -0.034813106,\n -0.05169769,\n -0.040373217,\n -0.0058437907,\n - \ 0.011585457,\n 0.021219201,\n 0.0097926045,\n -0.028935274,\n - \ -0.014342818,\n 0.05097147,\n 0.029820355,\n -0.013401004,\n - \ -0.020254692,\n 0.046409912,\n 0.03905695,\n -0.016203754,\n - \ 0.050154477,\n -0.008192655,\n -0.014932871,\n 0.025894234,\n - \ 0.010802503,\n 0.01059258,\n -0.009486231,\n -0.050835308,\n - \ -0.052968573,\n -0.03985125,\n -0.015851991,\n -0.045592915,\n - \ -0.022932624,\n -0.048202764,\n 0.010081958,\n 0.024714129,\n - \ -0.006167185,\n 0.03315642,\n 0.006184206,\n -0.034132276,\n - \ -0.021536922,\n 0.0032538,\n 0.03760451,\n 0.0063090245,\n - \ 0.00400555,\n 0.028050195,\n 0.035062745,\n 0.02466874,\n - \ 0.019324224,\n 0.011500353,\n -0.004467947,\n 0.027777864,\n - \ -0.05610039,\n -0.0669029,\n 0.012663438,\n -0.012549967,\n - \ -0.015647743,\n 0.008618173,\n -0.027437449,\n 0.038943477,\n - \ 0.03295217,\n 0.08142727,\n 0.024759518,\n -0.020651843,\n - \ -0.015988158,\n -0.02607579,\n 0.0062863305,\n 0.021332674,\n - \ -0.0018268939,\n -0.027891336,\n -0.003662298,\n 0.054194067,\n - \ -0.019959666,\n 0.013627947,\n -0.016510127,\n 0.008379882,\n - \ 0.035312384,\n -0.04634183,\n 0.016078936,\n 0.023897134,\n - \ 0.010978384,\n 0.020458942,\n 0.0009148653,\n 0.03488119,\n - \ -0.017520025,\n 0.036991764,\n -0.011948567,\n -0.054874897,\n - \ -0.0032027378,\n 0.0035771942,\n -0.027142422,\n 0.012062038,\n - \ 0.024282936,\n -0.024963766,\n 0.012039344,\n -0.00036594612,\n - \ -0.046205662,\n -0.025304182,\n -0.02367019,\n 0.024373714,\n - \ -0.015193856,\n 0.001831149,\n 0.0066210716,\n 0.043709286,\n - \ -0.00992877,\n 0.022138322,\n -0.039647,\n -0.03272523,\n - \ 0.028367916,\n -0.035335075,\n 0.06050309,\n -0.009219573,\n - \ -0.01833702,\n 0.02246739,\n 0.02519071,\n -0.010042243,\n - \ -0.009611051,\n -0.01850723,\n 0.01437686,\n 0.07539058,\n - \ -0.015466188,\n 0.008680582,\n 0.0056707463,\n -0.0058097495,\n - \ -0.010172735,\n -0.023715578,\n 0.030523878,\n 0.033088338,\n - \ -0.034767717,\n -0.06871844,\n 0.02130998,\n -0.032589063,\n - \ 0.0036424405,\n -0.031658594,\n 0.0008226696,\n 0.04513903,\n - \ -0.024124077,\n -0.005199839,\n 0.0022126974,\n 0.008232369,\n - \ -0.011585457,\n -0.03576627,\n 0.04797582,\n -0.0520608,\n - \ 0.019154018,\n -0.003594215,\n 0.043391567,\n -0.05174308,\n - \ 0.0015006628,\n -0.03256637,\n -0.0012581171,\n -0.044526283,\n - \ 0.052514687,\n -0.027460143,\n 0.004970059,\n 0.029366467,\n - \ -0.052560076,\n 0.003350251,\n -0.030001909,\n -0.0043629855,\n - \ -0.02607579,\n -0.038466893,\n -0.026824702,\n 0.034745023,\n - \ 0.0026821864,\n -0.0032906784,\n 0.008748665,\n 0.04237032,\n - \ -0.018053342,\n -0.038217258,\n 0.048792817,\n 0.034245748,\n - \ -0.027255895,\n -0.0062749833,\n -0.022807805,\n 0.009174184,\n - \ 0.015114426,\n -0.05718972,\n 0.025667291,\n 0.0055771326,\n - \ -0.014524373,\n -0.0009311769,\n -0.054057904,\n -0.0037644226,\n - \ 0.03383725,\n 0.00013448166,\n 0.040350523,\n -0.015466188,\n - \ 0.051606912,\n 0.004453763,\n 0.025621902,\n -0.005063673,\n - \ 0.055328786,\n -0.007551539,\n -0.004206962,\n 0.011914525,\n - \ 0.0728942,\n 0.03465425,\n -0.030342324,\n 0.0142066525,\n - \ 0.015806602,\n 0.056055002,\n -0.010263512,\n 0.007528845,\n - \ 0.03011538,\n -0.017043443,\n 0.024759518,\n -0.0069955285,\n - \ 0.012844993,\n -0.031091237,\n 0.011284757,\n 0.0037786064,\n - \ 0.020368164,\n 0.00070707034,\n 0.008714624,\n -0.007971385,\n - \ -0.0019502942,\n 0.03277062,\n 0.021378063,\n -0.054693345,\n - \ -0.017894482,\n 0.053694792,\n -0.0049870797,\n -0.0059062,\n - \ 0.012720174,\n 0.028640248,\n -0.019437697,\n -0.008618173,\n - \ 0.027460143,\n 0.012799604,\n 0.045978718,\n 0.008379882,\n - \ -0.01670303,\n -0.054693345,\n 0.011063487,\n 0.02984305,\n - \ 0.028163668,\n 0.0007474946,\n 0.066176675,\n -0.0052196966,\n - \ -0.008720297,\n -0.022092933,\n -0.00923092,\n 0.028889887,\n - \ 0.014762664,\n -0.019710029,\n 0.0036225829,\n -0.0077444413,\n - \ -0.020356817,\n -0.04330079,\n -0.0316359,\n -0.0024552431,\n - \ -0.006479232,\n -0.028640248,\n -0.0139683625,\n -0.018405104,\n - \ -0.029026052,\n -0.0047317683,\n 0.013673336,\n -0.042801514,\n - \ -0.026121177,\n 0.022762416,\n 0.031681288,\n -0.00816996,\n - \ -0.008351515,\n 0.034858495,\n -0.041099437,\n -0.045161724,\n - \ -0.02194542,\n 0.052923184,\n -0.04929209,\n 0.04209799,\n - \ 0.0045927656,\n -0.011778359,\n 0.0057927286,\n 0.07570829,\n - \ -0.044753224,\n -0.016839195,\n -0.053195518,\n -0.025848845,\n - \ 0.015261939,\n -0.0011127315,\n 0.04025975,\n -0.017588109,\n - \ -0.03560741,\n -0.007177083,\n -0.0044310684,\n -0.01209608,\n - \ 0.025576513,\n -0.0015616538,\n -0.0014737133,\n -0.007699053,\n - \ -0.021253243,\n -0.019267488,\n -0.0025701332,\n -0.045933332,\n - \ -0.0011942893,\n -0.028640248,\n -0.0064849057,\n -0.021151118,\n - \ 0.037218705,\n 0.009503252,\n 0.027028952,\n -0.015364064,\n - \ -0.007954364,\n -0.026733924,\n -0.021525575,\n -0.0404413,\n - \ 0.014558415,\n -0.011477659,\n 0.034086887,\n 0.009321697,\n - \ 0.015602354,\n -0.014751317,\n 0.027346672,\n -0.008952915,\n - \ 0.006791279,\n -0.018371062,\n -0.008238043,\n 0.043845452,\n - \ 0.023216303,\n -0.019244794,\n 0.00056523073,\n 0.014002403,\n - \ -0.007449415,\n -0.0027828927,\n -0.035493936,\n 0.008022447,\n - \ -0.01746329,\n -0.013900279,\n 0.013469087,\n 0.029366467,\n - \ -0.016521474,\n -0.022365265,\n -0.009474884,\n 0.008680582,\n - \ 0.057779774,\n 0.016725725,\n -0.018802255,\n -0.0009070641,\n - \ 0.03031963,\n 0.023579413,\n 0.032884087,\n -0.012629396,\n - \ -0.0065700095,\n 0.0066380925,\n 0.023760967,\n 0.033337977,\n - \ -0.017644845,\n -0.014331471,\n 0.014422249,\n -0.022966666,\n - \ -0.022660293,\n -0.015250592,\n 0.044185866,\n -0.006280657,\n - \ 0.01193722,\n -0.02322765,\n -0.0040679593,\n 0.032112483,\n - \ 0.0064395173,\n 0.054647956,\n -0.02807289,\n -0.01369603,\n - \ -0.02330708,\n -0.02118516,\n -0.0085841315,\n 0.04273343,\n - \ -0.008385556,\n 0.012152815,\n 0.042597264,\n 0.018246245,\n - \ -0.024804907,\n -0.017088832,\n -0.004998427,\n -0.03456347,\n - \ 0.0005911165,\n 0.014569762,\n -0.023715578,\n -0.015545619,\n - \ 0.020515677,\n 0.011250716,\n 0.043663897,\n 0.017724274,\n - \ -0.051243804,\n 0.010853565,\n 0.013185408,\n -0.056872,\n - \ 0.03367839,\n 0.006955813,\n -0.01746329,\n -0.007074958,\n - \ 0.024419103,\n 0.029820355,\n 0.007965711,\n -0.020447595,\n - \ -0.0038722206,\n -0.023375163,\n 0.05237852,\n 0.0061898795,\n - \ 0.0022297183,\n -0.018427799,\n 0.028458694,\n 0.019085934,\n - \ 0.007369985,\n -0.0073132487,\n 0.018371062,\n -0.018654741,\n - \ 0.024850296,\n 0.05315013,\n 0.008595479,\n -0.032906782,\n - \ 0.022558168,\n 0.014615151,\n 0.002622614,\n 0.014240694,\n - \ -0.012243593,\n 0.012447841,\n -0.014660539,\n -0.029003358,\n - \ 0.011846442,\n 0.034495387,\n 0.018371062,\n 0.011199653,\n - \ -0.019539822,\n -0.02907144,\n -0.033791862,\n 0.01778101,\n - \ -0.039079644,\n -0.029207608,\n -0.0043232706,\n -0.008742992,\n - \ 0.037944924,\n 0.01893842,\n -0.046273746,\n -0.015466188,\n - \ -0.0057473397,\n -0.008362862,\n -0.001641084,\n 0.027845947,\n - \ -0.04309654,\n 0.039669696,\n -0.009996854,\n 0.042302236,\n - \ 0.0072508394,\n 0.03976047,\n -0.0048140353,\n 0.02582615,\n - \ -0.010989731,\n 0.012947117,\n 0.0005173599,\n -0.03383725,\n - \ 0.02246739,\n -0.006848015,\n 0.029638799,\n -0.011245042,\n - \ -0.0013992474,\n -0.0120733855,\n -0.0112393685,\n -0.009559988,\n - \ 0.04761271,\n -0.027074339,\n 0.045592915,\n 0.022648945,\n - \ 0.017826399,\n 0.014263389,\n 0.018666089,\n -0.020742621,\n - \ -0.0019616415,\n 0.020368164,\n -0.017236346,\n 0.04513903,\n - \ -0.0051799817,\n 0.012050691,\n 0.0074153733,\n -0.0063090245,\n - \ -0.01249323,\n -0.007874934,\n 0.0008531651,\n 0.020402206,\n - \ 0.04348234,\n 0.0166236,\n 0.014842094,\n -0.04761271,\n - \ 0.005049489,\n 0.001504918,\n -0.0091061015,\n -0.010768461,\n - \ 0.020629149,\n -0.042188767,\n -0.0071146735,\n 0.036106683,\n - \ 0.010059264,\n -0.022989359,\n 0.013003853,\n 0.03252098,\n - \ 0.00862952,\n 0.024010604,\n 0.0019375287,\n 0.0011645029,\n - \ -0.005109062,\n -0.016305879,\n 0.018007953,\n 0.00026045294,\n - \ 0.009809625,\n 0.01269748,\n 0.036628652,\n -0.006989855,\n - \ -0.021525575,\n 0.020844745,\n 0.0037956273,\n 0.013060588,\n - \ 0.0014595293,\n 0.020243345,\n 0.01193722,\n 0.025145322,\n - \ -0.0030467142,\n -0.014047792,\n -0.01594277,\n 0.0476581,\n - \ -0.003472233,\n -0.029661493,\n 0.0053672097,\n 0.0160222,\n - \ 0.02367019,\n -0.03199901,\n -0.014660539,\n 0.012765562,\n - \ 0.012243593,\n -0.034472693,\n -0.0029729577,\n -0.005528907,\n - \ 0.018802255,\n 0.040577468,\n 0.017088832,\n 0.02047029,\n - \ -0.00031293358,\n -0.017610803,\n 0.008601152,\n 0.0520608,\n - \ 0.019573862,\n 0.016975362,\n -0.025735375,\n -0.0024694272,\n - \ 0.03320181,\n -0.0038778943,\n 0.0049757324,\n -0.0073586376,\n - \ 0.022864541,\n -0.017156916,\n -0.00672887,\n -0.0014878972,\n - \ -0.030501183,\n 0.008033794,\n -0.002619777,\n 0.0012836482,\n - \ 0.0015432147,\n 0.024033299,\n -0.008209675,\n 0.030818904,\n - \ 0.0045927656,\n 0.00596861,\n -0.0015006628,\n -0.02943455,\n - \ -0.01990293,\n 0.058460604,\n 0.033564918,\n 0.033542223,\n - \ -0.044072397,\n -0.031681288,\n 0.01589738,\n 0.03156782,\n - \ -0.00885079,\n -0.0024935398,\n -0.040350523,\n 0.0028325366,\n - \ 0.051153027,\n -0.0048707714,\n 0.047158826,\n -0.010859239,\n - \ -0.006893404,\n -0.009769911,\n 0.0006854398,\n -0.0324302,\n - \ 0.020685885,\n 0.033088338,\n -0.007840892,\n 0.024577962,\n - \ 0.008289105,\n -0.011676234,\n 0.014354166,\n 0.024759518,\n - \ 0.011869136,\n 0.024441797,\n 0.0018978136,\n 0.052877795,\n - \ 0.0077784825,\n 0.045025557,\n -0.020697232,\n 0.01497826,\n - \ -0.023159567,\n 0.06122931,\n 0.0070976526,\n -0.025304182,\n - \ -0.014399555,\n 0.0142520415,\n -0.038058396,\n -0.02947994,\n - \ -0.026461592,\n -0.024963766,\n 0.029252995,\n 0.05991304,\n - \ 0.0019658967,\n -0.013310227,\n 0.00049856614,\n 0.018858992,\n - \ 0.019494433,\n 0.0128790345,\n -0.0025162343,\n 0.010677684,\n - \ -0.009474884,\n 0.013525822,\n -0.013310227,\n -0.030705433,\n - \ -0.032452896,\n 0.025644597,\n -0.022807805,\n -0.007438068,\n - \ -0.005321821,\n -0.029933825,\n -0.013037895,\n -0.0037360545,\n - \ 0.010195429,\n 0.008533069,\n -0.03340606,\n -0.018416451,\n - \ 0.015341369,\n -0.00877136,\n 0.023602108,\n 0.020924175,\n - \ -0.009304676,\n -0.009395454,\n 0.036174767,\n -0.04466245,\n - \ -0.02330708,\n -0.013673336,\n 0.0073075755,\n 0.021605005,\n - \ 0.02070858,\n -0.0058494643,\n 0.025077239,\n 0.03671943,\n - \ 0.0150123015,\n -0.050290644,\n 0.037309483,\n -0.044526283,\n - \ 0.010660663,\n 0.02194542,\n 0.010473435,\n -0.016544169,\n - \ 0.027868642,\n 0.022853194,\n 0.020731274,\n 0.00026453083,\n - \ -0.0061104493,\n -0.009951465,\n -0.05001831,\n -0.028526777,\n - \ -0.021525575,\n 0.017792357,\n -0.0017971075,\n -0.01633992,\n - \ 0.020606454,\n 0.0019275999,\n -0.04021436,\n 0.005704788,\n - \ 0.028640248,\n 0.011131571,\n 0.0013644968,\n 0.043822758,\n - \ 0.021673089,\n -0.040078193,\n 0.03174937,\n 0.024237547,\n - \ 0.012618049,\n 0.03195362,\n 0.0034552123,\n -0.0024197833,\n - \ -0.016782459,\n 0.0046778694,\n -0.0027488512,\n 0.024850296,\n - \ -0.009032344,\n -0.021820601,\n -0.02582615,\n 0.013843543,\n - \ 0.0017602292,\n -0.011925872,\n 0.0050324686,\n -0.02943455,\n - \ -0.011108876,\n 0.010870585,\n -0.0013602416,\n 0.016453391,\n - \ 0.0040083867,\n 0.00025389285,\n -0.025145322,\n 0.03199901,\n - \ 0.0021517065,\n 0.011159939,\n -0.008924547,\n 0.049655203,\n - \ -0.005608337,\n 0.028027501,\n -0.030501183,\n -0.011466312,\n - \ -0.02314822,\n 0.01345774,\n 0.032929476,\n 0.0070182225,\n - \ -0.03787684,\n 0.026665842,\n 0.028458694,\n 0.036356322,\n - \ -0.0034580491,\n -0.011914525,\n 0.0057416665,\n 0.03184015,\n - \ 0.0054125986,\n 0.0027814743,\n -0.058732934,\n 0.0021744007,\n - \ 0.0035006008,\n 0.016430696,\n -0.005758687,\n 0.0015446331,\n - \ -0.006099102,\n -0.029752271,\n 0.0020481637,\n 0.05374018,\n - \ -0.046750326,\n -0.012118774,\n -0.01826894,\n 0.05142536,\n - \ 0.04761271,\n -0.0036821556,\n 0.028436,\n 0.007812524,\n - \ 0.0041644103,\n -0.03667404,\n -0.017758315,\n -0.0051345928,\n - \ 0.027210506,\n -0.024078688,\n -0.036356322,\n -0.0038353424,\n - \ 0.0059288945,\n -0.00989473,\n 0.02503185,\n 0.023170915,\n - \ -0.027369365,\n 0.0008361443,\n -0.034132276,\n 0.033814557,\n - \ 0.029184913,\n 0.018200856,\n -0.008896179,\n 0.016192406,\n - \ -0.0036878292,\n -0.021366715,\n 0.002981468,\n -0.01550023,\n - \ -0.012345717,\n -0.01233437,\n -0.014059139,\n -0.0073870053,\n - \ 0.022875888,\n -0.017599456,\n 0.006138817,\n 0.014422249,\n - \ -0.019256141,\n -0.035743576,\n 0.036900986,\n 0.024419103,\n - \ 0.025168017,\n 0.024396408,\n -0.054284845,\n 0.023397857,\n - \ -0.003719034,\n -0.0596861,\n 0.022875888,\n 0.053694792,\n - \ 0.006467885,\n 0.0444582,\n -0.009395454,\n -0.031204708,\n - \ 0.004402701,\n 0.0025843172,\n 0.0054636607,\n 0.053649403,\n - \ -0.020368164,\n -0.01081385,\n -0.01589738,\n 0.0009198297,\n - \ 0.017871788,\n 0.010178409,\n 0.028050195,\n -0.010252165,\n - \ -0.0053700465,\n 0.0029077115,\n 0.06354413,\n 0.0134463925,\n - \ -0.0035006008,\n -0.0056991144,\n -0.006360087,\n -0.014354166,\n - \ 0.017917177,\n -0.008464986,\n 0.00038686747,\n -0.017633498,\n - \ -0.011642193,\n 0.0006974962,\n 0.011437944,\n 0.030138075,\n - \ -0.011846442,\n -0.058596767,\n 0.013310227,\n 0.017361164,\n - \ -0.02503185,\n 0.0076309694,\n 0.022149669,\n -0.0023488635,\n - \ 0.012345717,\n -0.00018598716,\n -0.024532575,\n -0.009446517,\n - \ 0.01589738,\n 0.028821804,\n 0.023375163,\n -0.047839653,\n - \ 0.006411149,\n 0.02582615,\n 0.043958925,\n 0.008192655,\n - \ 0.015806602,\n -0.040622856,\n -0.02138941,\n -0.019687334,\n - \ -0.006757238,\n 0.016112976,\n 0.0644519,\n -0.02879911,\n - \ 0.04300576,\n 0.003892078,\n -0.011755665,\n -0.010161388,\n - \ 0.024782212,\n -0.03392803,\n -0.0070636114,\n -0.030614655,\n - \ -0.017156916,\n -0.010479108,\n 0.024646046,\n -0.0037757696,\n - \ 0.04357312,\n 0.0018084546,\n -0.018813603,\n -0.0053813937,\n - \ 0.016044894,\n -0.00035654925,\n -0.00931035,\n 0.017837746,\n - \ -0.004141716,\n -0.006791279,\n 0.031726677,\n -0.019233447,\n - \ 0.008572784,\n -0.0118124,\n 0.040191665,\n 0.0034977642,\n - \ -0.019721376,\n -0.02186599,\n -0.040759023,\n 0.0009155745,\n - \ -0.037763372,\n -0.0022226262,\n -0.027800558,\n -0.02943455,\n - \ -0.003960161,\n -0.027028952,\n 0.02022065,\n 0.018030647,\n - \ -0.025689986,\n -0.003957324,\n 0.00283821,\n -0.01089328,\n - \ -0.004022571,\n 0.0042977394,\n 0.017667538,\n -0.02791403,\n - \ -0.017996605,\n 0.0033842924,\n -0.014808052,\n 0.027573615,\n - \ -0.004561561,\n 0.016010853,\n 0.0071260207,\n -0.007931669,\n - \ -0.016090283,\n -0.031136625,\n 0.043278094,\n 0.039828554,\n - \ 0.03572088,\n 0.018132772,\n 0.005804076,\n 0.018166814,\n - \ 0.029162219,\n 0.028889887,\n 0.09368221,\n 0.013741419,\n - \ -0.031136625,\n -0.020969564,\n 0.030750822,\n -0.008896179,\n - \ -0.02194542,\n 0.025236098,\n 0.014263389,\n 0.015216551,\n - \ 0.013843543,\n 0.005327495,\n 0.019551167,\n 0.001143227,\n - \ -0.00070316973,\n 0.03351953,\n 0.042914983,\n 0.0018155467,\n - \ 0.05069914,\n -0.012277634,\n 0.0032793311,\n -0.025758069,\n - \ -0.029411856,\n 0.035017356,\n 0.012118774,\n 0.020867439,\n - \ 0.0005123955,\n -0.019641945,\n 0.017826399,\n -0.011103203,\n - \ 0.008527395,\n -0.02907144,\n 0.0049076495,\n 0.020141222,\n - \ -0.04865665,\n 0.030841598,\n -0.015375411,\n 0.0006191298,\n - \ -0.025758069,\n 0.03551663,\n 0.0010701796,\n -0.012470536,\n - \ -0.025553819,\n -0.011613825,\n -0.00945219,\n -0.0044707838,\n - \ -0.0003148839,\n -0.003265147,\n -0.015273286,\n 0.002941753,\n - \ -0.012799604,\n 0.045229807,\n -0.0015134284,\n 0.014422249,\n - \ -0.040078193,\n -0.020549718,\n 0.0017956891,\n -0.023375163,\n - \ 0.014944218,\n -0.0236248,\n 0.012470536,\n 0.007171409,\n - \ 0.02655237,\n 0.067992225,\n 0.0021970952,\n -0.023556719,\n - \ -0.023397857,\n -0.008459313,\n -0.011767012,\n -0.015965464,\n - \ -0.0042977394,\n -0.012799604,\n 0.020447595,\n -0.01429743,\n - \ 0.006343066,\n 0.005214023,\n 0.037899535,\n -0.03199901,\n - \ -0.04153063,\n 0.04209799,\n -0.01838241,\n -0.014615151,\n - \ 0.03833073,\n 0.0010886188,\n 0.03111393,\n -0.0444582,\n - \ -0.0042268196,\n -0.0031658595,\n 0.010286206,\n -0.033292588,\n - \ -0.012549967,\n 0.0074550887,\n 0.0060537136,\n 0.007960037,\n - \ 0.01809873,\n 0.014819399,\n 0.00073756586,\n 0.056962777,\n - \ 0.0014339982,\n 0.0388527,\n 0.03127279,\n 0.006167185,\n - \ -0.028027501,\n -0.014161264,\n 0.015488883,\n -0.04498017,\n - \ 0.025009155,\n -0.020129874,\n -0.01105214,\n 0.01698671,\n - \ 0.0011595386,\n 0.027074339,\n -0.0043743327,\n -0.016589558,\n - \ 0.0036169093,\n 0.007835219,\n 0.011364187,\n 0.016124323,\n - \ -0.018575313,\n 0.015556965,\n -0.0023190773,\n -0.027687086,\n - \ 0.04241571,\n -0.02943455,\n 0.0011772686,\n 0.04697727,\n - \ 0.008056488,\n 0.042166073,\n -0.035743576,\n 0.040668245,\n - \ 0.0025616228,\n -0.010649316,\n -0.0032509633,\n 0.00097018277,\n - \ 0.008374209,\n 0.036379017,\n 0.0067458907,\n -0.006116123,\n - \ -0.012016649,\n -0.0021517065,\n -0.003066572,\n 0.005049489,\n - \ -0.021831948,\n -0.033383366,\n 0.018609352,\n -0.049155924,\n - \ 0.022058891,\n -0.005378557,\n -0.003267984,\n -0.020368164,\n - \ -0.016634947,\n 0.005242391,\n -0.02739206,\n 0.023193609,\n - \ 0.016476085,\n -0.015398106,\n -0.014853441,\n -0.007874934,\n - \ 0.008391229,\n 0.02047029,\n 0.027573615,\n 0.011375534,\n - \ -0.032793313,\n -0.024736824,\n 0.0340415,\n -0.0011297523,\n - \ 0.03136357,\n 0.016283184,\n -0.03508544,\n 0.019846195,\n - \ -0.03256637,\n -0.025009155,\n -0.015250592,\n 0.027641699,\n - \ 0.014047792,\n 0.020288734,\n 0.012686132,\n 0.014320124,\n - \ -0.00029999073,\n -0.004059449,\n 0.0024594984,\n 0.0060423664,\n - \ -0.01710018,\n -0.0031034502,\n -0.01249323,\n 0.0021829112,\n - \ 0.026847396,\n -0.004519009,\n -0.016975362,\n 0.012527272,\n - \ 0.014478984,\n 0.03535777,\n 0.035266995,\n -0.013412351,\n - \ -0.016124323,\n 0.013208102,\n 0.03976047,\n -0.0168165,\n - \ -0.0074777827,\n 0.030138075,\n 0.010286206,\n -0.011216674,\n - \ 0.0063771075,\n 0.06771989,\n -0.018756866,\n 0.025463043,\n - \ -0.010728746,\n -0.02727859,\n 0.0078068506,\n 0.040713634,\n - \ 0.012720174,\n -0.010064937,\n -0.0029871417,\n -0.0007567142,\n - \ -0.02991113,\n -0.0063544135,\n -0.007301902,\n 0.0048282193,\n - \ 0.02387444,\n -0.0019261815,\n -0.00009503252,\n -0.024532575,\n - \ 0.019176712,\n -0.006564336,\n 0.0058891797,\n 0.001175141,\n - \ -0.035947826,\n -0.0352443,\n -0.0015999505,\n -0.028776415,\n - \ -0.023420552,\n 0.019846195,\n 0.0005861521,\n -0.01950578,\n - \ 0.047385767,\n 0.0015829297,\n 0.0088224225,\n -0.016487433,\n - \ -0.038421508,\n 0.03195362,\n 0.009015324,\n 0.027528226,\n - \ -0.009662112,\n -0.012652091,\n 0.0128790345,\n 0.029343773,\n - \ -0.015647743,\n 0.00514594,\n 0.048248153,\n 0.019256141,\n - \ 0.005128919,\n 0.01762215,\n 0.008334494,\n -0.033383366,\n - \ 0.018325673,\n 0.024124077,\n -0.018450493,\n 0.016952667,\n - \ -0.014478984,\n 0.018927073,\n 0.027437449,\n 0.0071146735,\n - \ 0.00045034068,\n 0.012765562,\n -0.020697232,\n 0.032543674,\n - \ -0.037581816,\n 0.003321883,\n -0.018132772,\n -0.034813106,\n - \ 0.007665011,\n -0.005923221,\n -0.017474636,\n -0.03755912,\n - \ -0.044390116,\n 0.037854146,\n -0.009735869,\n 0.015398106,\n - \ 0.00207795,\n 0.002314822,\n 0.00598563,\n 0.013571211,\n - \ 0.0012808114,\n -0.03560741,\n -0.01950578,\n 0.0031233076,\n - \ 0.0036112359,\n -0.0046920534,\n 0.0115968045,\n 0.017871788,\n - \ 0.0516523,\n -0.0042636977,\n 0.025258793,\n 0.023102831,\n - \ 0.015795255,\n -0.021491533,\n 0.01029188,\n -0.026575064,\n - \ -0.012776909,\n -0.02650698,\n -0.011494679,\n -0.016044894,\n - \ 0.00020105761,\n -0.0029701209,\n 0.005270759,\n -0.017871788,\n - \ 0.02991113,\n -0.015103078,\n 0.006019672,\n -0.023420552,\n - \ 0.031681288,\n -0.005389904,\n -0.009457864,\n 0.03944275,\n - \ 0.028209057,\n -0.010967037,\n 0.0038778943,\n 0.0027545248,\n - \ 0.0026921153,\n -0.00598563,\n -0.04441281,\n -0.014887483,\n - \ 0.029820355,\n -0.012833646,\n -0.020368164,\n -0.006876383,\n - \ -0.008674909,\n 0.03451808,\n 0.010252165,\n -0.020742621,\n - \ 0.00726786,\n -0.017236346,\n 0.01809873,\n 0.01809873,\n - \ 0.024441797,\n 0.011562763,\n -0.017349819,\n 0.0005187783,\n - \ -0.05991304,\n 0.018291632,\n 0.0072621866,\n -0.012731521,\n - \ 0.016759764,\n -0.03969239,\n 0.0019417839,\n 0.0035431527,\n - \ -0.00062444876,\n 0.0038864047,\n 0.033428755,\n -0.012062038,\n - \ 0.018484535,\n -0.043550424,\n 0.004655175,\n 0.0013793899,\n - \ -0.010620948,\n -0.01730443,\n 0.0025034687,\n 0.019891582,\n - \ -0.01822355,\n -0.03592513,\n 0.01285634,\n -0.01293577,\n - \ 0.006252289,\n -0.010274859,\n -0.009588356,\n -0.018302979,\n - \ -0.017168263,\n 0.029548021,\n -0.036152072,\n 0.00931035,\n - \ -0.0046353177,\n -0.03027424,\n -0.011925872,\n 0.025553819,\n - \ 0.0050041005,\n -0.030864293,\n 0.0013340013,\n 0.030569267,\n - \ -0.01051315,\n 0.038534977,\n -0.045161724,\n 0.008697603,\n - \ 0.0027148097,\n -0.008969936,\n 0.039783165,\n 0.025304182,\n - \ 0.029933825,\n 0.020595107,\n 0.04513903\n ]\n - \ }\n ],\n \"model\": \"text-embedding-3-small\",\n \"usage\": {\n \"prompt_tokens\": - 4,\n \"total_tokens\": 4\n }\n}\n" + string: |- + { + "object": "list", + "data": [ + { + "object": "embedding", + "index": 0, + "embedding": [ + -0.0046182093, + 0.003616477, + 0.012347229, + -0.026422685, + -0.025347343, + 0.023401486, + -0.0131857395, + 0.0063720406, + -0.0106510045, + -0.008269891, + 6.240823e-05, + 0.008986785, + 0.0032196247, + -0.01349298, + 0.010862233, + 0.0010697411, + 0.009050794, + -0.014363495, + 0.02099477, + -0.0100045195, + -0.0024083178, + 0.013928237, + 0.01691103, + 0.0058023655, + 0.01623254, + -0.0012569658, + -0.0060039917, + -0.015643664, + -0.0036068757, + -0.0021698861, + -0.00021942894, + -0.002600343, + -0.018127192, + -0.027677251, + 0.002941188, + -0.010715013, + 0.0016178134, + -0.013582592, + -0.009140406, + -0.0032692312, + -0.029392676, + 0.0075081903, + -0.0034756584, + -0.0379186, + 0.015643664, + 0.022774205, + 0.012769684, + -0.018511241, + -0.018920897, + 0.011207879, + 0.021775672, + 0.023004634, + -0.0009977316, + -0.010894237, + 0.004973456, + -0.005888777, + -0.027856475, + -0.008583532, + 0.042040747, + -0.023324676, + -0.0031348134, + -0.0031348134, + -0.013736212, + 0.0065928698, + -0.014337891, + 0.00386611, + 0.008026659, + 0.026166651, + -0.015950903, + 0.009422042, + 0.028189318, + 0.02941828, + -0.0041573485, + 0.0065672663, + 0.009050794, + -0.010862233, + -0.008257089, + -0.022249335, + -0.015349224, + 0.012744081, + 0.0056999517, + -0.013582592, + -0.0310825, + 0.026320271, + 0.021314811, + -0.0077898274, + -0.011150271, + 0.00090731966, + -0.0024947291, + 0.0044837915, + 0.011559925, + 0.020277875, + 0.0030692047, + -0.0065000574, + -0.005594338, + 0.0006016794, + -0.0066824816, + 0.029469486, + -0.0030307998, + -0.034129303, + -0.003373245, + -0.004419783, + -0.026397081, + -0.004973456, + -0.023683123, + 0.015016381, + -0.00074929884, + 0.014209874, + 0.027677251, + -0.0016882226, + -0.01834482, + -0.01911292, + 0.023990365, + -0.020034643, + 0.00055687345, + -0.009217216, + 0.002115479, + 0.00174423, + -0.015323621, + -0.016155731, + 0.01774314, + 0.011975979, + 0.019394558, + -0.016847022, + 0.013556988, + 0.0011777553, + -0.012616064, + -0.032388274, + 0.003206823, + -0.014542718, + 0.016578186, + 0.009716482, + -0.0049158484, + 4.588105e-05, + 0.0036676838, + 0.002995595, + -0.038481876, + 0.0012161604, + -0.00043685763, + -0.016398963, + 0.0054183146, + 0.023695925, + 2.5903417e-05, + -0.025680188, + -0.01432509, + 0.028778195, + 0.013057723, + 0.00034084497, + 0.01038217, + -0.011547123, + 0.020201065, + -0.021340415, + 0.006836102, + -0.022607783, + -0.01917693, + 0.017192667, + 0.0077834264, + 0.013352161, + 0.0023603113, + -0.006400844, + -0.0026515496, + 0.003760496, + 0.016360559, + -0.013966642, + 0.025347343, + 0.017935166, + -0.0045830044, + -0.030903276, + 0.008308296, + 0.012776085, + -0.012385634, + 0.02190369, + -0.006490456, + 0.016808618, + -0.00030364006, + 0.04009489, + -0.010996651, + 0.0008857168, + -0.0011049458, + -0.010222148, + -0.026627513, + -0.0013561789, + 0.004979857, + -0.0028787798, + -0.003744494, + 0.0034820593, + 0.01645017, + -0.0016274146, + 0.030724052, + -0.02039309, + 0.02356791, + 0.0070793335, + -0.0015137997, + -0.009146807, + -0.66978437, + -0.010900638, + -0.012334427, + -0.021878086, + 0.019420162, + 0.010420575, + 0.018178398, + 0.013147335, + -0.015298018, + -0.010068528, + -0.027549233, + 0.025577774, + -0.019125722, + -0.008090667, + -0.008449115, + -0.012007983, + -0.005021462, + 0.016296549, + 0.022620583, + -0.011956777, + -0.034154907, + 0.023811141, + 0.024143985, + 0.02941828, + 0.028522162, + -0.012686473, + 0.027882077, + -0.013620997, + -0.021775672, + 0.006007192, + -0.017231073, + -0.0060936036, + 0.010452579, + 0.0113743, + 0.03796981, + -0.03494861, + -0.018677663, + 0.012091195, + 0.012756882, + 0.021084381, + 0.02009865, + 0.010356566, + 0.018204002, + -0.021634854, + 0.008161076, + 0.015605259, + 0.022569377, + -0.014171469, + -0.011182275, + -0.021775672, + 0.0019506573, + -0.005799165, + -0.025360145, + 0.0045670024, + -0.00043405726, + -0.019804211, + 0.027011562, + -0.029162247, + 0.01728228, + 0.015899697, + -0.0076234057, + 0.014222676, + -0.03679205, + -0.028675782, + -0.005322302, + 0.022121318, + -0.014389098, + 0.021750068, + -0.00042485603, + -0.008321097, + 0.0136466, + 0.0026963556, + -0.005223089, + -0.003373245, + 0.01447871, + 0.009102001, + 0.020789942, + -0.00087371527, + -0.0028339738, + -0.009204414, + 0.030698448, + 0.0021826879, + -0.01758952, + 0.005171882, + 0.018139992, + -0.040760577, + -0.015067588, + 0.01068941, + -0.016706204, + -0.008737152, + 0.012539254, + 0.04839038, + -0.0051430785, + 0.01637336, + 0.002144283, + -0.0073737726, + 0.0042021545, + 0.014453107, + -0.002085075, + -0.036433607, + 0.016462972, + 0.0013145733, + 0.019957833, + -0.0128913, + 0.026960356, + -0.0006404845, + -0.028522162, + 0.013275351, + 0.03569111, + -0.043704964, + 0.016053317, + 0.0020562713, + -0.023401486, + 0.011124668, + -0.0023363081, + -0.018204002, + -0.0019442565, + 0.0036804855, + 0.012398436, + -0.03167138, + -0.003328439, + 0.012916904, + 0.0181912, + -0.008429912, + -0.0144915115, + 0.006308032, + 0.015797284, + -0.023465496, + -0.0012897701, + -0.012321625, + -0.013608195, + 0.004807034, + 0.012136001, + 0.0020498703, + 0.021481233, + 0.021033173, + 0.025833808, + 0.009274824, + 0.0046918187, + -0.009716482, + -0.018664861, + -0.024912085, + -0.0072969627, + -0.0036932873, + -0.007104937, + -0.026883546, + -0.009940512, + -0.019458566, + -0.043704964, + 0.009005988, + -0.011489515, + -0.007777026, + -0.019740203, + 0.013275351, + -0.0014521915, + -0.008244287, + -0.014056254, + -0.016808618, + -0.0042181564, + -0.023311876, + 0.025104111, + 0.026883546, + -0.0138386255, + 0.0016066119, + 0.0044933925, + -0.010926241, + -0.024054373, + 0.017448701, + -0.017384693, + -0.03208103, + 0.017922364, + -0.014235478, + 0.014350693, + 0.0031412144, + 0.014337891, + 0.026576305, + -0.01728228, + -0.008404309, + 0.012385634, + -0.012827292, + -0.021954896, + 0.005616741, + 0.015899697, + -0.011233482, + 0.025488162, + -0.011630334, + 0.037252914, + 0.0026867543, + -0.02448963, + 0.0045958064, + 0.015003579, + -0.0002092276, + 0.00045045943, + -0.007892241, + -0.004435785, + 0.0014129864, + -0.01569487, + 0.016936634, + 0.008269891, + 0.01623254, + 0.025488162, + 0.01766633, + 0.015234009, + -0.0023539106, + 0.011745549, + -0.022518171, + 0.014645131, + -0.027113976, + 0.051513996, + 0.017179865, + 0.013134533, + -0.017487107, + 0.0197146, + -0.010548592, + 0.009716482, + 0.03192741, + 0.01598931, + -0.0076234057, + 0.01554125, + 0.033694044, + 0.007719418, + 0.010702211, + -0.008468317, + -0.016923832, + -0.024976095, + 0.010971047, + 0.01114387, + -0.0026867543, + 0.0017410297, + -0.027267596, + -0.0045990064, + -0.019791411, + 0.010868633, + 0.025936222, + 0.02039309, + 0.0011673539, + -0.0047974326, + -0.02319666, + 0.012987313, + -0.0024195192, + -0.0021698861, + 0.019023309, + 0.029392676, + 0.00017552315, + 0.028317334, + 0.005482323, + 0.037406534, + 0.0008697147, + -0.005680749, + -0.00021242801, + -0.0066056713, + -0.0062984307, + -0.034590162, + 0.011559925, + 0.013467376, + -0.025001697, + -0.0022690992, + 0.0023155054, + -0.008929178, + 0.022543773, + 0.0058695744, + 0.02017546, + 0.0043493737, + -0.015746078, + 0.024464026, + -0.017615123, + -0.010817427, + 0.008365903, + -0.004131745, + -0.014837157, + 0.006548064, + -0.02783087, + 0.007642608, + -0.024079977, + 0.0010753418, + -0.02176287, + -0.004896646, + -0.006103205, + -0.013505781, + -0.008244287, + -0.0071817474, + -0.054791227, + 0.01228322, + 0.026217857, + -0.0008481119, + -0.0020306678, + -0.010676608, + 0.015041984, + -0.03722731, + 0.042015143, + 0.010977448, + 0.0145043135, + -0.0013601794, + 0.0017554315, + -0.016795816, + -0.024105579, + 0.005719154, + -0.011361498, + 0.016104525, + 0.008161076, + -0.0039525214, + -0.010068528, + 0.005555933, + 0.017295081, + 0.036510415, + 0.017141461, + -0.008429912, + 0.015707672, + -0.019087318, + -0.011169474, + -0.00079730514, + -0.023542305, + -0.0036388799, + 0.018306416, + -0.0073865745, + 0.012225613, + -0.0023635118, + -0.007841034, + 0.019688997, + -0.0014945972, + -0.0049766563, + -0.019202532, + -0.009441245, + -0.027498027, + 0.0659543, + 0.012347229, + 0.01266727, + 0.007540195, + 0.028445352, + -0.008890772, + -0.015221207, + 0.013313756, + 0.0001259166, + 0.0001872247, + 0.00045165958, + -0.0075529963, + 0.005754359, + 0.02539855, + 0.0042629624, + 0.011655938, + -0.009089199, + -0.035588693, + 0.0045445994, + -0.00033384404, + 0.009524456, + -0.007111338, + -0.002318706, + 0.039890062, + 0.012616064, + 0.002025867, + 0.012340828, + 0.004419783, + 0.032413874, + -0.02372153, + -0.003910916, + 0.004951053, + -0.023030238, + 0.00060007913, + 0.015592457, + -0.004512595, + -0.0021250802, + -0.0010705412, + 0.029469486, + -0.0042053545, + 0.029623108, + -0.0112910895, + 0.0037764981, + -0.011156672, + 0.00970368, + 0.0022771005, + -0.0034980613, + 0.03505102, + -0.01189917, + -0.010862233, + 0.013467376, + 0.006772093, + -0.002024267, + -0.02176287, + -0.019586584, + -0.0011665538, + 0.007821832, + 0.007028127, + 0.007693815, + -0.016859824, + 0.0021618851, + -0.0028179716, + 0.0061960174, + -0.016194137, + -0.0013881831, + -0.02319666, + -0.006525661, + -0.008026659, + -0.047801506, + -0.019573782, + 0.0030900075, + -0.023593511, + -0.021173993, + 0.013076925, + 0.01387703, + 0.0059399833, + -0.004109342, + 0.0013769816, + 0.004518996, + 0.01121428, + 0.007777026, + 0.0018866488, + -0.03692007, + -0.014542718, + 0.012808089, + 0.019228136, + 0.02737001, + -0.024796871, + -0.012456043, + 0.004525397, + 0.021314811, + 0.015349224, + 0.030135175, + 5.935783e-05, + 0.007988254, + -0.00021762871, + 0.0038757112, + 0.0042117555, + -0.010055726, + 0.003600475, + 0.01940736, + -0.020649124, + 0.010983849, + -0.0063368357, + 0.024592044, + -0.0074249795, + -0.007937047, + 0.015682068, + -0.04808314, + -0.01735909, + 0.002865978, + -0.0042565614, + 0.0050470657, + -0.020188263, + -0.025308939, + 0.042578418, + 0.017192667, + 0.01403065, + -0.013313756, + -0.004390979, + -0.0067656925, + -0.012161604, + 0.011783955, + 0.01084303, + 0.01797357, + 0.020828348, + 0.00735457, + -0.013518583, + -0.034231715, + 0.00060848024, + 0.008026659, + 0.007930646, + -0.009223617, + -0.004198954, + -0.01940736, + 0.0048198355, + 0.0151443975, + -0.0033540423, + -0.003214824, + -0.007687414, + 0.009159608, + -0.0132241445, + -0.011099064, + -0.015041984, + -0.018178398, + -0.026115445, + 0.009466848, + -0.019765807, + -0.0075721988, + 0.011003051, + -0.0080586625, + -0.00085451273, + -0.018536845, + -0.005072669, + -0.041119024, + -0.02319666, + -0.039915666, + -0.0071433424, + 0.018652061, + 0.009268423, + 0.010977448, + 0.007930646, + 0.03889153, + 0.017167063, + -0.0036644833, + -0.018856887, + 0.0067656925, + -0.0060904035, + -0.023299074, + 0.023708727, + 0.025411353, + 0.027677251, + -0.016962238, + -0.017807148, + 0.007264958, + 0.018408827, + 0.005632743, + -0.00644245, + 0.0077578234, + -0.017192667, + -0.01129749, + -0.004829437, + -0.004176551, + 0.001661019, + -0.009044393, + -0.022198128, + 0.056276225, + 0.010030123, + -0.0036900868, + 0.00065368623, + 0.032490686, + 0.007834634, + 0.02137882, + 0.0025491363, + -0.018152794, + -0.033694044, + -0.024438424, + -0.00041005408, + -0.0067144856, + 0.0034820593, + 0.0024995296, + -0.006407245, + 0.0018994506, + -0.01660379, + 0.0059143803, + 0.015886895, + -0.0023363081, + 0.006541663, + -0.00044005804, + -0.027088372, + -0.015285216, + -0.010330963, + -0.017960768, + -0.026832338, + 0.00795625, + 0.0045670024, + -0.026179453, + 0.020341882, + -0.022172524, + -0.013544186, + 0.007834634, + 0.019420162, + 0.017986372, + -0.0105997985, + 0.05745398, + 0.010286157, + 0.010663806, + -0.01691103, + -0.010881435, + -0.0031636173, + -0.003904515, + 0.03768817, + -0.021750068, + -0.005543131, + -0.033028357, + -0.0030804062, + -0.013096128, + 0.021494035, + 0.0021490834, + 0.026550703, + 0.010887836, + 0.003214824, + -0.017192667, + -0.00079090433, + -0.0257826, + 0.040222906, + -0.018434431, + 0.013339359, + -0.010663806, + -0.006362439, + -0.0416823, + 0.012308824, + -0.0045061945, + 0.046342112, + 0.016642194, + -0.003962123, + -0.019023309, + 0.008845967, + 0.0003956522, + -0.01038217, + 0.0031412144, + -0.002267499, + -0.02737001, + 0.015784482, + 0.0005160681, + 0.013749014, + 0.004406981, + 0.0052646943, + -0.0054695215, + 0.02139162, + -0.016053317, + -0.02888061, + 0.0030516025, + 0.025155319, + -0.0012457643, + 0.0087179495, + 0.0014921968, + 0.0035492682, + -0.017256675, + -0.029827934, + 0.020380288, + 0.00803306, + 0.008749954, + -0.021852482, + -0.008820363, + -0.009671676, + -0.0333612, + -0.005139878, + -0.0112526845, + -0.009895706, + -0.028752593, + -0.010606199, + -0.014107461, + 0.0197146, + 0.008673144, + -0.029520694, + 0.0023747133, + 0.005322302, + -0.01508039, + 0.021084381, + -0.011099064, + 0.02698596, + -0.030186381, + 0.01008773, + -0.005194285, + -0.010465381, + 0.025577774, + -0.010490984, + -0.007488988, + -0.035153437, + -0.010734215, + 0.020047445, + -0.01752551, + 0.0093452325, + 0.042655226, + -0.002517132, + 0.006352838, + 0.0026211457, + -0.00091932126, + 0.030340001, + -0.0028003694, + -0.013889832, + 0.02221093, + -0.0011681541, + 0.010721414, + -0.0020498703, + 0.0052198884, + 0.0031396141, + -0.0065096584, + -0.008941979, + 0.0128913, + 0.020457098, + 0.0007108938, + 0.0051526795, + -0.033924475, + -0.024272002, + -0.009671676, + 0.011233482, + 0.006301631, + -0.004237359, + 0.011700743, + 0.030826466, + 0.0257698, + -0.019279342, + -0.003971724, + 0.009550059, + -0.01463233, + -0.004653414, + -0.018063182, + -0.001789036, + -0.02872699, + 0.02570579, + -0.0049318504, + -0.01834482, + -0.026781132, + 0.016859824, + -0.019753005, + 0.0057735615, + -0.0017266277, + 0.011163073, + 0.009966115, + 0.02532174, + 0.010753418, + 0.029674314, + -0.0033380403, + 0.007348169, + -0.008596334, + -0.006490456, + 0.0072969627, + 0.0059367833, + 0.0018306414, + -0.027523631, + -0.028112508, + 0.007693815, + 0.01630935, + -0.008557929, + -0.010734215, + 0.010266954, + -0.016053317, + -0.0024051173, + -0.018984905, + 0.006244024, + 0.012596861, + 0.024246398, + 0.0010073328, + -0.033335596, + 0.0031316131, + 0.01387703, + 0.008404309, + -0.01273768, + -0.0042245574, + -0.015746078, + 0.012968111, + 0.0009569262, + -0.01917693, + -0.011815959, + 0.011585528, + -0.026704323, + 0.004768629, + 0.009242819, + -0.0026259464, + 0.010426975, + 0.0026643514, + -0.004695019, + -0.0145171145, + -0.017000642, + -0.013403368, + 0.017231073, + 0.0028755793, + -0.0059015783, + 0.0032340265, + -0.039992474, + -0.009838098, + -0.023286272, + 0.014337891, + -0.02737001, + -0.01637336, + -0.024028769, + 0.024348812, + 0.033105165, + -0.012091195, + -0.0014385898, + -0.020226669, + -0.013608195, + 0.0019874622, + 0.006035996, + -0.0012761683, + -0.010074929, + -0.0031428146, + 0.011105465, + -0.016475772, + -0.026038634, + 0.013441773, + 0.013428971, + -0.013608195, + 0.025564972, + 0.1978629, + 0.011707144, + -0.009159608, + 0.045369186, + -0.021135587, + 0.039890062, + 0.020930761, + 0.020789942, + 0.0046342113, + 0.0132241445, + -0.018767275, + 0.020354684, + -0.016590988, + 0.005034264, + -0.0021826879, + -0.0010825428, + -0.027549233, + -0.013428971, + 0.004829437, + -0.011687942, + 0.0067528905, + -0.005191085, + -0.030800862, + -0.009300427, + 0.03092888, + -0.017039048, + -0.03927558, + -0.0041893525, + -0.011617532, + -0.0001304172, + -0.0036964875, + 0.008365903, + -0.008468317, + 0.017346287, + -0.019868221, + -0.01623254, + -0.002888381, + -0.02290222, + 0.021109985, + 0.037560154, + -0.005527129, + 0.026038634, + 0.016168533, + -0.024143985, + 0.0034436542, + 0.038635496, + -0.002237095, + 0.0018642459, + -0.0086859455, + 0.018293614, + -0.002381114, + 0.009082798, + 0.015298018, + 0.054688815, + 0.013480178, + 0.0060007917, + 0.029111039, + 0.017883958, + 0.008001056, + 0.004464589, + -0.018639259, + 0.0295719, + -0.0012521652, + -0.003025999, + -0.013672204, + 0.019266542, + -0.03328439, + 0.026397081, + 0.025449757, + -0.008807561, + 0.019087318, + -0.031133706, + -0.019087318, + -0.0039301184, + -0.032337066, + -0.023209462, + 0.022044508, + -0.01152792, + 0.01849844, + 0.03313077, + -0.016578186, + 0.0036964875, + -0.02615385, + -0.00042405594, + -0.013672204, + -0.023081444, + 0.009332431, + 0.020226669, + -0.013300954, + 0.019919427, + -0.0166806, + -0.014337891, + -0.00041605489, + -0.010542191, + 0.032004222, + 0.0010097332, + -0.0029843936, + 0.0112910895, + -0.0072969627, + 0.0075850002, + -0.0037572957, + 0.003933319, + 0.01016454, + -0.009908507, + -0.007770625, + -0.011591929, + -0.01857525, + 8.066064e-05, + 0.016667798, + 0.010663806, + -0.006317633, + -0.018280812, + -0.0016770212, + -0.024220794, + -0.0061128065, + 0.0035076626, + 0.020405892, + 0.0039013147, + 0.052742958, + 0.004615009, + -0.013787419, + -0.0020146656, + -0.0069641187, + 0.009799693, + -0.004080538, + -0.03553749, + -0.034538954, + 0.010343764, + 0.0049542533, + -0.04004368, + 0.007943448, + 0.005104673, + -0.014363495, + -0.012872098, + -0.009262022, + 0.035204645, + 0.011579127, + -0.009838098, + -0.025232129, + -0.0054631205, + 0.0356399, + -0.004000528, + -0.0022931024, + 0.005703152, + -0.0098509, + -0.031799395, + 0.036408003, + -0.013800221, + -0.030621639, + -0.0059303823, + 0.00049566536, + -0.007444182, + 0.017627925, + 0.017755942, + 0.03533266, + 0.016629394, + -0.018216804, + -0.009793292, + -0.018434431, + 0.02327347, + -0.012065591, + -0.0011681541, + 0.021801276, + -0.02629467, + -0.0060936036, + 0.01977861, + -0.16253024, + 0.009774089, + 0.0004086539, + -0.023209462, + 0.016885428, + 0.020354684, + 0.022185326, + 0.015349224, + -0.014747545, + 0.0049158484, + 0.03569111, + 0.0219805, + -0.036177572, + -0.0025155318, + -0.01403065, + -0.018063182, + -0.011790355, + 0.0069513167, + -0.005725555, + 0.009863701, + 0.015234009, + -0.022799807, + 0.00917241, + -0.02242856, + 0.010644604, + 0.008711549, + -0.018856887, + 0.023363082, + -0.02032908, + -0.002685154, + -0.00019222536, + -0.0004428584, + 0.028163714, + -0.0044165826, + 0.002888381, + 0.032644305, + 0.0018786478, + -0.019688997, + -0.023772735, + 0.009812494, + 0.010426975, + 0.015490043, + 0.0045606014, + 0.015592457, + -0.0075145913, + 0.012340828, + 0.024924887, + -0.006906511, + 0.01045898, + -0.02737001, + -0.01561806, + -0.026934752, + -0.008801161, + 0.0019250539, + 0.011745549, + 0.023619115, + 0.009134005, + 0.0039013147, + 0.015976507, + -0.000447259, + -0.019893823, + -0.0067976965, + -0.015246811, + -0.03556309, + 0.024553638, + -0.003472458, + -0.01349298, + 0.0028547766, + -0.017768744, + 0.017691934, + -0.021122785, + -0.0093452325, + -0.009012389, + -0.020521106, + -0.014094659, + 0.0125584565, + -0.02244136, + 0.0181912, + -0.010407773, + -0.0039301184, + -0.008135473, + 0.0272932, + -0.03351482, + 0.0017154262, + 0.008090667, + -0.00049926585, + -0.021263605, + 0.010260553, + -0.0005440718, + 0.0026627511, + 0.021097183, + -0.02032908, + -0.0029155845, + -0.024207992, + 0.051462788, + 0.02721639, + -0.005776762, + 0.016667798, + -0.0021170792, + 0.019893823, + 0.014798752, + -0.011393502, + -0.023107048, + 0.0065064584, + 0.034308527, + 0.032106634, + 0.015630862, + 0.0067656925, + 0.049747363, + -0.0037412934, + -0.00098493, + 0.0054535195, + 0.013300954, + 0.01008773, + 0.0021426827, + 0.024438424, + 0.0012833693, + -0.042040747, + 0.012315224, + -0.012315224, + 0.030032761, + 0.017384693, + -0.007828233, + 0.015003579, + 0.004115743, + -0.022991832, + -0.08454235, + -0.033642836, + 0.030596036, + 0.030340001, + -0.003328439, + 0.017307883, + 0.012174406, + 0.022761403, + -0.0007841034, + 0.016142929, + -0.01296171, + -0.019010507, + 0.0011937574, + -0.018204002, + 0.044677895, + -0.0008049062, + -0.011662338, + -0.018460035, + -0.026345875, + -0.012955309, + 0.019343352, + 0.0001614213, + -0.015822887, + -0.003155616, + -0.015566853, + 0.0066120722, + -0.01940736, + 0.020060247, + 0.0067528905, + 0.0053030993, + 0.00787944, + -0.016130127, + 0.0037764981, + -0.014286685, + -0.011207879, + -0.01720547, + -0.017717537, + 0.013710609, + 0.024131183, + -0.0034276522, + 0.01903611, + 0.005949585, + 0.02464325, + -0.024592044, + 0.008429912, + -0.016706204, + -0.0013129732, + 0.007156144, + -0.0086923465, + -0.024796871, + 0.010439777, + -0.005680749, + -0.03599835, + 0.015861291, + -0.008449115, + -0.009511654, + 0.016027713, + 0.02190369, + -0.0021426827, + 0.016245343, + -0.029136643, + 0.019765807, + 0.000970528, + 0.012872098, + 0.007873039, + 0.019548178, + -0.023439892, + 0.0053959116, + 0.009799693, + -0.015374828, + 0.009050794, + 0.021109985, + -0.019087318, + 0.006164013, + -0.022185326, + 0.0059783887, + -0.03100569, + 0.0151443975, + -0.018703267, + -0.02698596, + -0.029981555, + -0.018984905, + -0.028214922, + -0.0020018641, + 0.010036523, + 0.017935166, + -0.002214692, + -0.01303852, + -0.007520992, + -0.018434431, + 0.01372341, + 0.036561623, + -0.00082970946, + -0.031850602, + -0.022492567, + 0.013774617, + -0.018767275, + -0.0099917175, + 0.0099789165, + -0.0021186795, + -0.03510223, + -0.004042133, + -0.06226741, + 0.017909562, + 0.013441773, + 0.0099917175, + 0.00084331125, + -0.017397495, + 0.0045478, + -0.004374977, + -0.016770212, + 0.008135473, + -0.008545127, + 0.020149859, + -0.0033604433, + 0.007828233, + -0.0121296, + 0.0014625929, + 0.014453107, + 0.02183968, + 0.009230018, + 0.00583757, + -0.023081444, + 0.0029731921, + 0.003267631, + 0.0027491627, + -0.010971047, + 0.004791032, + 0.0051814835, + 0.010740616, + -0.0125584565, + 0.006868106, + 0.011771153, + -0.009537258, + -0.027498027, + 0.05025943, + -0.018741673, + -0.020303478, + 0.002099477, + -0.00071129383, + 0.006413646, + 0.029597504, + -0.0049926587, + -0.02865018, + 0.034026887, + 0.0077898274, + -0.0015153999, + 0.029879142, + 0.015656466, + -0.0065000574, + 0.0032356267, + -0.0027235593, + 0.0034852596, + 0.020303478, + 0.0080458615, + -0.010465381, + -0.016334955, + -0.026013032, + 0.009518055, + 0.03971084, + 0.010471781, + -0.004070937, + 0.02539855, + 0.021302009, + 0.021302009, + -0.0009809294, + -0.006029595, + 0.003176419, + -0.00012341628, + 0.0074633844, + 0.010305359, + -0.037841793, + -0.033028357, + -0.00940284, + 0.019842617, + 0.0054407176, + 0.011329494, + -0.023324676, + -0.012232013, + 0.022466963, + 0.0001706225, + -0.0034052492, + 0.013454575, + 0.001296171, + 0.0037700974, + 0.03236267, + 0.001728228, + -0.010727815, + -0.0057799625, + 0.015886895, + -0.008090667, + -0.005059867, + -0.015438836, + 0.01175195, + -0.0010217348, + -0.021826878, + -0.034897402, + 0.013160136, + 0.008538727, + -0.020431494, + -0.014837157, + 0.034538954, + -0.007066532, + 0.011156672, + -0.011406304, + 0.004186152, + -0.02342709, + 0.014363495, + -0.008513123, + -0.035921536, + -0.0011193476, + -0.015413233, + 0.016027713, + 0.00113695, + -0.0035844727, + 0.0027427617, + -0.00894838, + 0.013979444, + -0.024079977, + -0.024015967, + -0.01372341, + -0.020265073, + -0.02379834, + 0.011950376, + 0.033335596, + -0.0017922363, + -0.012648068, + 0.019996237, + 0.018396026, + -0.021647654, + -0.002630747, + 0.002062672, + -0.003070805, + -0.0067656925, + -4.0830386e-05, + -0.011489515, + -0.02721639, + 0.016462972, + 0.010510187, + -0.0197146, + -0.02857337, + 0.049184088, + 0.018011976, + -0.02629467, + 0.024745664, + 0.007034528, + 0.012859296, + 0.017768744, + 0.01751271, + -0.016987842, + -0.016194137, + 0.00856433, + -0.016962238, + 0.0046694158, + -0.026806736, + -0.018152794, + 0.0049670553, + -0.02629467, + 0.015899697, + -0.03781619, + 0.009550059, + 0.021442829, + 0.0041669495, + 0.026857942, + 0.012014384, + -0.018613655, + -0.0046438123, + -0.0028691785, + -0.010522988, + -0.0053095003, + -0.055405706, + -0.0027763662, + -0.008922777, + -0.053408645, + 0.0006884908, + -0.0067656925, + -0.009198013, + 0.0028643778, + -0.013685005, + 0.018242406, + 0.027190786, + -0.0012705675, + 0.0086923465, + -0.029059833, + -0.019048912, + 0.023260668, + -0.0035588695, + -0.0036420804, + -0.007892241, + -0.011502317 + ] + } + ], + "model": "ada", + "usage": { + "prompt_tokens": 4, + "total_tokens": 4 + } + } headers: Content-Length: - - '33207' + - '33444' Content-Type: - application/json Date: - - Wed, 02 Oct 2024 14:48:21 GMT + - Wed, 13 Nov 2024 05:29:22 GMT Set-Cookie: test_set_cookie Strict-Transport-Security: - max-age=31536000; includeSubDomains; preload access-control-allow-origin: - '*' apim-request-id: - - d7c6be85-be3d-43fe-9c17-22122a62e4c0 + - d5a87091-ffe2-40ca-b044-e41c0badaf69 azureml-model-session: - - d005-20240531125325 - openai-organization: test_openai_org_key + - y1aa697a585e8-15 + openai-organization: test_openai_org_id x-content-type-options: - nosniff x-ms-client-request-id: - - d7c6be85-be3d-43fe-9c17-22122a62e4c0 + - d5a87091-ffe2-40ca-b044-e41c0badaf69 x-ms-region: - - East US + - Switzerland North x-ratelimit-remaining-requests: - - '2' + - '0' x-ratelimit-remaining-tokens: - - '2994' + - '988' x-request-id: - - 9036d977-abdc-4ec1-ade8-767e104b00a4 + - b32b917f-c7d1-47e6-9549-674b28fb7087 status: code: 200 message: OK diff --git a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_embeddings/test_async_all_the_client_options[openai_provider_embeddings].yaml b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_embeddings/test_async_all_the_client_options[openai_provider_embeddings].yaml index 283531e..dec9308 100644 --- a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_embeddings/test_async_all_the_client_options[openai_provider_embeddings].yaml +++ b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_embeddings/test_async_all_the_client_options[openai_provider_embeddings].yaml @@ -1,7 +1,13 @@ interactions: - request: - body: '{"input": ["South Atlantic Ocean."], "model": "text-embedding-3-small", - "encoding_format": "float"}' + body: |- + { + "input": [ + "South Atlantic Ocean." + ], + "model": "text-embedding-3-small", + "encoding_format": "float" + } headers: accept: - application/json @@ -18,426 +24,1591 @@ interactions: host: - api.openai.com user-agent: - - AsyncOpenAI/Python 1.50.0 + - AsyncOpenAI/Python 1.54.3 x-stainless-arch: - - x64 + - arm64 x-stainless-async: - async:asyncio x-stainless-lang: - python x-stainless-os: - - Linux + - MacOS x-stainless-package-version: - - 1.50.0 + - 1.54.3 x-stainless-retry-count: - '0' x-stainless-runtime: - CPython x-stainless-runtime-version: - - 3.10.12 + - 3.12.6 method: POST uri: https://api.openai.com/v1/embeddings response: body: - string: "{\n \"object\": \"list\",\n \"data\": [\n {\n \"object\": - \"embedding\",\n \"index\": 0,\n \"embedding\": [\n -0.031546354,\n - \ -0.03013925,\n 0.010269586,\n 0.009123478,\n -0.030865498,\n - \ 0.06481755,\n 0.036040008,\n -0.0019063983,\n -0.004714932,\n - \ -0.020981729,\n 0.002685128,\n -0.010956117,\n -0.018689513,\n - \ -0.012062509,\n 0.015001539,\n 0.024578921,\n -0.024283884,\n - \ 0.018871075,\n 0.0166129,\n 0.023137776,\n -0.028255546,\n - \ -0.0356088,\n -0.06286576,\n 0.06109553,\n 0.020391654,\n - \ -0.014990192,\n 0.008221343,\n 0.018258303,\n -0.063728176,\n - \ 0.02596333,\n 0.105215035,\n -0.030752022,\n 0.00089717034,\n - \ 0.065770745,\n 0.039330814,\n 0.06858495,\n -0.020368958,\n - \ -0.011744776,\n -0.055921018,\n 0.008249712,\n 0.028936403,\n - \ -0.055603284,\n 0.0033787508,\n 0.0019801578,\n 0.0084596425,\n - \ 0.0053532347,\n -0.06876651,\n -0.031682525,\n 0.034996025,\n - \ 0.014297987,\n -0.034179,\n 0.02843711,\n -0.032386076,\n - \ -0.043075524,\n 0.043166306,\n -0.025736379,\n -0.013560393,\n - \ 0.002700731,\n 0.069220416,\n -0.00047553575,\n -0.046979103,\n - \ 0.04884011,\n -0.0016780277,\n -0.0051177717,\n -0.046116684,\n - \ -0.0024269698,\n 0.014105079,\n 0.06136787,\n -0.05605719,\n - \ -0.019767536,\n -0.048386205,\n 0.022037057,\n 0.024125017,\n - \ -0.036380436,\n -0.05383306,\n -0.014842673,\n -0.014740544,\n - \ -0.036289655,\n -0.0015915022,\n -0.034496732,\n -0.029549174,\n - \ 0.06282037,\n 0.02150372,\n -0.012414285,\n -0.0155689195,\n - \ -0.04253084,\n 0.016204387,\n 0.0084256,\n -0.018405823,\n - \ 0.026530711,\n -0.032771897,\n -0.020777473,\n -0.02102712,\n - \ -0.010479517,\n -0.010144763,\n 0.039194643,\n -0.009333408,\n - \ 0.01276606,\n 0.024125017,\n -0.005049686,\n -0.024170408,\n - \ -0.026144892,\n 0.020822862,\n -0.01400295,\n -0.028369023,\n - \ -0.024873959,\n 0.0018397311,\n 0.010071003,\n 0.012459675,\n - \ -0.011410021,\n -0.009095109,\n 0.029435698,\n -0.0016397296,\n - \ 0.018871075,\n -0.004678052,\n -0.021083858,\n 0.0029163356,\n - \ -0.06445442,\n 0.0560118,\n 0.005316355,\n 0.008085172,\n - \ -0.036561996,\n 0.0213562,\n -0.014048341,\n -0.03710668,\n - \ -0.011597257,\n -0.025168998,\n -0.010269586,\n 0.006763175,\n - \ 0.0031092449,\n 0.009514971,\n -0.012527761,\n -0.016079562,\n - \ -0.031001668,\n 0.02007392,\n 0.07108142,\n -0.0064681373,\n - \ -0.021628544,\n 0.0012709323,\n 0.01191499,\n 0.022956213,\n - \ 0.027983205,\n 0.039285425,\n 0.0034610208,\n 0.020142006,\n - \ -0.0043971986,\n -0.055648677,\n 0.027143482,\n 0.020107964,\n - \ -0.0384457,\n 0.013254007,\n -0.004933373,\n 0.0038695347,\n - \ 0.025781767,\n -0.004743301,\n -0.012868189,\n -0.0035886813,\n - \ 0.0054383418,\n 0.011756123,\n -0.0017546241,\n 0.0027517953,\n - \ -0.023012951,\n 0.04309822,\n 0.023807283,\n -0.016794462,\n - \ -0.008522054,\n 0.006649699,\n 0.01561431,\n -0.05201744,\n - \ -0.011500802,\n -0.008221343,\n -0.020675344,\n -0.02553212,\n - \ -0.0049872743,\n -0.010473844,\n -0.035767663,\n 0.009356104,\n - \ -0.031773306,\n -0.01817887,\n 0.016805809,\n -0.021254072,\n - \ 0.0022468267,\n 0.035858445,\n -0.0071376464,\n 0.0068709776,\n - \ 0.035903838,\n 0.010400084,\n -0.010496538,\n -0.0041872677,\n - \ -0.009497949,\n 0.01917746,\n -0.024896655,\n 0.07067291,\n - \ 0.015727786,\n -0.0068936725,\n -0.046411723,\n 0.014036993,\n - \ 0.0450954,\n -0.008153257,\n 0.03340736,\n 0.028255546,\n - \ -0.023035647,\n -0.03365701,\n -0.06018772,\n -0.021764714,\n - \ -0.033157714,\n -0.053787667,\n 0.021231377,\n 0.055194773,\n - \ 0.0005829834,\n 0.01632921,\n -0.018678164,\n 0.026076807,\n - \ 0.019903706,\n -0.026598796,\n -0.0032056996,\n -0.016646942,\n - \ 0.009668163,\n 0.023534942,\n -0.012402937,\n -0.035994615,\n - \ 0.013934864,\n 0.015795872,\n 0.026326453,\n -0.013367483,\n - \ 0.051336583,\n 0.056329533,\n -0.022468267,\n 0.009605751,\n - \ -0.021821452,\n 0.027030006,\n 0.017498013,\n -0.006536223,\n - \ -0.034769073,\n -0.051654316,\n -0.040420186,\n -0.005807139,\n - \ 0.011619952,\n 0.021242725,\n 0.0098327035,\n -0.028868318,\n - \ -0.0143660735,\n 0.051018853,\n 0.029821517,\n -0.01343557,\n - \ -0.02026683,\n 0.046411723,\n 0.039035775,\n -0.016204387,\n - \ 0.050111044,\n -0.008249712,\n -0.014944801,\n 0.025895244,\n - \ 0.010780229,\n 0.01063271,\n -0.009412842,\n -0.0507919,\n - \ -0.05292525,\n -0.039807413,\n -0.015863957,\n -0.045594692,\n - \ -0.022933519,\n -0.048250034,\n 0.010099372,\n 0.024715094,\n - \ -0.006184447,\n 0.033157714,\n 0.0062014684,\n -0.03413361,\n - \ -0.02154911,\n 0.0032312318,\n 0.037651367,\n 0.006309271,\n - \ 0.0039631524,\n 0.028073985,\n 0.035064112,\n 0.024624312,\n - \ 0.019347673,\n 0.0115348445,\n -0.0044936533,\n 0.027778948,\n - \ -0.05610258,\n -0.066905506,\n 0.012686627,\n -0.012561804,\n - \ -0.01561431,\n 0.00859014,\n -0.027461214,\n 0.038944997,\n - \ 0.03293076,\n 0.08147583,\n 0.024805874,\n -0.020629954,\n - \ -0.015988782,\n -0.026076807,\n 0.0063149445,\n 0.021299463,\n - \ -0.0018042699,\n -0.027892424,\n -0.0036737884,\n 0.05424157,\n - \ -0.019926403,\n 0.013605784,\n -0.016578857,\n 0.008380209,\n - \ 0.035336453,\n -0.046252854,\n 0.016068215,\n 0.02387537,\n - \ 0.010973138,\n 0.020425696,\n 0.0009177379,\n 0.03488255,\n - \ -0.017486665,\n 0.037061293,\n -0.011949033,\n -0.05487704,\n - \ -0.0031489616,\n 0.0035688232,\n -0.027166177,\n 0.012028466,\n - \ 0.024306579,\n -0.024896655,\n 0.012028466,\n -0.00041099623,\n - \ -0.046162076,\n -0.025305169,\n -0.023625722,\n 0.02439736,\n - \ -0.015217144,\n 0.0017915039,\n 0.0066043087,\n 0.043733686,\n - \ -0.010002918,\n 0.022139186,\n -0.039625853,\n -0.032771897,\n - \ 0.02843711,\n -0.035336453,\n 0.060596235,\n -0.00925965,\n - \ -0.018280998,\n 0.02244557,\n 0.025214387,\n -0.010002918,\n - \ -0.00963412,\n -0.018485256,\n 0.014400116,\n 0.07543891,\n - \ -0.015500834,\n 0.008658226,\n 0.005662457,\n -0.0058213235,\n - \ -0.0101901535,\n -0.023648418,\n 0.03052507,\n 0.033112325,\n - \ -0.034769073,\n -0.068675734,\n 0.021254072,\n -0.032590333,\n - \ 0.003605703,\n -0.031637136,\n 0.00083263085,\n 0.045140788,\n - \ -0.024125017,\n -0.0051489775,\n 0.00222555,\n 0.008227017,\n - \ -0.01155754,\n -0.03569958,\n 0.047977693,\n -0.05210822,\n - \ 0.01917746,\n -0.0035830077,\n 0.043415952,\n -0.05169971,\n - \ 0.0014737707,\n -0.032590333,\n -0.0012815706,\n -0.04452802,\n - \ 0.052516736,\n -0.02743852,\n 0.0049248626,\n 0.029390307,\n - \ -0.052607518,\n 0.0033276863,\n -0.029934993,\n -0.0043886877,\n - \ -0.026076807,\n -0.038468394,\n -0.026848443,\n 0.034723684,\n - \ 0.002713497,\n -0.0033191757,\n 0.008737659,\n 0.04234928,\n - \ -0.018020004,\n -0.038196053,\n 0.04884011,\n 0.03426978,\n - \ -0.027279653,\n -0.006241185,\n -0.022808695,\n 0.0091461735,\n - \ 0.015092321,\n -0.057237342,\n 0.025645597,\n 0.005600045,\n - \ -0.014558983,\n -0.0009078087,\n -0.054060012,\n -0.003747548,\n - \ 0.033815876,\n 0.00015452252,\n 0.0403521,\n -0.015455443,\n - \ 0.051563535,\n 0.004442589,\n 0.025622902,\n -0.005029828,\n - \ 0.055376332,\n -0.0075404863,\n -0.004241169,\n 0.01196038,\n - \ 0.07289704,\n 0.034723684,\n -0.030343506,\n 0.014229902,\n - \ 0.015818568,\n 0.0560118,\n -0.010252565,\n 0.0075348127,\n - \ 0.03013925,\n -0.01698737,\n 0.024760483,\n -0.0070241704,\n - \ 0.012834146,\n -0.031069754,\n 0.011285197,\n 0.0037815908,\n - \ 0.020334916,\n 0.0007102894,\n 0.008641205,\n -0.008051129,\n - \ -0.0019106537,\n 0.03270381,\n 0.021333506,\n -0.05474087,\n - \ -0.017917875,\n 0.05374228,\n -0.00501848,\n -0.00586104,\n - \ 0.012697975,\n 0.028664062,\n -0.01946115,\n -0.008646878,\n - \ 0.027415823,\n 0.01276606,\n 0.046025902,\n 0.008368862,\n - \ -0.016692333,\n -0.054695476,\n 0.011063919,\n 0.029821517,\n - \ 0.028096681,\n 0.00078511273,\n 0.06604309,\n -0.0051830206,\n - \ -0.008692268,\n -0.02211649,\n -0.009225606,\n 0.028891014,\n - \ 0.014729197,\n -0.019710798,\n 0.003605703,\n -0.0077107004,\n - \ -0.020368958,\n -0.043302476,\n -0.031591743,\n -0.002442573,\n - \ -0.006473811,\n -0.028641365,\n -0.013968907,\n -0.01837178,\n - \ -0.029027184,\n -0.0047291163,\n 0.013685217,\n -0.042825878,\n - \ -0.026167586,\n 0.02272926,\n 0.031727914,\n -0.008147583,\n - \ -0.00835184,\n 0.034859855,\n -0.04105565,\n -0.04518618,\n - \ -0.021923581,\n 0.05292525,\n -0.049248625,\n 0.042122327,\n - \ 0.0045730867,\n -0.011858252,\n 0.005784444,\n 0.07566586,\n - \ -0.04475497,\n -0.016783115,\n -0.053197592,\n -0.025827158,\n - \ 0.015228491,\n -0.0011723499,\n 0.04028401,\n -0.017543403,\n - \ -0.0356088,\n -0.0071830368,\n -0.004431241,\n -0.012073856,\n - \ 0.025577512,\n -0.0015744808,\n -0.0014624231,\n -0.0076993527,\n - \ -0.02126542,\n -0.019256894,\n -0.0025929287,\n -0.045935124,\n - \ -0.0011489454,\n -0.028618671,\n -0.006507854,\n -0.021129249,\n - \ 0.037220158,\n 0.00946958,\n 0.0270527,\n -0.015398705,\n - \ -0.007937653,\n -0.026712272,\n -0.02154911,\n -0.040374793,\n - \ 0.014536288,\n -0.011529171,\n 0.034088217,\n 0.009344757,\n - \ 0.015625658,\n -0.01480863,\n 0.027325043,\n -0.008970285,\n - \ 0.006791544,\n -0.01837178,\n -0.008283755,\n 0.04389255,\n - \ 0.023217209,\n -0.019290935,\n 0.00057695503,\n 0.013968907,\n - \ -0.0074553792,\n -0.0027830012,\n -0.035518017,\n 0.008005738,\n - \ -0.017452624,\n -0.013889474,\n 0.013446917,\n 0.029390307,\n - \ -0.016499424,\n -0.022366138,\n -0.009480927,\n 0.00870929,\n - \ 0.057736635,\n 0.01671503,\n -0.01879164,\n -0.0008397231,\n - \ 0.030343506,\n 0.023557637,\n 0.032817286,\n -0.012595846,\n - \ -0.0065248753,\n 0.0066383514,\n 0.023784589,\n 0.03336197,\n - \ -0.017668227,\n -0.014275293,\n 0.014445507,\n -0.023012951,\n - \ -0.022638481,\n -0.0152965775,\n 0.04418759,\n -0.0062582064,\n - \ 0.01196038,\n -0.023239903,\n -0.004059607,\n 0.03213643,\n - \ 0.006473811,\n 0.054695476,\n -0.028028594,\n -0.013707912,\n - \ -0.02330799,\n -0.02122003,\n -0.008567445,\n 0.04275779,\n - \ -0.008368862,\n 0.012210027,\n 0.042553537,\n 0.018258303,\n - \ -0.024760483,\n -0.0170895,\n -0.004990111,\n -0.034519427,\n - \ 0.000620927,\n 0.014593026,\n -0.023671113,\n -0.01552353,\n - \ 0.020516478,\n 0.0112341335,\n 0.04371099,\n 0.017690923,\n - \ -0.051155023,\n 0.010842641,\n 0.013185922,\n -0.05687422,\n - \ 0.033634312,\n 0.0069617582,\n -0.01746397,\n -0.0070525394,\n - \ 0.02439736,\n 0.029821517,\n 0.007966022,\n -0.020471087,\n - \ -0.0038723717,\n -0.023421466,\n 0.052335173,\n 0.0062014684,\n - \ 0.0022411528,\n -0.01841717,\n 0.028505195,\n 0.019120721,\n - \ 0.0073305555,\n -0.007341903,\n 0.018326389,\n -0.018666817,\n - \ 0.02491935,\n 0.053152204,\n 0.008567445,\n -0.032953456,\n - \ 0.022570394,\n 0.014615721,\n 0.0026822912,\n 0.014263945,\n - \ -0.012255418,\n 0.012448328,\n -0.014615721,\n -0.029027184,\n - \ 0.011824209,\n 0.034496732,\n 0.01841717,\n 0.011188743,\n - \ -0.019551931,\n -0.029072575,\n -0.03374779,\n 0.017759008,\n - \ -0.039081167,\n -0.029186051,\n -0.004374503,\n -0.008771702,\n - \ 0.03792371,\n 0.01893916,\n -0.04623016,\n -0.015478139,\n - \ -0.00577877,\n -0.0084256,\n -0.0016964676,\n 0.027869727,\n - \ -0.043075524,\n 0.039762024,\n -0.010002918,\n 0.042303886,\n - \ 0.007239775,\n 0.03971663,\n -0.0047745067,\n 0.025827158,\n - \ -0.010967464,\n 0.0129362745,\n 0.0005521321,\n -0.033815876,\n - \ 0.022513656,\n -0.006853956,\n 0.02966265,\n -0.0112341335,\n - \ -0.0013886637,\n -0.012051161,\n -0.011228459,\n -0.009514971,\n - \ 0.047614567,\n -0.0270527,\n 0.045549303,\n 0.022627132,\n - \ 0.017815746,\n 0.014275293,\n 0.018723555,\n -0.02074343,\n - \ -0.0019290936,\n 0.02035761,\n -0.017237019,\n 0.045140788,\n - \ -0.0051745097,\n 0.012017118,\n 0.007438358,\n -0.006297923,\n - \ -0.012527761,\n -0.007903609,\n 0.0008163186,\n 0.020403001,\n - \ 0.043461345,\n 0.016635595,\n 0.01480863,\n -0.047614567,\n - \ 0.005049686,\n 0.0015205797,\n -0.0091178045,\n -0.010763207,\n - \ 0.020652648,\n -0.04219041,\n -0.007114951,\n 0.036085397,\n - \ 0.010059656,\n -0.022922171,\n 0.013015708,\n 0.03252225,\n - \ 0.008595814,\n 0.024011541,\n 0.0019560442,\n 0.001138307,\n - \ -0.005114935,\n -0.016363252,\n 0.017951919,\n 0.00025071125,\n - \ 0.009758944,\n 0.012686627,\n 0.03660739,\n -0.0069844536,\n - \ -0.021526415,\n 0.020845558,\n 0.003775917,\n 0.013049751,\n - \ 0.0015035582,\n 0.020289525,\n 0.011937685,\n 0.025146302,\n - \ -0.0030950604,\n -0.014071035,\n -0.015966086,\n 0.047614567,\n - \ -0.0034695314,\n -0.02966265,\n 0.005370256,\n 0.016011477,\n - \ 0.023648418,\n -0.03200026,\n -0.014695154,\n 0.012788756,\n - \ 0.01224407,\n -0.034428645,\n -0.003018464,\n -0.00554047,\n - \ 0.01880299,\n 0.04057905,\n 0.0170895,\n 0.020471087,\n - \ -0.0003187969,\n -0.017645532,\n 0.008567445,\n 0.05210822,\n - \ 0.019563278,\n 0.016976023,\n -0.025690988,\n -0.0024496652,\n - \ 0.033248495,\n -0.003866698,\n 0.004998622,\n -0.007341903,\n - \ 0.022922171,\n -0.017112195,\n -0.006717785,\n -0.0015446934,\n - \ -0.030547764,\n 0.008045455,\n -0.0026198793,\n 0.0012780245,\n - \ 0.0015588779,\n 0.024011541,\n -0.008192974,\n 0.030820107,\n - \ 0.0045759236,\n 0.005929126,\n -0.0015063952,\n -0.029413003,\n - \ -0.019903706,\n 0.058372103,\n 0.033543535,\n 0.033520836,\n - \ -0.044119503,\n -0.031773306,\n 0.015886653,\n 0.031546354,\n - \ -0.008856809,\n -0.0024851265,\n -0.0403521,\n 0.002798604,\n - \ 0.05110963,\n -0.0048709614,\n 0.047160663,\n -0.010808598,\n - \ -0.006910694,\n -0.00975327,\n 0.0006953957,\n -0.032454163,\n - \ 0.020698039,\n 0.033157714,\n -0.007863893,\n 0.024556227,\n - \ 0.00830645,\n -0.011665342,\n 0.0143660735,\n 0.024715094,\n - \ 0.011846904,\n 0.024420055,\n 0.0018922138,\n 0.05287986,\n - \ 0.007750417,\n 0.044981923,\n -0.020709386,\n 0.014978845,\n - \ -0.023103733,\n 0.06118631,\n 0.0070922556,\n -0.025282474,\n - \ -0.014400116,\n 0.014275293,\n -0.038037185,\n -0.029458394,\n - \ -0.02648532,\n -0.024942046,\n 0.029254137,\n 0.059960768,\n - \ 0.0019716471,\n -0.013344789,\n 0.0005070963,\n 0.018871075,\n - \ 0.019438455,\n 0.012845494,\n -0.0024751972,\n 0.010712143,\n - \ -0.0094752535,\n 0.013503655,\n -0.013288051,\n -0.030683935,\n - \ -0.032454163,\n 0.025645597,\n -0.022808695,\n -0.0074213366,\n - \ -0.005310681,\n -0.029912299,\n -0.013049751,\n -0.0037588957,\n - \ 0.0101617845,\n 0.008561771,\n -0.03336197,\n -0.018394474,\n - \ 0.0153533155,\n -0.008749006,\n 0.023625722,\n 0.020936338,\n - \ -0.009293692,\n -0.0094185155,\n 0.03617618,\n -0.044709582,\n - \ -0.02330799,\n -0.013673869,\n 0.0072794915,\n 0.021662585,\n - \ 0.020686692,\n -0.005844019,\n 0.025078217,\n 0.036652777,\n - \ 0.01504693,\n -0.050292604,\n 0.03731094,\n -0.04448263,\n - \ 0.010706469,\n 0.021923581,\n 0.010445475,\n -0.016590204,\n - \ 0.027869727,\n 0.022808695,\n 0.020720735,\n 0.00026383193,\n - \ -0.0060823187,\n -0.009895115,\n -0.050020263,\n -0.02852789,\n - \ -0.021526415,\n 0.017815746,\n -0.0018085252,\n -0.016272472,\n - \ 0.020663997,\n 0.001933349,\n -0.040193234,\n 0.005665294,\n - \ 0.028618671,\n 0.011092288,\n 0.0013404364,\n 0.043847162,\n - \ 0.021673935,\n -0.040034365,\n 0.031727914,\n 0.024215799,\n - \ 0.012641237,\n 0.03193217,\n 0.0034808791,\n -0.002424133,\n - \ -0.016783115,\n 0.0046440093,\n -0.0027957673,\n 0.024873959,\n - \ -0.008981633,\n -0.021821452,\n -0.025804464,\n 0.013844083,\n - \ 0.0017390212,\n -0.0118922945,\n 0.005052523,\n -0.029481089,\n - \ -0.011109309,\n 0.010836967,\n -0.0013943375,\n 0.016499424,\n - \ 0.004034075,\n 0.000265605,\n -0.025146302,\n 0.032022953,\n - \ 0.0021305135,\n 0.011143352,\n -0.008958938,\n 0.049611747,\n - \ -0.0056028822,\n 0.028073985,\n -0.030502373,\n -0.011489455,\n - \ -0.023171818,\n 0.013469612,\n 0.03293076,\n 0.007058213,\n - \ -0.037901014,\n 0.026666882,\n 0.028414413,\n 0.036380436,\n - \ -0.0034638578,\n -0.01191499,\n 0.0057617486,\n 0.031886782,\n - \ 0.005483732,\n 0.0027262631,\n -0.058735225,\n 0.0021773225,\n - \ 0.00345251,\n 0.016408643,\n -0.0057702595,\n 0.0015347642,\n - \ -0.00609934,\n -0.029753432,\n 0.0020383142,\n 0.05374228,\n - \ -0.04675215,\n -0.012096551,\n -0.018292347,\n 0.051336583,\n - \ 0.04770535,\n -0.0036822993,\n 0.028414413,\n 0.007841198,\n - \ 0.004144714,\n -0.036652777,\n -0.017736314,\n -0.005143304,\n - \ 0.027234262,\n -0.024147712,\n -0.03635774,\n -0.0038752086,\n - \ 0.0059177782,\n -0.009917811,\n 0.025010131,\n 0.023171818,\n - \ -0.027370434,\n 0.00081844634,\n -0.034156304,\n 0.03383857,\n - \ 0.029231442,\n 0.01817887,\n -0.008896526,\n 0.016170343,\n - \ -0.0037021574,\n -0.021344854,\n 0.0030411594,\n -0.015455443,\n - \ -0.012357547,\n -0.012346199,\n -0.014082383,\n -0.0073872935,\n - \ 0.022854086,\n -0.017622838,\n 0.0061504045,\n 0.014422812,\n - \ -0.019234197,\n -0.035767663,\n 0.036925122,\n 0.02439736,\n - \ 0.025168998,\n 0.02439736,\n -0.054286964,\n 0.023421466,\n - \ -0.0036936468,\n -0.059733815,\n 0.022842737,\n 0.053651497,\n - \ 0.0064567896,\n 0.04445993,\n -0.009373126,\n -0.031205926,\n - \ 0.0044000354,\n 0.0025986026,\n 0.005432668,\n 0.053606108,\n - \ -0.020289525,\n -0.010831293,\n -0.015875306,\n 0.0008985888,\n - \ 0.01784979,\n 0.010178805,\n 0.0280059,\n -0.010286608,\n - \ -0.0053617456,\n 0.002879456,\n 0.06354661,\n 0.013458265,\n - \ -0.0034893898,\n -0.0057163583,\n -0.006360335,\n -0.014354725,\n - \ 0.01789518,\n -0.008453969,\n 0.0004106416,\n -0.017611489,\n - \ -0.011688038,\n 0.0007156086,\n 0.01143839,\n 0.030116554,\n - \ -0.011869599,\n -0.058644444,\n 0.013310745,\n 0.017384537,\n - \ -0.025055522,\n 0.0076596364,\n 0.022173228,\n -0.002339026,\n - \ 0.012312156,\n -0.00014521394,\n -0.024510836,\n -0.009424189,\n - \ 0.015932044,\n 0.028845623,\n 0.02335338,\n -0.04775074,\n - \ 0.0064624636,\n 0.025804464,\n 0.04396064,\n 0.008221343,\n - \ 0.015818568,\n -0.040669832,\n -0.021412939,\n -0.019676754,\n - \ -0.006763175,\n 0.0161363,\n 0.06440903,\n -0.028800232,\n - \ 0.043030135,\n 0.0038808824,\n -0.011778818,\n -0.010122067,\n - \ 0.024805874,\n -0.033906657,\n -0.0070468653,\n -0.030593155,\n - \ -0.017146237,\n -0.010479517,\n 0.024578921,\n -0.0037617325,\n - \ 0.04357482,\n 0.0017602979,\n -0.018825684,\n -0.005370256,\n - \ 0.016034171,\n -0.0003719888,\n -0.009333408,\n 0.017838443,\n - \ -0.004127693,\n -0.006825587,\n 0.031750612,\n -0.019234197,\n - \ 0.008584467,\n -0.011801514,\n 0.040215928,\n 0.003486553,\n - \ -0.019733492,\n -0.021866843,\n -0.040760614,\n 0.00087234745,\n - \ -0.037787538,\n -0.0021943438,\n -0.027824339,\n -0.029481089,\n - \ -0.003946131,\n -0.027030006,\n 0.020232787,\n 0.018042699,\n - \ -0.025690988,\n -0.0039319466,\n 0.0028482499,\n -0.01087101,\n - \ -0.004039749,\n 0.004323439,\n 0.017634185,\n -0.027892424,\n - \ -0.017997308,\n 0.0033787508,\n -0.014785935,\n 0.027597386,\n - \ -0.004584434,\n 0.016011477,\n 0.0071319724,\n -0.007954674,\n - \ -0.016102258,\n -0.031137839,\n 0.043257087,\n 0.039830107,\n - \ 0.03574497,\n 0.018099437,\n 0.005809976,\n 0.018190218,\n - \ 0.029186051,\n 0.028936403,\n 0.093685865,\n 0.013787345,\n - \ -0.03118323,\n -0.021015773,\n 0.030774716,\n -0.008958938,\n - \ -0.021934928,\n 0.025237083,\n 0.014275293,\n 0.015183101,\n - \ 0.013866778,\n 0.005347561,\n 0.019597322,\n 0.0011333425,\n - \ -0.000682275,\n 0.033498142,\n 0.042871267,\n 0.0018269651,\n - \ 0.05070112,\n -0.012255418,\n 0.003253927,\n -0.025736379,\n - \ -0.029390307,\n 0.034996025,\n 0.012141942,\n 0.020902297,\n - \ 0.0005205716,\n -0.019688101,\n 0.017827094,\n -0.011103636,\n - \ 0.008533402,\n -0.029117966,\n 0.004876635,\n 0.020142006,\n - \ -0.048613157,\n 0.030820107,\n -0.015364663,\n 0.0006216362,\n - \ -0.025781767,\n 0.03554071,\n 0.001087952,\n -0.012471023,\n - \ -0.025577512,\n -0.011653995,\n -0.009458233,\n -0.0045135114,\n - \ -0.00031489617,\n -0.003253927,\n -0.0152965775,\n 0.0029248463,\n - \ -0.012788756,\n 0.04518618,\n -0.0014751892,\n 0.0143660735,\n - \ -0.040034365,\n -0.020550521,\n 0.0018127806,\n -0.02335338,\n - \ 0.0149107585,\n -0.023648418,\n 0.012471023,\n 0.0071546678,\n - \ 0.026553405,\n 0.06799488,\n 0.002178741,\n -0.023557637,\n - \ -0.02339877,\n -0.008470991,\n -0.011767471,\n -0.015954738,\n - \ -0.0043120915,\n -0.012822798,\n 0.020471087,\n -0.014275293,\n - \ 0.006388704,\n 0.0052425954,\n 0.03787832,\n -0.03200026,\n - \ -0.04148686,\n 0.04209963,\n -0.01841717,\n -0.014638416,\n - \ 0.038332224,\n 0.0011141934,\n 0.031160535,\n -0.044414543,\n - \ -0.0042581903,\n -0.0031744938,\n 0.010292281,\n -0.03327119,\n - \ -0.012595846,\n 0.007466727,\n 0.006042602,\n 0.007994391,\n - \ 0.01808809,\n 0.014819978,\n 0.0007375946,\n 0.05705578,\n - \ 0.0014390188,\n 0.03887691,\n 0.031251315,\n 0.0061390568,\n - \ -0.02805129,\n -0.014150469,\n 0.015478139,\n -0.044981923,\n - \ 0.025055522,\n -0.020119311,\n -0.01108094,\n 0.01698737,\n - \ 0.0011879528,\n 0.0270527,\n -0.0043886877,\n -0.016533466,\n - \ 0.0036425826,\n 0.007807155,\n 0.01136463,\n 0.016113605,\n - \ -0.018587384,\n 0.01552353,\n -0.0023503737,\n -0.027710862,\n - \ 0.042371973,\n -0.029390307,\n 0.0012113573,\n 0.046979103,\n - \ 0.008011412,\n 0.042122327,\n -0.035722274,\n 0.040669832,\n - \ 0.002584418,\n -0.010655405,\n -0.0032198841,\n 0.00092412095,\n - \ 0.00835184,\n 0.036380436,\n 0.0067404797,\n -0.0061163614,\n - \ -0.012017118,\n -0.0021432796,\n -0.003083713,\n 0.00505536,\n - \ -0.0218328,\n -0.033339277,\n 0.018632775,\n -0.049157843,\n - \ 0.02202571,\n -0.0053560715,\n -0.0032879699,\n -0.020368958,\n - \ -0.016590204,\n 0.005236922,\n -0.027461214,\n 0.023217209,\n - \ 0.01646538,\n -0.015398705,\n -0.014899411,\n -0.007892262,\n - \ 0.0084029045,\n 0.020471087,\n 0.02757469,\n 0.011353283,\n - \ -0.03279459,\n -0.024715094,\n 0.034042828,\n -0.001119158,\n - \ 0.031342097,\n 0.016295167,\n -0.0351322,\n 0.019881012,\n - \ -0.03256764,\n -0.025032826,\n -0.015251187,\n 0.02757469,\n - \ 0.01400295,\n 0.020289525,\n 0.012652584,\n 0.01428664,\n - \ -0.0003044351,\n -0.0040766285,\n 0.0024269698,\n 0.0060596233,\n - \ -0.017055457,\n -0.0031489616,\n -0.012539108,\n 0.0021886702,\n - \ 0.026848443,\n -0.004502164,\n -0.016953329,\n 0.012539108,\n - \ 0.01447955,\n 0.035336453,\n 0.035222977,\n -0.013424221,\n - \ -0.016147649,\n 0.013185922,\n 0.039762024,\n -0.016862547,\n - \ -0.0075007696,\n 0.030116554,\n 0.010252565,\n -0.01120009,\n - \ 0.0063773566,\n 0.06772253,\n -0.018768946,\n 0.025464036,\n - \ -0.010768881,\n -0.027325043,\n 0.007807155,\n 0.04071522,\n - \ 0.012788756,\n -0.010099372,\n -0.002964563,\n -0.0007148994,\n - \ -0.02995769,\n -0.0064057256,\n -0.007324882,\n 0.0048369183,\n - \ 0.023898065,\n -0.0019078169,\n -0.00008621524,\n -0.024556227,\n - \ 0.019188806,\n -0.0065475707,\n 0.005889409,\n 0.0012283787,\n - \ -0.03597192,\n -0.035291065,\n -0.001612779,\n -0.02870945,\n - \ -0.023421466,\n 0.01989236,\n 0.00059184874,\n -0.019551931,\n - \ 0.047342226,\n 0.001556041,\n 0.0088454615,\n -0.01656751,\n - \ -0.038377613,\n 0.03200026,\n 0.009049718,\n 0.027506605,\n - \ -0.009696532,\n -0.012618542,\n 0.012947622,\n 0.029367613,\n - \ -0.015637005,\n 0.0051659993,\n 0.048250034,\n 0.019234197,\n - \ 0.005140467,\n 0.017634185,\n 0.008334819,\n -0.03340736,\n - \ 0.018315041,\n 0.024193102,\n -0.018428518,\n 0.016941981,\n - \ -0.01447955,\n 0.018927813,\n 0.02748391,\n 0.0070695607,\n - \ 0.00045284053,\n 0.012788756,\n -0.020663997,\n 0.032544944,\n - \ -0.037560586,\n 0.0033021544,\n -0.018156175,\n -0.034814466,\n - \ 0.0076596364,\n -0.0059461473,\n -0.017441275,\n -0.037515197,\n - \ -0.044437237,\n 0.037810232,\n -0.009798661,\n 0.015410054,\n - \ 0.002062428,\n 0.002295054,\n 0.006008559,\n 0.0135944355,\n - \ 0.0013290887,\n -0.035631493,\n -0.019495193,\n 0.003112082,\n - \ 0.0036198874,\n -0.0047234423,\n 0.011597257,\n 0.017883832,\n - \ 0.051608928,\n -0.004306418,\n 0.025237083,\n 0.023103733,\n - \ 0.015773177,\n -0.021492371,\n 0.01030363,\n -0.026530711,\n - \ -0.012754713,\n -0.02648532,\n -0.011517824,\n -0.01604552,\n - \ 0.0001859944,\n -0.0029532153,\n 0.0052794754,\n -0.017861137,\n - \ 0.029889602,\n -0.015069625,\n 0.0060312543,\n -0.023421466,\n - \ 0.031637136,\n -0.00537593,\n -0.009480927,\n 0.03944429,\n - \ 0.028232852,\n -0.010967464,\n 0.0038553502,\n 0.0027844196,\n - \ 0.0027205893,\n -0.0059631686,\n -0.044369154,\n -0.014876716,\n - \ 0.029821517,\n -0.012834146,\n -0.020334916,\n -0.00690502,\n - \ -0.008726312,\n 0.03456482,\n 0.010252565,\n -0.02074343,\n - \ 0.0072908388,\n -0.017191628,\n 0.01808809,\n 0.018110784,\n - \ 0.024442751,\n 0.011563214,\n -0.017361842,\n 0.0005159616,\n - \ -0.059869986,\n 0.01822426,\n 0.0072738174,\n -0.012709322,\n - \ 0.016737724,\n -0.039693937,\n 0.0019106537,\n 0.0035376172,\n - \ -0.00066312595,\n 0.003861024,\n 0.03340736,\n -0.012085204,\n - \ 0.018485256,\n -0.043552123,\n 0.0046553565,\n 0.0013695146,\n - \ -0.010712143,\n -0.017305104,\n 0.0025517936,\n 0.01989236,\n - \ -0.018190218,\n -0.03588114,\n 0.012856841,\n -0.012970317,\n - \ 0.0062298374,\n -0.010263912,\n -0.00958873,\n -0.018280998,\n - \ -0.017248366,\n 0.029503783,\n -0.036153484,\n 0.009310713,\n - \ -0.0045986185,\n -0.030252727,\n -0.011937685,\n 0.025554815,\n - \ 0.005024154,\n -0.030910887,\n 0.0013191595,\n 0.030547764,\n - \ -0.010496538,\n 0.038559176,\n -0.045163486,\n 0.008743333,\n - \ 0.0027489583,\n -0.009010002,\n 0.03973933,\n 0.025259778,\n - \ 0.029934993,\n 0.02059591,\n 0.045140788\n ]\n - \ }\n ],\n \"model\": \"text-embedding-3-small\",\n \"usage\": {\n \"prompt_tokens\": - 4,\n \"total_tokens\": 4\n }\n}\n" + string: |- + { + "object": "list", + "data": [ + { + "object": "embedding", + "index": 0, + "embedding": [ + -0.031546354, + -0.03013925, + 0.010269586, + 0.009123478, + -0.030865498, + 0.06481755, + 0.036040008, + -0.0019063983, + -0.004714932, + -0.020981729, + 0.002685128, + -0.010956117, + -0.018689513, + -0.012062509, + 0.015001539, + 0.024578921, + -0.024283884, + 0.018871075, + 0.0166129, + 0.023137776, + -0.028255546, + -0.0356088, + -0.06286576, + 0.06109553, + 0.020391654, + -0.014990192, + 0.008221343, + 0.018258303, + -0.063728176, + 0.02596333, + 0.105215035, + -0.030752022, + 0.00089717034, + 0.065770745, + 0.039330814, + 0.06858495, + -0.020368958, + -0.011744776, + -0.055921018, + 0.008249712, + 0.028936403, + -0.055603284, + 0.0033787508, + 0.0019801578, + 0.0084596425, + 0.0053532347, + -0.06876651, + -0.031682525, + 0.034996025, + 0.014297987, + -0.034179, + 0.02843711, + -0.032386076, + -0.043075524, + 0.043166306, + -0.025736379, + -0.013560393, + 0.002700731, + 0.069220416, + -0.00047553575, + -0.046979103, + 0.04884011, + -0.0016780277, + -0.0051177717, + -0.046116684, + -0.0024269698, + 0.014105079, + 0.06136787, + -0.05605719, + -0.019767536, + -0.048386205, + 0.022037057, + 0.024125017, + -0.036380436, + -0.05383306, + -0.014842673, + -0.014740544, + -0.036289655, + -0.0015915022, + -0.034496732, + -0.029549174, + 0.06282037, + 0.02150372, + -0.012414285, + -0.0155689195, + -0.04253084, + 0.016204387, + 0.0084256, + -0.018405823, + 0.026530711, + -0.032771897, + -0.020777473, + -0.02102712, + -0.010479517, + -0.010144763, + 0.039194643, + -0.009333408, + 0.01276606, + 0.024125017, + -0.005049686, + -0.024170408, + -0.026144892, + 0.020822862, + -0.01400295, + -0.028369023, + -0.024873959, + 0.0018397311, + 0.010071003, + 0.012459675, + -0.011410021, + -0.009095109, + 0.029435698, + -0.0016397296, + 0.018871075, + -0.004678052, + -0.021083858, + 0.0029163356, + -0.06445442, + 0.0560118, + 0.005316355, + 0.008085172, + -0.036561996, + 0.0213562, + -0.014048341, + -0.03710668, + -0.011597257, + -0.025168998, + -0.010269586, + 0.006763175, + 0.0031092449, + 0.009514971, + -0.012527761, + -0.016079562, + -0.031001668, + 0.02007392, + 0.07108142, + -0.0064681373, + -0.021628544, + 0.0012709323, + 0.01191499, + 0.022956213, + 0.027983205, + 0.039285425, + 0.0034610208, + 0.020142006, + -0.0043971986, + -0.055648677, + 0.027143482, + 0.020107964, + -0.0384457, + 0.013254007, + -0.004933373, + 0.0038695347, + 0.025781767, + -0.004743301, + -0.012868189, + -0.0035886813, + 0.0054383418, + 0.011756123, + -0.0017546241, + 0.0027517953, + -0.023012951, + 0.04309822, + 0.023807283, + -0.016794462, + -0.008522054, + 0.006649699, + 0.01561431, + -0.05201744, + -0.011500802, + -0.008221343, + -0.020675344, + -0.02553212, + -0.0049872743, + -0.010473844, + -0.035767663, + 0.009356104, + -0.031773306, + -0.01817887, + 0.016805809, + -0.021254072, + 0.0022468267, + 0.035858445, + -0.0071376464, + 0.0068709776, + 0.035903838, + 0.010400084, + -0.010496538, + -0.0041872677, + -0.009497949, + 0.01917746, + -0.024896655, + 0.07067291, + 0.015727786, + -0.0068936725, + -0.046411723, + 0.014036993, + 0.0450954, + -0.008153257, + 0.03340736, + 0.028255546, + -0.023035647, + -0.03365701, + -0.06018772, + -0.021764714, + -0.033157714, + -0.053787667, + 0.021231377, + 0.055194773, + 0.0005829834, + 0.01632921, + -0.018678164, + 0.026076807, + 0.019903706, + -0.026598796, + -0.0032056996, + -0.016646942, + 0.009668163, + 0.023534942, + -0.012402937, + -0.035994615, + 0.013934864, + 0.015795872, + 0.026326453, + -0.013367483, + 0.051336583, + 0.056329533, + -0.022468267, + 0.009605751, + -0.021821452, + 0.027030006, + 0.017498013, + -0.006536223, + -0.034769073, + -0.051654316, + -0.040420186, + -0.005807139, + 0.011619952, + 0.021242725, + 0.0098327035, + -0.028868318, + -0.0143660735, + 0.051018853, + 0.029821517, + -0.01343557, + -0.02026683, + 0.046411723, + 0.039035775, + -0.016204387, + 0.050111044, + -0.008249712, + -0.014944801, + 0.025895244, + 0.010780229, + 0.01063271, + -0.009412842, + -0.0507919, + -0.05292525, + -0.039807413, + -0.015863957, + -0.045594692, + -0.022933519, + -0.048250034, + 0.010099372, + 0.024715094, + -0.006184447, + 0.033157714, + 0.0062014684, + -0.03413361, + -0.02154911, + 0.0032312318, + 0.037651367, + 0.006309271, + 0.0039631524, + 0.028073985, + 0.035064112, + 0.024624312, + 0.019347673, + 0.0115348445, + -0.0044936533, + 0.027778948, + -0.05610258, + -0.066905506, + 0.012686627, + -0.012561804, + -0.01561431, + 0.00859014, + -0.027461214, + 0.038944997, + 0.03293076, + 0.08147583, + 0.024805874, + -0.020629954, + -0.015988782, + -0.026076807, + 0.0063149445, + 0.021299463, + -0.0018042699, + -0.027892424, + -0.0036737884, + 0.05424157, + -0.019926403, + 0.013605784, + -0.016578857, + 0.008380209, + 0.035336453, + -0.046252854, + 0.016068215, + 0.02387537, + 0.010973138, + 0.020425696, + 0.0009177379, + 0.03488255, + -0.017486665, + 0.037061293, + -0.011949033, + -0.05487704, + -0.0031489616, + 0.0035688232, + -0.027166177, + 0.012028466, + 0.024306579, + -0.024896655, + 0.012028466, + -0.00041099623, + -0.046162076, + -0.025305169, + -0.023625722, + 0.02439736, + -0.015217144, + 0.0017915039, + 0.0066043087, + 0.043733686, + -0.010002918, + 0.022139186, + -0.039625853, + -0.032771897, + 0.02843711, + -0.035336453, + 0.060596235, + -0.00925965, + -0.018280998, + 0.02244557, + 0.025214387, + -0.010002918, + -0.00963412, + -0.018485256, + 0.014400116, + 0.07543891, + -0.015500834, + 0.008658226, + 0.005662457, + -0.0058213235, + -0.0101901535, + -0.023648418, + 0.03052507, + 0.033112325, + -0.034769073, + -0.068675734, + 0.021254072, + -0.032590333, + 0.003605703, + -0.031637136, + 0.00083263085, + 0.045140788, + -0.024125017, + -0.0051489775, + 0.00222555, + 0.008227017, + -0.01155754, + -0.03569958, + 0.047977693, + -0.05210822, + 0.01917746, + -0.0035830077, + 0.043415952, + -0.05169971, + 0.0014737707, + -0.032590333, + -0.0012815706, + -0.04452802, + 0.052516736, + -0.02743852, + 0.0049248626, + 0.029390307, + -0.052607518, + 0.0033276863, + -0.029934993, + -0.0043886877, + -0.026076807, + -0.038468394, + -0.026848443, + 0.034723684, + 0.002713497, + -0.0033191757, + 0.008737659, + 0.04234928, + -0.018020004, + -0.038196053, + 0.04884011, + 0.03426978, + -0.027279653, + -0.006241185, + -0.022808695, + 0.0091461735, + 0.015092321, + -0.057237342, + 0.025645597, + 0.005600045, + -0.014558983, + -0.0009078087, + -0.054060012, + -0.003747548, + 0.033815876, + 0.00015452252, + 0.0403521, + -0.015455443, + 0.051563535, + 0.004442589, + 0.025622902, + -0.005029828, + 0.055376332, + -0.0075404863, + -0.004241169, + 0.01196038, + 0.07289704, + 0.034723684, + -0.030343506, + 0.014229902, + 0.015818568, + 0.0560118, + -0.010252565, + 0.0075348127, + 0.03013925, + -0.01698737, + 0.024760483, + -0.0070241704, + 0.012834146, + -0.031069754, + 0.011285197, + 0.0037815908, + 0.020334916, + 0.0007102894, + 0.008641205, + -0.008051129, + -0.0019106537, + 0.03270381, + 0.021333506, + -0.05474087, + -0.017917875, + 0.05374228, + -0.00501848, + -0.00586104, + 0.012697975, + 0.028664062, + -0.01946115, + -0.008646878, + 0.027415823, + 0.01276606, + 0.046025902, + 0.008368862, + -0.016692333, + -0.054695476, + 0.011063919, + 0.029821517, + 0.028096681, + 0.00078511273, + 0.06604309, + -0.0051830206, + -0.008692268, + -0.02211649, + -0.009225606, + 0.028891014, + 0.014729197, + -0.019710798, + 0.003605703, + -0.0077107004, + -0.020368958, + -0.043302476, + -0.031591743, + -0.002442573, + -0.006473811, + -0.028641365, + -0.013968907, + -0.01837178, + -0.029027184, + -0.0047291163, + 0.013685217, + -0.042825878, + -0.026167586, + 0.02272926, + 0.031727914, + -0.008147583, + -0.00835184, + 0.034859855, + -0.04105565, + -0.04518618, + -0.021923581, + 0.05292525, + -0.049248625, + 0.042122327, + 0.0045730867, + -0.011858252, + 0.005784444, + 0.07566586, + -0.04475497, + -0.016783115, + -0.053197592, + -0.025827158, + 0.015228491, + -0.0011723499, + 0.04028401, + -0.017543403, + -0.0356088, + -0.0071830368, + -0.004431241, + -0.012073856, + 0.025577512, + -0.0015744808, + -0.0014624231, + -0.0076993527, + -0.02126542, + -0.019256894, + -0.0025929287, + -0.045935124, + -0.0011489454, + -0.028618671, + -0.006507854, + -0.021129249, + 0.037220158, + 0.00946958, + 0.0270527, + -0.015398705, + -0.007937653, + -0.026712272, + -0.02154911, + -0.040374793, + 0.014536288, + -0.011529171, + 0.034088217, + 0.009344757, + 0.015625658, + -0.01480863, + 0.027325043, + -0.008970285, + 0.006791544, + -0.01837178, + -0.008283755, + 0.04389255, + 0.023217209, + -0.019290935, + 0.00057695503, + 0.013968907, + -0.0074553792, + -0.0027830012, + -0.035518017, + 0.008005738, + -0.017452624, + -0.013889474, + 0.013446917, + 0.029390307, + -0.016499424, + -0.022366138, + -0.009480927, + 0.00870929, + 0.057736635, + 0.01671503, + -0.01879164, + -0.0008397231, + 0.030343506, + 0.023557637, + 0.032817286, + -0.012595846, + -0.0065248753, + 0.0066383514, + 0.023784589, + 0.03336197, + -0.017668227, + -0.014275293, + 0.014445507, + -0.023012951, + -0.022638481, + -0.0152965775, + 0.04418759, + -0.0062582064, + 0.01196038, + -0.023239903, + -0.004059607, + 0.03213643, + 0.006473811, + 0.054695476, + -0.028028594, + -0.013707912, + -0.02330799, + -0.02122003, + -0.008567445, + 0.04275779, + -0.008368862, + 0.012210027, + 0.042553537, + 0.018258303, + -0.024760483, + -0.0170895, + -0.004990111, + -0.034519427, + 0.000620927, + 0.014593026, + -0.023671113, + -0.01552353, + 0.020516478, + 0.0112341335, + 0.04371099, + 0.017690923, + -0.051155023, + 0.010842641, + 0.013185922, + -0.05687422, + 0.033634312, + 0.0069617582, + -0.01746397, + -0.0070525394, + 0.02439736, + 0.029821517, + 0.007966022, + -0.020471087, + -0.0038723717, + -0.023421466, + 0.052335173, + 0.0062014684, + 0.0022411528, + -0.01841717, + 0.028505195, + 0.019120721, + 0.0073305555, + -0.007341903, + 0.018326389, + -0.018666817, + 0.02491935, + 0.053152204, + 0.008567445, + -0.032953456, + 0.022570394, + 0.014615721, + 0.0026822912, + 0.014263945, + -0.012255418, + 0.012448328, + -0.014615721, + -0.029027184, + 0.011824209, + 0.034496732, + 0.01841717, + 0.011188743, + -0.019551931, + -0.029072575, + -0.03374779, + 0.017759008, + -0.039081167, + -0.029186051, + -0.004374503, + -0.008771702, + 0.03792371, + 0.01893916, + -0.04623016, + -0.015478139, + -0.00577877, + -0.0084256, + -0.0016964676, + 0.027869727, + -0.043075524, + 0.039762024, + -0.010002918, + 0.042303886, + 0.007239775, + 0.03971663, + -0.0047745067, + 0.025827158, + -0.010967464, + 0.0129362745, + 0.0005521321, + -0.033815876, + 0.022513656, + -0.006853956, + 0.02966265, + -0.0112341335, + -0.0013886637, + -0.012051161, + -0.011228459, + -0.009514971, + 0.047614567, + -0.0270527, + 0.045549303, + 0.022627132, + 0.017815746, + 0.014275293, + 0.018723555, + -0.02074343, + -0.0019290936, + 0.02035761, + -0.017237019, + 0.045140788, + -0.0051745097, + 0.012017118, + 0.007438358, + -0.006297923, + -0.012527761, + -0.007903609, + 0.0008163186, + 0.020403001, + 0.043461345, + 0.016635595, + 0.01480863, + -0.047614567, + 0.005049686, + 0.0015205797, + -0.0091178045, + -0.010763207, + 0.020652648, + -0.04219041, + -0.007114951, + 0.036085397, + 0.010059656, + -0.022922171, + 0.013015708, + 0.03252225, + 0.008595814, + 0.024011541, + 0.0019560442, + 0.001138307, + -0.005114935, + -0.016363252, + 0.017951919, + 0.00025071125, + 0.009758944, + 0.012686627, + 0.03660739, + -0.0069844536, + -0.021526415, + 0.020845558, + 0.003775917, + 0.013049751, + 0.0015035582, + 0.020289525, + 0.011937685, + 0.025146302, + -0.0030950604, + -0.014071035, + -0.015966086, + 0.047614567, + -0.0034695314, + -0.02966265, + 0.005370256, + 0.016011477, + 0.023648418, + -0.03200026, + -0.014695154, + 0.012788756, + 0.01224407, + -0.034428645, + -0.003018464, + -0.00554047, + 0.01880299, + 0.04057905, + 0.0170895, + 0.020471087, + -0.0003187969, + -0.017645532, + 0.008567445, + 0.05210822, + 0.019563278, + 0.016976023, + -0.025690988, + -0.0024496652, + 0.033248495, + -0.003866698, + 0.004998622, + -0.007341903, + 0.022922171, + -0.017112195, + -0.006717785, + -0.0015446934, + -0.030547764, + 0.008045455, + -0.0026198793, + 0.0012780245, + 0.0015588779, + 0.024011541, + -0.008192974, + 0.030820107, + 0.0045759236, + 0.005929126, + -0.0015063952, + -0.029413003, + -0.019903706, + 0.058372103, + 0.033543535, + 0.033520836, + -0.044119503, + -0.031773306, + 0.015886653, + 0.031546354, + -0.008856809, + -0.0024851265, + -0.0403521, + 0.002798604, + 0.05110963, + -0.0048709614, + 0.047160663, + -0.010808598, + -0.006910694, + -0.00975327, + 0.0006953957, + -0.032454163, + 0.020698039, + 0.033157714, + -0.007863893, + 0.024556227, + 0.00830645, + -0.011665342, + 0.0143660735, + 0.024715094, + 0.011846904, + 0.024420055, + 0.0018922138, + 0.05287986, + 0.007750417, + 0.044981923, + -0.020709386, + 0.014978845, + -0.023103733, + 0.06118631, + 0.0070922556, + -0.025282474, + -0.014400116, + 0.014275293, + -0.038037185, + -0.029458394, + -0.02648532, + -0.024942046, + 0.029254137, + 0.059960768, + 0.0019716471, + -0.013344789, + 0.0005070963, + 0.018871075, + 0.019438455, + 0.012845494, + -0.0024751972, + 0.010712143, + -0.0094752535, + 0.013503655, + -0.013288051, + -0.030683935, + -0.032454163, + 0.025645597, + -0.022808695, + -0.0074213366, + -0.005310681, + -0.029912299, + -0.013049751, + -0.0037588957, + 0.0101617845, + 0.008561771, + -0.03336197, + -0.018394474, + 0.0153533155, + -0.008749006, + 0.023625722, + 0.020936338, + -0.009293692, + -0.0094185155, + 0.03617618, + -0.044709582, + -0.02330799, + -0.013673869, + 0.0072794915, + 0.021662585, + 0.020686692, + -0.005844019, + 0.025078217, + 0.036652777, + 0.01504693, + -0.050292604, + 0.03731094, + -0.04448263, + 0.010706469, + 0.021923581, + 0.010445475, + -0.016590204, + 0.027869727, + 0.022808695, + 0.020720735, + 0.00026383193, + -0.0060823187, + -0.009895115, + -0.050020263, + -0.02852789, + -0.021526415, + 0.017815746, + -0.0018085252, + -0.016272472, + 0.020663997, + 0.001933349, + -0.040193234, + 0.005665294, + 0.028618671, + 0.011092288, + 0.0013404364, + 0.043847162, + 0.021673935, + -0.040034365, + 0.031727914, + 0.024215799, + 0.012641237, + 0.03193217, + 0.0034808791, + -0.002424133, + -0.016783115, + 0.0046440093, + -0.0027957673, + 0.024873959, + -0.008981633, + -0.021821452, + -0.025804464, + 0.013844083, + 0.0017390212, + -0.0118922945, + 0.005052523, + -0.029481089, + -0.011109309, + 0.010836967, + -0.0013943375, + 0.016499424, + 0.004034075, + 0.000265605, + -0.025146302, + 0.032022953, + 0.0021305135, + 0.011143352, + -0.008958938, + 0.049611747, + -0.0056028822, + 0.028073985, + -0.030502373, + -0.011489455, + -0.023171818, + 0.013469612, + 0.03293076, + 0.007058213, + -0.037901014, + 0.026666882, + 0.028414413, + 0.036380436, + -0.0034638578, + -0.01191499, + 0.0057617486, + 0.031886782, + 0.005483732, + 0.0027262631, + -0.058735225, + 0.0021773225, + 0.00345251, + 0.016408643, + -0.0057702595, + 0.0015347642, + -0.00609934, + -0.029753432, + 0.0020383142, + 0.05374228, + -0.04675215, + -0.012096551, + -0.018292347, + 0.051336583, + 0.04770535, + -0.0036822993, + 0.028414413, + 0.007841198, + 0.004144714, + -0.036652777, + -0.017736314, + -0.005143304, + 0.027234262, + -0.024147712, + -0.03635774, + -0.0038752086, + 0.0059177782, + -0.009917811, + 0.025010131, + 0.023171818, + -0.027370434, + 0.00081844634, + -0.034156304, + 0.03383857, + 0.029231442, + 0.01817887, + -0.008896526, + 0.016170343, + -0.0037021574, + -0.021344854, + 0.0030411594, + -0.015455443, + -0.012357547, + -0.012346199, + -0.014082383, + -0.0073872935, + 0.022854086, + -0.017622838, + 0.0061504045, + 0.014422812, + -0.019234197, + -0.035767663, + 0.036925122, + 0.02439736, + 0.025168998, + 0.02439736, + -0.054286964, + 0.023421466, + -0.0036936468, + -0.059733815, + 0.022842737, + 0.053651497, + 0.0064567896, + 0.04445993, + -0.009373126, + -0.031205926, + 0.0044000354, + 0.0025986026, + 0.005432668, + 0.053606108, + -0.020289525, + -0.010831293, + -0.015875306, + 0.0008985888, + 0.01784979, + 0.010178805, + 0.0280059, + -0.010286608, + -0.0053617456, + 0.002879456, + 0.06354661, + 0.013458265, + -0.0034893898, + -0.0057163583, + -0.006360335, + -0.014354725, + 0.01789518, + -0.008453969, + 0.0004106416, + -0.017611489, + -0.011688038, + 0.0007156086, + 0.01143839, + 0.030116554, + -0.011869599, + -0.058644444, + 0.013310745, + 0.017384537, + -0.025055522, + 0.0076596364, + 0.022173228, + -0.002339026, + 0.012312156, + -0.00014521394, + -0.024510836, + -0.009424189, + 0.015932044, + 0.028845623, + 0.02335338, + -0.04775074, + 0.0064624636, + 0.025804464, + 0.04396064, + 0.008221343, + 0.015818568, + -0.040669832, + -0.021412939, + -0.019676754, + -0.006763175, + 0.0161363, + 0.06440903, + -0.028800232, + 0.043030135, + 0.0038808824, + -0.011778818, + -0.010122067, + 0.024805874, + -0.033906657, + -0.0070468653, + -0.030593155, + -0.017146237, + -0.010479517, + 0.024578921, + -0.0037617325, + 0.04357482, + 0.0017602979, + -0.018825684, + -0.005370256, + 0.016034171, + -0.0003719888, + -0.009333408, + 0.017838443, + -0.004127693, + -0.006825587, + 0.031750612, + -0.019234197, + 0.008584467, + -0.011801514, + 0.040215928, + 0.003486553, + -0.019733492, + -0.021866843, + -0.040760614, + 0.00087234745, + -0.037787538, + -0.0021943438, + -0.027824339, + -0.029481089, + -0.003946131, + -0.027030006, + 0.020232787, + 0.018042699, + -0.025690988, + -0.0039319466, + 0.0028482499, + -0.01087101, + -0.004039749, + 0.004323439, + 0.017634185, + -0.027892424, + -0.017997308, + 0.0033787508, + -0.014785935, + 0.027597386, + -0.004584434, + 0.016011477, + 0.0071319724, + -0.007954674, + -0.016102258, + -0.031137839, + 0.043257087, + 0.039830107, + 0.03574497, + 0.018099437, + 0.005809976, + 0.018190218, + 0.029186051, + 0.028936403, + 0.093685865, + 0.013787345, + -0.03118323, + -0.021015773, + 0.030774716, + -0.008958938, + -0.021934928, + 0.025237083, + 0.014275293, + 0.015183101, + 0.013866778, + 0.005347561, + 0.019597322, + 0.0011333425, + -0.000682275, + 0.033498142, + 0.042871267, + 0.0018269651, + 0.05070112, + -0.012255418, + 0.003253927, + -0.025736379, + -0.029390307, + 0.034996025, + 0.012141942, + 0.020902297, + 0.0005205716, + -0.019688101, + 0.017827094, + -0.011103636, + 0.008533402, + -0.029117966, + 0.004876635, + 0.020142006, + -0.048613157, + 0.030820107, + -0.015364663, + 0.0006216362, + -0.025781767, + 0.03554071, + 0.001087952, + -0.012471023, + -0.025577512, + -0.011653995, + -0.009458233, + -0.0045135114, + -0.00031489617, + -0.003253927, + -0.0152965775, + 0.0029248463, + -0.012788756, + 0.04518618, + -0.0014751892, + 0.0143660735, + -0.040034365, + -0.020550521, + 0.0018127806, + -0.02335338, + 0.0149107585, + -0.023648418, + 0.012471023, + 0.0071546678, + 0.026553405, + 0.06799488, + 0.002178741, + -0.023557637, + -0.02339877, + -0.008470991, + -0.011767471, + -0.015954738, + -0.0043120915, + -0.012822798, + 0.020471087, + -0.014275293, + 0.006388704, + 0.0052425954, + 0.03787832, + -0.03200026, + -0.04148686, + 0.04209963, + -0.01841717, + -0.014638416, + 0.038332224, + 0.0011141934, + 0.031160535, + -0.044414543, + -0.0042581903, + -0.0031744938, + 0.010292281, + -0.03327119, + -0.012595846, + 0.007466727, + 0.006042602, + 0.007994391, + 0.01808809, + 0.014819978, + 0.0007375946, + 0.05705578, + 0.0014390188, + 0.03887691, + 0.031251315, + 0.0061390568, + -0.02805129, + -0.014150469, + 0.015478139, + -0.044981923, + 0.025055522, + -0.020119311, + -0.01108094, + 0.01698737, + 0.0011879528, + 0.0270527, + -0.0043886877, + -0.016533466, + 0.0036425826, + 0.007807155, + 0.01136463, + 0.016113605, + -0.018587384, + 0.01552353, + -0.0023503737, + -0.027710862, + 0.042371973, + -0.029390307, + 0.0012113573, + 0.046979103, + 0.008011412, + 0.042122327, + -0.035722274, + 0.040669832, + 0.002584418, + -0.010655405, + -0.0032198841, + 0.00092412095, + 0.00835184, + 0.036380436, + 0.0067404797, + -0.0061163614, + -0.012017118, + -0.0021432796, + -0.003083713, + 0.00505536, + -0.0218328, + -0.033339277, + 0.018632775, + -0.049157843, + 0.02202571, + -0.0053560715, + -0.0032879699, + -0.020368958, + -0.016590204, + 0.005236922, + -0.027461214, + 0.023217209, + 0.01646538, + -0.015398705, + -0.014899411, + -0.007892262, + 0.0084029045, + 0.020471087, + 0.02757469, + 0.011353283, + -0.03279459, + -0.024715094, + 0.034042828, + -0.001119158, + 0.031342097, + 0.016295167, + -0.0351322, + 0.019881012, + -0.03256764, + -0.025032826, + -0.015251187, + 0.02757469, + 0.01400295, + 0.020289525, + 0.012652584, + 0.01428664, + -0.0003044351, + -0.0040766285, + 0.0024269698, + 0.0060596233, + -0.017055457, + -0.0031489616, + -0.012539108, + 0.0021886702, + 0.026848443, + -0.004502164, + -0.016953329, + 0.012539108, + 0.01447955, + 0.035336453, + 0.035222977, + -0.013424221, + -0.016147649, + 0.013185922, + 0.039762024, + -0.016862547, + -0.0075007696, + 0.030116554, + 0.010252565, + -0.01120009, + 0.0063773566, + 0.06772253, + -0.018768946, + 0.025464036, + -0.010768881, + -0.027325043, + 0.007807155, + 0.04071522, + 0.012788756, + -0.010099372, + -0.002964563, + -0.0007148994, + -0.02995769, + -0.0064057256, + -0.007324882, + 0.0048369183, + 0.023898065, + -0.0019078169, + -8.621524e-05, + -0.024556227, + 0.019188806, + -0.0065475707, + 0.005889409, + 0.0012283787, + -0.03597192, + -0.035291065, + -0.001612779, + -0.02870945, + -0.023421466, + 0.01989236, + 0.00059184874, + -0.019551931, + 0.047342226, + 0.001556041, + 0.0088454615, + -0.01656751, + -0.038377613, + 0.03200026, + 0.009049718, + 0.027506605, + -0.009696532, + -0.012618542, + 0.012947622, + 0.029367613, + -0.015637005, + 0.0051659993, + 0.048250034, + 0.019234197, + 0.005140467, + 0.017634185, + 0.008334819, + -0.03340736, + 0.018315041, + 0.024193102, + -0.018428518, + 0.016941981, + -0.01447955, + 0.018927813, + 0.02748391, + 0.0070695607, + 0.00045284053, + 0.012788756, + -0.020663997, + 0.032544944, + -0.037560586, + 0.0033021544, + -0.018156175, + -0.034814466, + 0.0076596364, + -0.0059461473, + -0.017441275, + -0.037515197, + -0.044437237, + 0.037810232, + -0.009798661, + 0.015410054, + 0.002062428, + 0.002295054, + 0.006008559, + 0.0135944355, + 0.0013290887, + -0.035631493, + -0.019495193, + 0.003112082, + 0.0036198874, + -0.0047234423, + 0.011597257, + 0.017883832, + 0.051608928, + -0.004306418, + 0.025237083, + 0.023103733, + 0.015773177, + -0.021492371, + 0.01030363, + -0.026530711, + -0.012754713, + -0.02648532, + -0.011517824, + -0.01604552, + 0.0001859944, + -0.0029532153, + 0.0052794754, + -0.017861137, + 0.029889602, + -0.015069625, + 0.0060312543, + -0.023421466, + 0.031637136, + -0.00537593, + -0.009480927, + 0.03944429, + 0.028232852, + -0.010967464, + 0.0038553502, + 0.0027844196, + 0.0027205893, + -0.0059631686, + -0.044369154, + -0.014876716, + 0.029821517, + -0.012834146, + -0.020334916, + -0.00690502, + -0.008726312, + 0.03456482, + 0.010252565, + -0.02074343, + 0.0072908388, + -0.017191628, + 0.01808809, + 0.018110784, + 0.024442751, + 0.011563214, + -0.017361842, + 0.0005159616, + -0.059869986, + 0.01822426, + 0.0072738174, + -0.012709322, + 0.016737724, + -0.039693937, + 0.0019106537, + 0.0035376172, + -0.00066312595, + 0.003861024, + 0.03340736, + -0.012085204, + 0.018485256, + -0.043552123, + 0.0046553565, + 0.0013695146, + -0.010712143, + -0.017305104, + 0.0025517936, + 0.01989236, + -0.018190218, + -0.03588114, + 0.012856841, + -0.012970317, + 0.0062298374, + -0.010263912, + -0.00958873, + -0.018280998, + -0.017248366, + 0.029503783, + -0.036153484, + 0.009310713, + -0.0045986185, + -0.030252727, + -0.011937685, + 0.025554815, + 0.005024154, + -0.030910887, + 0.0013191595, + 0.030547764, + -0.010496538, + 0.038559176, + -0.045163486, + 0.008743333, + 0.0027489583, + -0.009010002, + 0.03973933, + 0.025259778, + 0.029934993, + 0.02059591, + 0.045140788 + ] + } + ], + "model": "text-embedding-3-small", + "usage": { + "prompt_tokens": 4, + "total_tokens": 4 + } + } headers: CF-Cache-Status: - DYNAMIC CF-RAY: - - 8cc55a9cfa1e83a0-MXP + - 8e14cbe28e7081e4-SIN Connection: - keep-alive Content-Type: - application/json Date: - - Wed, 02 Oct 2024 14:24:04 GMT + - Tue, 12 Nov 2024 07:26:54 GMT Server: - cloudflare Set-Cookie: test_set_cookie @@ -449,13 +1620,15 @@ interactions: - '*' access-control-expose-headers: - X-Request-ID + alt-svc: + - h3=":443"; ma=86400 content-length: - '33244' openai-model: - text-embedding-3-small openai-organization: test_openai_org_key openai-processing-ms: - - '24' + - '97' openai-version: - '2020-10-01' strict-transport-security: @@ -473,7 +1646,7 @@ interactions: x-ratelimit-reset-tokens: - 0s x-request-id: - - req_54d8614b69ebd4c7500926eebd4d2b08 + - req_3821512b9a3d7fc57ba4f27ffcf8edea status: code: 200 message: OK diff --git a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_embeddings/test_async_basic[azure_provider_embeddings].yaml b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_embeddings/test_async_basic[azure_provider_embeddings].yaml index 6859961..896f38a 100644 --- a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_embeddings/test_async_basic[azure_provider_embeddings].yaml +++ b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_embeddings/test_async_basic[azure_provider_embeddings].yaml @@ -1,7 +1,13 @@ interactions: - request: - body: '{"input": ["South Atlantic Ocean."], "model": "text-embedding-3-small", - "encoding_format": "base64"}' + body: |- + { + "input": [ + "South Atlantic Ocean." + ], + "model": "ada", + "encoding_format": "base64" + } headers: accept: - application/json @@ -14,66 +20,78 @@ interactions: connection: - keep-alive content-length: - - '100' + - '81' content-type: - application/json host: - test.openai.azure.com user-agent: - - AsyncAzureOpenAI/Python 1.50.0 + - AsyncAzureOpenAI/Python 1.54.3 x-stainless-arch: - - x64 + - arm64 x-stainless-async: - async:asyncio x-stainless-lang: - python x-stainless-os: - - Linux + - MacOS x-stainless-package-version: - - 1.50.0 + - 1.54.3 x-stainless-retry-count: - '0' x-stainless-runtime: - CPython x-stainless-runtime-version: - - 3.10.12 + - 3.12.6 method: POST uri: https://test.openai.azure.com/openai/deployments/test-azure-deployment/embeddings?api-version=2023-05-15 response: body: - string: "{\n \"object\": \"list\",\n \"data\": [\n {\n \"object\": - \"embedding\",\n \"index\": 0,\n \"embedding\": \"djUBvU9D97xPsSc8wjEVPB3X/Ly8vYQ9ArUTPfiW9bpsAZm7JVesvLj9LDuCCDO8OBmZvDteRrw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7zL+Zu4YAPjzbZ5I8XZFTPX22i7uH6848JkK9PA1lgTwDD7C8Rp8oPPOz2bw+VlG8KyXZvC5UPLyVcIO8/tJSOVymQrtVtqw722eSvDAI9Tzncne8q0DFO3Xcv7w9xAE9y52wuyj1Gry5jiE9rhbnPBavM7xFJH47QoU0OzNuMDsbI8S7Neo1vaHqc7zRSfQ8NkRSvCPbprxIU+G7NSEOvNViDT2y+Cc8buypvDsn7js9M428ykOUPMpDlDwqOsg8vnE9PDUhjryf/gc6YGd1vVXYlTyj9+0735dQvMZLiTx9lCK9dYP+Oj00aDsMsiO6DbN+O5fsCD3bn0W84WyXPO5hMr1wipg7pcy0OnwDLrwFwo28PBEkO6zzojyOSZW8OyYTvWajUjyN8FO8AODMO+JXKLx7GB28IfCVvHWkjLyxDvI8MhQUvXCKGDzd45e7rwH4vLxkQ7w+VtE8cPmjOx3X/Lyo2a46Zmz6PFk/LLza1h09gPs4vWSADjzz6jE7o/YSvKzzIj23Ss88yDf1PBK3qDy04zg9\"\n - \ }\n ],\n \"model\": \"text-embedding-3-small\",\n \"usage\": {\n \"prompt_tokens\": - 4,\n \"total_tokens\": 4\n }\n}\n" + string: |- + { + "object": "list", + "data": [ + { + "object": "embedding", + "index": 0, + "embedding": "WVSXu2oCbTsITEo8Y3TYvDulz7x5tL88AAlYvI3M0DuNgS68cH4HvCrhgjhPPRM8VwBTO6kRXbyC9zE8jjaMOshJFDzdVGu8Of2rPP/pI7ze1B27QzNkPACJijzFIb47G/qEPMbApLoivcS7JCeAvFVhbLumNA67ghZmuYRqKrt6f5S8Z7vivPLAQDsGji+8zwzUOoWJXrykwRW8mUBWu+nI8LxEB/Y738dju4lQG70kJ4A8+JC6PPA3UTzjpJe8//+avEChNzzlYrI8N3S8PFHGgrq+fTK8X/iiO6T2wLtDM+S88aEMvOsyLD1kE7+8cXFNu3FxTbvZDWG8AAnYO3nparyQXn07P4IDPHJb1jx4q4K86V4aPEnt5jyb/vA8XjqIuzky1zvISRQ8gvcx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iog7MAXcPPvXRDyqe5i8HyuYu9QIPLucaCy8UfutuxjxYr2y8zW71zASvAbDWr3WezQ6vrLdu0OzFrxJuDs7EjdgvBlxlTw2v948LImmulhqDjzjDu68dwycvCiNvjzsO2m7+K9uu3VOAbw3dDy8" + } + ], + "model": "ada", + "usage": { + "prompt_tokens": 4, + "total_tokens": 4 + } + } headers: Content-Length: - - '8414' + - '8395' Content-Type: - application/json Date: - - Wed, 02 Oct 2024 14:24:04 GMT + - Wed, 13 Nov 2024 05:29:11 GMT Set-Cookie: test_set_cookie Strict-Transport-Security: - max-age=31536000; includeSubDomains; preload access-control-allow-origin: - '*' apim-request-id: - - ebe2ac5d-75b2-4bbd-a250-dc9fef04f8bc + - 52f47057-5487-4014-926e-f9f34e350113 azureml-model-session: - - d005-20240531125325 - openai-organization: test_openai_org_key + - y1aa697a585e8-2 + openai-organization: test_openai_org_id x-content-type-options: - nosniff x-ms-client-request-id: - - ebe2ac5d-75b2-4bbd-a250-dc9fef04f8bc + - 52f47057-5487-4014-926e-f9f34e350113 x-ms-region: - - East US + - Switzerland North x-ratelimit-remaining-requests: - '0' x-ratelimit-remaining-tokens: - - '2982' + - '994' x-request-id: - - 237291e0-b4f7-4007-8a1e-39ca31ce9fab + - 55e7cc71-8a03-4b37-8cbf-c983665a2f90 status: code: 200 message: OK diff --git a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_embeddings/test_async_basic[openai_provider_embeddings].yaml b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_embeddings/test_async_basic[openai_provider_embeddings].yaml index 9a35c9e..6f4bfde 100644 --- a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_embeddings/test_async_basic[openai_provider_embeddings].yaml +++ b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_embeddings/test_async_basic[openai_provider_embeddings].yaml @@ -1,7 +1,13 @@ interactions: - request: - body: '{"input": ["South Atlantic Ocean."], "model": "text-embedding-3-small", - "encoding_format": "base64"}' + body: |- + { + "input": [ + "South Atlantic Ocean." + ], + "model": "text-embedding-3-small", + "encoding_format": "base64" + } headers: accept: - application/json @@ -18,42 +24,54 @@ interactions: host: - api.openai.com user-agent: - - AsyncOpenAI/Python 1.50.0 + - AsyncOpenAI/Python 1.54.3 x-stainless-arch: - - x64 + - arm64 x-stainless-async: - async:asyncio x-stainless-lang: - python x-stainless-os: - - Linux + - MacOS x-stainless-package-version: - - 1.50.0 + - 1.54.3 x-stainless-retry-count: - '0' x-stainless-runtime: - CPython x-stainless-runtime-version: - - 3.10.12 + - 3.12.6 method: POST uri: https://api.openai.com/v1/embeddings response: body: - string: "{\n \"object\": \"list\",\n \"data\": [\n {\n \"object\": - \"embedding\",\n \"index\": 0,\n \"embedding\": \"wDYBvZfm9rzEQSg8pHoVPKTZ/LwQv4Q9sJ4TPR3g+bq3f5q74OGrvPn4LztJgTO8wBqZvNShRbwEyXU8vFnJPP/uxryDl5o8xxeIPG+LvTwteOe8iNoRvcO/gL1OP3o9ZgynPGyZdbzQsgY8cJKVPOuDgr0NsdQ8+3rXParr+7wVMGs60LKGPVkZIT1Edow9zdymvCltQLxwDWW9zSkHPAkM7TxFwGO9CG5dO4nFATtQmgo8MGqvO3XVjL2JxQG9/lcPPRtCajxH/wu98fToPEOnBL32bzC9J88wPRnV0rxpLF68v/4wO2/DjT1UUfm5KW1AvZEMSD1E8du6+7Knu9nkPL3MDR+7/RhnPOBcez05nGW9h++hvJ0wRr0Ph7Q81KHFPKcDFb0OgFy9ry5zvFOCcbx2pBS99JnQunJMDb0cEfK896eAPZIosDxJZUu8yBR/vNE0Lr0Qv4Q8hwsKPM/HlrzvVtk80zsGvYU1qrwRQay8SLIrvDg2JryQiiA9J+sYvL0oUTzUocU81neluwUBxrzQLda8tZSqPKFsZbwnZui8ecTLvCIj8TrZACU8qiNMPBnxOrynAxW8IiPxPDLs1rqDl5o8WEqZuw64rLz+Hz87rgCEvaFsZT3RNK47q3cEPAjCFb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edding-3-small\",\n \"usage\": {\n \"prompt_tokens\": - 4,\n \"total_tokens\": 4\n }\n}\n" + string: |- + { + "object": "list", + "data": [ + { + "object": "embedding", + "index": 0, + "embedding": "wDYBvZfm9rzEQSg8pHoVPKTZ/LwQv4Q9sJ4TPR3g+bq3f5q74OGrvPn4LztJgTO8wBqZvNShRbwEyXU8vFnJPP/uxryDl5o8xxeIPG+LvTwteOe8iNoRvcO/gL1OP3o9ZgynPGyZdbzQsgY8cJKVPOuDgr0NsdQ8+3rXParr+7wVMGs60LKGPVkZIT1Edow9zdymvCltQLxwDWW9zSkHPAkM7TxFwGO9CG5dO4nFATtQmgo8MGqvO3XVjL2JxQG9/lcPPRtCajxH/wu98fToPEOnBL32bzC9J88wPRnV0rxpLF68v/4wO2/DjT1UUfm5KW1AvZEMSD1E8du6+7Knu9nkPL3MDR+7/RhnPOBcez05nGW9h++hvJ0wRr0Ph7Q81KHFPKcDFb0OgFy9ry5zvFOCcbx2pBS99JnQunJMDb0cEfK896eAPZIosDxJZUu8yBR/vNE0Lr0Qv4Q8hwsKPM/HlrzvVtk80zsGvYU1qrwRQay8SLIrvDg2JryQiiA9J+sYvL0oUTzUocU81neluwUBxrzQLda8tZSqPKFsZbwnZui8ecTLvCIj8TrZACU8qiNMPBnxOrynAxW8IiPxPDLs1rqDl5o8WEqZuw64rLz+Hz87rgCEvaFsZT3RNK47q3cEPAjCFb0z8648AytmvC39F71sAj68Ny/OvMRBKLygnd07ecRLO67kGzw9QU28SbmDvDb3/bwQcqQ8I5ORPavy07tYLrG8aZWmOhc3QzyrDrw8CT3lPMHpID1L0mI72QClPGAWkLve72O9AlzePHW5pDw9eR29VidZPCKoobsFmH07STTTPLFtm7sZ1VK8FTBrux40sjvBnEA8avvlundXNDuohby8wocwPX4HwzyKlIm8FqALvLjl2Tsq0388PRBVvdxtPLzQsga8V1+pvL0o0bxKbKO7fJorvB2BEr1YShk8uiQCvdvrlLxWrIk8BR2uvH8/EztO4BI96+Lpu/Al4Tvn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7kXWQPMSOCDwo1gi9bQmWPJ0wxjxn95a86cmKPKI7bbyADps88CXhPMan5zs6a+057odRPItHqbzZTQU9IdkZvfVoWDtCvJS8nZkOvbD9+jvm18K7AeGOvImpGb3SAza9594aPZCKILxzenw8zSkHO55oFjty48Q7MrtePNE0rjpU8hG9YrSfvBL0SzuiO207G8eau2wCPjwdgZI84mNTPdocjbsAvs48CkS9PMA2gTzFELC8jtAoPO9W2bwl+VC8vvfYvEG1PLzlcYO8fgdDObuKQbtz/6w7hVGSvArb9DyX5na81KHFO2Dev7zxlQE9kiiwu+RVG7xWkCE9lUjnPOGwM7wLqnw7z3o2O+pLMjuvZsO7brw1vXi9c7xBTPQ8T0ZSvGmVpryCQ+K7zvgOvNeTDT1g+ic8IO6pvP3n7jt11Yy8eS2UPBFdlDwqPMg8onM9PGw6jryZQQc6Ozp1vQtLlTw0We47wzpQvI0diTwcliK95m76Ol7XZzuh1S26PAl9OyjWCD0FAUa8ZG6XPLZjMr32i5g7SYGzOvyBL7xvw428/jsnO031ojynA5W8GvgSvYClUjx0gVS8qiPMO/gpKLwMGh28CMKVvHJMjbzrsfE8rRUUvfaLGDwCsJa7kdT3vEiWQ7xVWNE8qaGkO9Q4/bym56w6Tj/6PKz5K7w68B09Wf04vTJADzzeJzQ7sJ4TvLXFIj2Y7c48Ozr1PMG4qDyM5Tg9" + } + ], + "model": "text-embedding-3-small", + "usage": { + "prompt_tokens": 4, + "total_tokens": 4 + } + } headers: CF-Cache-Status: - DYNAMIC CF-RAY: - - 8cc55a96583ebaab-MXP + - 8e14cbdee99ace81-SIN Connection: - keep-alive Content-Type: - application/json Date: - - Wed, 02 Oct 2024 14:24:03 GMT + - Tue, 12 Nov 2024 07:26:53 GMT Server: - cloudflare Set-Cookie: test_set_cookie @@ -65,13 +83,15 @@ interactions: - '*' access-control-expose-headers: - X-Request-ID + alt-svc: + - h3=":443"; ma=86400 content-length: - '8414' openai-model: - text-embedding-3-small openai-organization: test_openai_org_key openai-processing-ms: - - '19' + - '57' openai-version: - '2020-10-01' strict-transport-security: @@ -89,7 +109,7 @@ interactions: x-ratelimit-reset-tokens: - 0s x-request-id: - - req_785712250143a16a78cf1a8f6138c56d + - req_2c494cf0aac61c4fadb5e7f5a4ebd22b status: code: 200 message: OK diff --git a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_embeddings/test_basic[azure_provider_embeddings].yaml b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_embeddings/test_basic[azure_provider_embeddings].yaml index 25b0b31..5d293b1 100644 --- a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_embeddings/test_basic[azure_provider_embeddings].yaml +++ b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_embeddings/test_basic[azure_provider_embeddings].yaml @@ -1,7 +1,13 @@ interactions: - request: - body: '{"input": ["South Atlantic Ocean."], "model": "text-embedding-3-small", - "encoding_format": "base64"}' + body: |- + { + "input": [ + "South Atlantic Ocean." + ], + "model": "unused", + "encoding_format": "base64" + } headers: accept: - application/json @@ -14,66 +20,78 @@ interactions: connection: - keep-alive content-length: - - '100' + - '84' content-type: - application/json host: - test.openai.azure.com user-agent: - - AzureOpenAI/Python 1.50.0 + - AzureOpenAI/Python 1.54.3 x-stainless-arch: - - x64 + - arm64 x-stainless-async: - 'false' x-stainless-lang: - python x-stainless-os: - - Linux + - MacOS x-stainless-package-version: - - 1.50.0 + - 1.54.3 x-stainless-retry-count: - '0' x-stainless-runtime: - CPython x-stainless-runtime-version: - - 3.10.12 + - 3.12.6 method: POST uri: https://test.openai.azure.com/openai/deployments/test-azure-deployment/embeddings?api-version=2023-05-15 response: body: - string: "{\n \"object\": \"list\",\n \"data\": [\n {\n \"object\": - \"embedding\",\n \"index\": 0,\n \"embedding\": \"djUBvU9D97xPsSc8wjEVPB3X/Ly8vYQ9ArUTPfiW9bpsAZm7JVesvLj9LDuCCDO8OBmZvDteRrwwCHU88sjIPALtxrzErZo8A0aI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TPX22i7uH6848JkK9PA1lgTwDD7C8Rp8oPPOz2bw+VlG8KyXZvC5UPLyVcIO8/tJSOVymQrtVtqw722eSvDAI9Tzncne8q0DFO3Xcv7w9xAE9y52wuyj1Gry5jiE9rhbnPBavM7xFJH47QoU0OzNuMDsbI8S7Neo1vaHqc7zRSfQ8NkRSvCPbprxIU+G7NSEOvNViDT2y+Cc8buypvDsn7js9M428ykOUPMpDlDwqOsg8vnE9PDUhjryf/gc6YGd1vVXYlTyj9+0735dQvMZLiTx9lCK9dYP+Oj00aDsMsiO6DbN+O5fsCD3bn0W84WyXPO5hMr1wipg7pcy0OnwDLrwFwo28PBEkO6zzojyOSZW8OyYTvWajUjyN8FO8AODMO+JXKLx7GB28IfCVvHWkjLyxDvI8MhQUvXCKGDzd45e7rwH4vLxkQ7w+VtE8cPmjOx3X/Lyo2a46Zmz6PFk/LLza1h09gPs4vWSADjzz6jE7o/YSvKzzIj23Ss88yDf1PBK3qDy04zg9\"\n - \ }\n ],\n \"model\": \"text-embedding-3-small\",\n \"usage\": {\n \"prompt_tokens\": - 4,\n \"total_tokens\": 4\n }\n}\n" + string: |- + { + "object": "list", + "data": [ + { + "object": "embedding", + "index": 0, + "embedding": "WVSXu2oCbTsITEo8Y3TYvDulz7x5tL88AAlYvI3M0DuNgS68cH4HvCrhgjhPPRM8VwBTO6kRXbyC9zE8jjaMOshJFDzdVGu8Of2rPP/pI7ze1B27QzNkPACJijzFIb47G/qEPMbApLoivcS7JCeAvFVhbLumNA67ghZmuYRqKrt6f5S8Z7vivPLAQDsGji+8zwzUOoWJXrykwRW8mUBWu+nI8LxEB/Y738dju4lQG70kJ4A8+JC6PPA3UTzjpJe8//+avEChNzzlYrI8N3S8PFHGgrq+fTK8X/iiO6T2wLtDM+S88aEMvOsyLD1kE7+8cXFNu3FxTbvZDWG8AAnYO3nparyQXn07P4IDPHJb1jx4q4K86V4aPEnt5jyb/vA8XjqIuzky1zvISRQ8gvcxvL5IB7w9RLa8UHt7vI3MUD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Yu9QIPLucaCy8UfutuxjxYr2y8zW71zASvAbDWr3WezQ6vrLdu0OzFrxJuDs7EjdgvBlxlTw2v948LImmulhqDjzjDu68dwycvCiNvjzsO2m7+K9uu3VOAbw3dDy8" + } + ], + "model": "ada", + "usage": { + "prompt_tokens": 4, + "total_tokens": 4 + } + } headers: Content-Length: - - '8414' + - '8395' Content-Type: - application/json Date: - - Wed, 02 Oct 2024 14:23:59 GMT + - Wed, 13 Nov 2024 02:50:28 GMT Set-Cookie: test_set_cookie Strict-Transport-Security: - max-age=31536000; includeSubDomains; preload access-control-allow-origin: - '*' apim-request-id: - - dcba2e39-3eca-40fd-bbc4-1693d19b254d + - ef6a8c5a-db62-4490-b847-f17930b9980b azureml-model-session: - - d005-20240531125325 - openai-organization: test_openai_org_key + - y1aa697a585e8-10 + openai-organization: test_openai_org_id x-content-type-options: - nosniff x-ms-client-request-id: - - dcba2e39-3eca-40fd-bbc4-1693d19b254d + - ef6a8c5a-db62-4490-b847-f17930b9980b x-ms-region: - - East US + - Switzerland North x-ratelimit-remaining-requests: - - '2' + - '0' x-ratelimit-remaining-tokens: - - '2994' + - '994' x-request-id: - - 995ce329-d04e-4323-b13f-e8e2e701cc0f + - aeb360ae-41b0-41ce-b771-e49027431cba status: code: 200 message: OK diff --git a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_embeddings/test_basic[openai_provider_embeddings].yaml b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_embeddings/test_basic[openai_provider_embeddings].yaml index e6c21fa..f85224c 100644 --- a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_embeddings/test_basic[openai_provider_embeddings].yaml +++ b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_embeddings/test_basic[openai_provider_embeddings].yaml @@ -1,7 +1,13 @@ interactions: - request: - body: '{"input": ["South Atlantic Ocean."], "model": "text-embedding-3-small", - "encoding_format": "base64"}' + body: |- + { + "input": [ + "South Atlantic Ocean." + ], + "model": "text-embedding-3-small", + "encoding_format": "base64" + } headers: accept: - application/json @@ -18,42 +24,54 @@ interactions: host: - api.openai.com user-agent: - - OpenAI/Python 1.50.0 + - OpenAI/Python 1.54.3 x-stainless-arch: - - x64 + - arm64 x-stainless-async: - 'false' x-stainless-lang: - python x-stainless-os: - - Linux + - MacOS x-stainless-package-version: - - 1.50.0 + - 1.54.3 x-stainless-retry-count: - '0' x-stainless-runtime: - CPython x-stainless-runtime-version: - - 3.10.12 + - 3.12.6 method: POST uri: https://api.openai.com/v1/embeddings response: body: - string: "{\n \"object\": \"list\",\n \"data\": [\n {\n \"object\": - \"embedding\",\n \"index\": 0,\n \"embedding\": \"wDYBvZfm9rzEQSg8pHoVPKTZ/LwQv4Q9sJ4TPR3g+bq3f5q74OGrvPn4LztJgTO8wBqZvNShRbwEyXU8vFnJPP/uxryDl5o8xxeIPG+LvTwteOe8iNoRvcO/gL1OP3o9ZgynPGyZdbzQsgY8cJKVPOuDgr0NsdQ8+3rXParr+7wVMGs60LKGPVkZIT1Edow9zdymvCltQLxwDWW9zSkHPAkM7TxFwGO9CG5dO4nFATtQmgo8MGqvO3XVjL2JxQG9/lcPPRtCajxH/wu98fToPEOnBL32bzC9J88wPRnV0rxpLF68v/4wO2/DjT1UUfm5KW1AvZEMSD1E8du6+7Knu9nkPL3MDR+7/RhnPOBcez05nGW9h++hvJ0wRr0Ph7Q81KHFPKcDFb0OgFy9ry5zvFOCcbx2pBS99JnQunJMDb0cEfK896eAPZIosDxJZUu8yBR/vNE0Lr0Qv4Q8hwsKPM/HlrzvVtk80zsGvYU1qrwRQay8SLIrvDg2JryQiiA9J+sYvL0oUTzUocU81neluwUBxrzQLda8tZSqPKFsZbwnZui8ecTLvCIj8TrZACU8qiNMPBnxOrynAxW8IiPxPDLs1rqDl5o8WEqZuw64rLz+Hz87rgCEvaFsZT3RNK47q3cEPAjCFb0z8648AytmvC39F71sAj68Ny/OvMRBKLygnd07ecRLO67kGzw9QU28Sb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Y8YPonPJWAN7wl+dA7HLKKPVXBmbz0mdA89m8wvMXY37wq0/87AcUmPe6HUTzWdyW8HUlCuxZoO7rUafW8H+fRu5AF8LsDf5474MXDPLYP+rp0zrS4JCrJvNgxnTwBjda78vvAO40BoTpLVxO9XY0QveJj07oVMOu8YN6/vE31ojxMJhs6XyugvOzpQT0S9Ms6juwQPJa4h7zYMR29tBIDPUVFFDyIVeE8NN4evAC+TrxDIlQ8WZTwPC0ZgLyLR6k71KFFPQmRnTxdcag7kXWQPMSOCDwo1gi9bQmWPJ0wxjxn95a86cmKPKI7bbyADps88CXhPMan5zs6a+057odRPItHqbzZTQU9IdkZvfVoWDtCvJS8nZkOvbD9+jvm18K7AeGOvImpGb3SAza9594aPZCKILxzenw8zSkHO55oFjty48Q7MrtePNE0rjpU8hG9YrSfvBL0SzuiO207G8eau2wCPjwdgZI84mNTPdocjbsAvs48CkS9PMA2gTzFELC8jtAoPO9W2bwl+VC8vvfYvEG1PLzlcYO8fgdDObuKQbtz/6w7hVGSvArb9DyX5na81KHFO2Dev7zxlQE9kiiwu+RVG7xWkCE9lUjnPOGwM7wLqnw7z3o2O+pLMjuvZsO7brw1vXi9c7xBTPQ8T0ZSvGmVpryCQ+K7zvgOvNeTDT1g+ic8IO6pvP3n7jt11Yy8eS2UPBFdlDwqPMg8onM9PGw6jryZQQc6Ozp1vQtLlTw0We47wzpQvI0diTwcliK95m76Ol7XZzuh1S26PAl9OyjWCD0FAUa8ZG6XPLZjMr32i5g7SYGzOvyBL7xvw428/jsnO031ojynA5W8GvgSvYClUjx0gVS8qiPMO/gpKLwMGh28CMKVvHJMjbzrsfE8rRUUvfaLGDwCsJa7kdT3vEiWQ7xVWNE8qaGkO9Q4/bym56w6Tj/6PKz5K7w68B09Wf04vTJADzzeJzQ7sJ4TvLXFIj2Y7c48Ozr1PMG4qDyM5Tg9\"\n - \ }\n ],\n \"model\": \"text-embedding-3-small\",\n \"usage\": {\n \"prompt_tokens\": - 4,\n \"total_tokens\": 4\n }\n}\n" + string: |- + { + "object": "list", + "data": [ + { + "object": "embedding", + "index": 0, + "embedding": "wDYBvZfm9rzEQSg8pHoVPKTZ/LwQv4Q9sJ4TPR3g+bq3f5q74OGrvPn4LztJgTO8wBqZvNShRbwEyXU8vFnJPP/uxryDl5o8xxeIPG+LvTwteOe8iNoRvcO/gL1OP3o9ZgynPGyZdbzQsgY8cJKVPOuDgr0NsdQ8+3rXParr+7wVMGs60LKGPVkZIT1Edow9zdymvCltQLxwDWW9zSkHPAkM7TxFwGO9CG5dO4nFATtQmgo8MGqvO3XVjL2JxQG9/lcPPRtCajxH/wu98fToPEOnBL32bzC9J88wPRnV0rxpLF68v/4wO2/DjT1UUfm5KW1AvZEMSD1E8du6+7Knu9nkPL3MDR+7/RhnPOBcez05nGW9h++hvJ0wRr0Ph7Q81KHFPKcDFb0OgFy9ry5zvFOCcbx2pBS99JnQunJMDb0cEfK896eAPZIosDxJZUu8yBR/vNE0Lr0Qv4Q8hwsKPM/HlrzvVtk80zsGvYU1qrwRQay8SLIrvDg2JryQiiA9J+sYvL0oUTzUocU81neluwUBxrzQLda8tZSqPKFsZbwnZui8ecTLvCIj8TrZACU8qiNMPBnxOrynAxW8IiPxPDLs1rqDl5o8WEqZuw64rLz+Hz87rgCEvaFsZT3RNK47q3cEPAjCFb0z8648AytmvC39F71sAj68Ny/OvMRBKLygnd07ecRLO67kGzw9QU28SbmDvDb3/bwQcqQ8I5ORPavy07tYLrG8aZWmOhc3QzyrDrw8CT3lPMHpID1L0mI72QClPGAWkLve72O9AlzePHW5pDw9eR29VidZPCKoobsFmH07STTTPLFtm7sZ1VK8FTBrux40sjvBnEA8avvlundXNDuohby8wocwPX4HwzyKlIm8FqALvLjl2Tsq0388PRBVvdxtPLzQsga8V1+pvL0o0bxKbKO7fJorvB2BEr1YShk8uiQCvdvrlLxWrIk8BR2uvH8/EztO4BI96+Lpu/Al4TvnDxM9HWUqPKz5K7xZNYm7SZ0bvAwanTwS9Mu89byQPY/XgDxR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XhPMan5zs6a+057odRPItHqbzZTQU9IdkZvfVoWDtCvJS8nZkOvbD9+jvm18K7AeGOvImpGb3SAza9594aPZCKILxzenw8zSkHO55oFjty48Q7MrtePNE0rjpU8hG9YrSfvBL0SzuiO207G8eau2wCPjwdgZI84mNTPdocjbsAvs48CkS9PMA2gTzFELC8jtAoPO9W2bwl+VC8vvfYvEG1PLzlcYO8fgdDObuKQbtz/6w7hVGSvArb9DyX5na81KHFO2Dev7zxlQE9kiiwu+RVG7xWkCE9lUjnPOGwM7wLqnw7z3o2O+pLMjuvZsO7brw1vXi9c7xBTPQ8T0ZSvGmVpryCQ+K7zvgOvNeTDT1g+ic8IO6pvP3n7jt11Yy8eS2UPBFdlDwqPMg8onM9PGw6jryZQQc6Ozp1vQtLlTw0We47wzpQvI0diTwcliK95m76Ol7XZzuh1S26PAl9OyjWCD0FAUa8ZG6XPLZjMr32i5g7SYGzOvyBL7xvw428/jsnO031ojynA5W8GvgSvYClUjx0gVS8qiPMO/gpKLwMGh28CMKVvHJMjbzrsfE8rRUUvfaLGDwCsJa7kdT3vEiWQ7xVWNE8qaGkO9Q4/bym56w6Tj/6PKz5K7w68B09Wf04vTJADzzeJzQ7sJ4TvLXFIj2Y7c48Ozr1PMG4qDyM5Tg9" + } + ], + "model": "text-embedding-3-small", + "usage": { + "prompt_tokens": 4, + "total_tokens": 4 + } + } headers: CF-Cache-Status: - DYNAMIC CF-RAY: - - 8cc55a7d0dfbba86-MXP + - 8e14cbcbdee091c6-SIN Connection: - keep-alive Content-Type: - application/json Date: - - Wed, 02 Oct 2024 14:23:59 GMT + - Tue, 12 Nov 2024 07:26:50 GMT Server: - cloudflare Set-Cookie: test_set_cookie @@ -65,13 +83,15 @@ interactions: - '*' access-control-expose-headers: - X-Request-ID + alt-svc: + - h3=":443"; ma=86400 content-length: - '8414' openai-model: - text-embedding-3-small openai-organization: test_openai_org_key openai-processing-ms: - - '28' + - '113' openai-version: - '2020-10-01' strict-transport-security: @@ -89,7 +109,7 @@ interactions: x-ratelimit-reset-tokens: - 0s x-request-id: - - req_7530ceb2d15a30ff7b5ee83900abffcb + - req_cf3bc36f5c58290ad85b541de81bfec5 status: code: 200 message: OK diff --git a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_embeddings/test_model_not_found[openai_provider_embeddings].yaml b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_embeddings/test_model_not_found[openai_provider_embeddings].yaml index 04c44d5..a0ecb11 100644 --- a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_embeddings/test_model_not_found[openai_provider_embeddings].yaml +++ b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/cassettes/.test_embeddings/test_model_not_found[openai_provider_embeddings].yaml @@ -1,7 +1,13 @@ interactions: - request: - body: '{"input": ["South Atlantic Ocean."], "model": "not-found-model", "encoding_format": - "base64"}' + body: |- + { + "input": [ + "South Atlantic Ocean." + ], + "model": "not-found-model", + "encoding_format": "base64" + } headers: accept: - application/json @@ -18,39 +24,47 @@ interactions: host: - api.openai.com user-agent: - - OpenAI/Python 1.34.0 + - OpenAI/Python 1.54.3 x-stainless-arch: - - x64 + - arm64 x-stainless-async: - 'false' x-stainless-lang: - python x-stainless-os: - - Linux + - MacOS x-stainless-package-version: - - 1.34.0 + - 1.54.3 + x-stainless-retry-count: + - '0' x-stainless-runtime: - CPython x-stainless-runtime-version: - - 3.10.12 + - 3.12.6 method: POST uri: https://api.openai.com/v1/embeddings response: body: - string: "{\n \"error\": {\n \"message\": \"The model `not-found-model` - does not exist or you do not have access to it.\",\n \"type\": \"invalid_request_error\",\n - \ \"param\": null,\n \"code\": \"model_not_found\"\n }\n}\n" + string: |- + { + "error": { + "message": "The model `not-found-model` does not exist or you do not have access to it.", + "type": "invalid_request_error", + "param": null, + "code": "model_not_found" + } + } headers: CF-Cache-Status: - DYNAMIC CF-RAY: - - 8d07372d1c22d1fa-LHR + - 8e14cbf15e045ce4-SIN Connection: - keep-alive Content-Type: - application/json; charset=utf-8 Date: - - Thu, 10 Oct 2024 14:14:13 GMT + - Tue, 12 Nov 2024 07:26:56 GMT Server: - cloudflare Set-Cookie: test_set_cookie @@ -68,7 +82,7 @@ interactions: vary: - Origin x-request-id: - - req_2f53ac48cd8ac55089fc27329069bfa2 + - req_e8212643e81efb3e3446c0df71f5fe12 status: code: 404 message: Not Found diff --git a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/conftest.py b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/conftest.py index e3b2437..6cc4c0f 100644 --- a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/conftest.py +++ b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/conftest.py @@ -14,6 +14,7 @@ # See the License for the specific language governing permissions and # limitations under the License. +import json import re import os from typing import Sequence, Union @@ -21,6 +22,7 @@ import openai import pytest +import yaml from opentelemetry import metrics, trace from opentelemetry._logs import set_logger_provider from opentelemetry._events import set_event_logger_provider @@ -102,7 +104,7 @@ def instrument(): OPENAI_API_KEY = "test_openai_api_key" -OPENAI_ORG_ID = "test_openai_org_key" +OPENAI_ORG_ID = "test_openai_org_id" OPENAI_PROJECT_ID = "test_openai_project_id" @@ -123,7 +125,7 @@ def default_openai_env(monkeypatch): AZURE_ENDPOINT = "https://test.openai.azure.com" AZURE_DEPLOYMENT_NAME = "test-azure-deployment" AZURE_API_KEY = "test_azure_api_key" -AZURE_CHAT_COMPLETIONS_API_VERSION = "2023-03-15-preview" +AZURE_CHAT_COMPLETIONS_API_VERSION = "2024-08-01-preview" AZURE_CHAT_COMPLETIONS_DEPLOYMENT_URL = f"{AZURE_ENDPOINT}/openai/deployments/{AZURE_DEPLOYMENT_NAME}/chat/completions?api-version={AZURE_CHAT_COMPLETIONS_API_VERSION}" AZURE_EMBEDDINGS_API_VERSION = "2023-05-15" AZURE_EMBEDDINGS_DEPLOYMENT_URL = ( @@ -166,7 +168,7 @@ def vcr_config(): ("authorization", "Bearer " + OPENAI_API_KEY), ("openai-organization", OPENAI_ORG_ID), ("openai-project", OPENAI_PROJECT_ID), - ("cookie", None), + ("cookie", "test_cookie"), ], "before_record_request": scrub_request_url, "before_record_response": scrub_response_headers, @@ -223,14 +225,15 @@ def vcr_cassette_name(request): class AzureProvider: - def __init__(self, api_key, endpoint, api_version, operation_name): + def __init__(self, api_key, endpoint, deployment, api_version, operation_name): self.api_key = api_key self.endpoint = endpoint + self.deployment = deployment self.api_version = api_version self.operation_name = operation_name - self.server_address = "test.openai.azure.com" + self.server_address = urlparse(endpoint).hostname self.server_port = 443 @classmethod @@ -246,12 +249,12 @@ def from_env(cls, operation_name): parsed_url = urlparse(deployment_url) endpoint = f"https://{parsed_url.hostname}" - parsed_qs = parse_qs(parsed_url.query) - # query string entries are lists - api_version = parsed_qs["api-version"][0] + deployment = re.search(r"/deployments/([^/]+)", parsed_url.path).group(1) + api_version = parse_qs(parsed_url.query)["api-version"][0] return cls( api_key=api_key, endpoint=endpoint, + deployment=deployment, api_version=api_version, operation_name=operation_name, ) @@ -260,15 +263,16 @@ def _get_client_kwargs(self): return { "api_key": self.api_key, "azure_endpoint": self.endpoint, + "azure_deployment": self.deployment, "api_version": self.api_version, "max_retries": 1, } - def get_client(self): - return openai.AzureOpenAI(**self._get_client_kwargs()) + def get_client(self, **kwargs): + return openai.AzureOpenAI(**{**self._get_client_kwargs(), **kwargs}) - def get_async_client(self): - return openai.AsyncAzureOpenAI(**self._get_client_kwargs()) + def get_async_client(self, **kwargs): + return openai.AsyncAzureOpenAI(**{**self._get_client_kwargs(), **kwargs}) class OpenAIProvider: @@ -291,11 +295,11 @@ def _get_client_kwargs(self): "max_retries": 1, } - def get_client(self): - return openai.OpenAI(**self._get_client_kwargs()) + def get_client(self, **kwargs): + return openai.OpenAI(**{**self._get_client_kwargs(), **kwargs}) - def get_async_client(self): - return openai.AsyncOpenAI(**self._get_client_kwargs()) + def get_async_client(self, **kwargs): + return openai.AsyncOpenAI(**{**self._get_client_kwargs(), **kwargs}) class OllamaProvider: @@ -318,11 +322,11 @@ def _get_client_kwargs(self): "max_retries": 1, } - def get_client(self): - return openai.OpenAI(**self._get_client_kwargs()) + def get_client(self, **kwargs): + return openai.OpenAI(**{**self._get_client_kwargs(), **kwargs}) - def get_async_client(self): - return openai.AsyncOpenAI(**self._get_client_kwargs()) + def get_async_client(self, **kwargs): + return openai.AsyncOpenAI(**{**self._get_client_kwargs(), **kwargs}) @pytest.fixture @@ -521,3 +525,68 @@ def pytest_collection_modifyitems(config, items): test_is_integration = "integration" in item.keywords if run_integration_tests != test_is_integration: item.add_marker(skip_mark) + + +class LiteralBlockScalar(str): + """Formats the string as a literal block scalar, preserving whitespace and + without interpreting escape characters""" + + +def literal_block_scalar_presenter(dumper, data): + """Represents a scalar string as a literal block, via '|' syntax""" + return dumper.represent_scalar("tag:yaml.org,2002:str", data, style="|") + + +yaml.add_representer(LiteralBlockScalar, literal_block_scalar_presenter) + + +def process_string_value(string_value): + """Pretty-prints JSON or returns long strings as a LiteralBlockScalar""" + try: + json_data = json.loads(string_value) + return LiteralBlockScalar(json.dumps(json_data, indent=2)) + except (ValueError, TypeError): + if len(string_value) > 80: + return LiteralBlockScalar(string_value) + return string_value + + +def convert_body_to_literal(data): + """Searches the data for body strings, attempting to pretty-print JSON""" + if isinstance(data, dict): + for key, value in data.items(): + # Handle response body case (e.g., response.body.string) + if key == "body" and isinstance(value, dict) and "string" in value: + value["string"] = process_string_value(value["string"]) + + # Handle request body case (e.g., request.body) + elif key == "body" and isinstance(value, str): + data[key] = process_string_value(value) + + else: + convert_body_to_literal(value) + + elif isinstance(data, list): + for idx, choice in enumerate(data): + data[idx] = convert_body_to_literal(choice) + + return data + + +class PrettyPrintJSONBody: + """This makes request and response body recordings more readable.""" + + @staticmethod + def serialize(cassette_dict): + cassette_dict = convert_body_to_literal(cassette_dict) + return yaml.dump(cassette_dict, default_flow_style=False, allow_unicode=True) + + @staticmethod + def deserialize(cassette_string): + return yaml.load(cassette_string, Loader=yaml.Loader) + + +@pytest.fixture(scope="module", autouse=True) +def fixture_vcr(vcr): + vcr.register_serializer("yaml", PrettyPrintJSONBody) + return vcr diff --git a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/test_chat_completions.py b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/test_chat_completions.py index c92de4e..a9b1efb 100644 --- a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/test_chat_completions.py +++ b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/test_chat_completions.py @@ -16,10 +16,14 @@ import json import re +from dataclasses import dataclass +from typing import List from unittest import mock import openai import pytest +from opentelemetry._events import Event +from opentelemetry._logs import LogRecord from opentelemetry.instrumentation.openai import OpenAIInstrumentor from opentelemetry.trace import SpanKind, StatusCode from opentelemetry.semconv._incubating.attributes.gen_ai_attributes import ( @@ -60,29 +64,29 @@ "gpt-4o-mini", "gpt-4o-mini-2024-07-18", "South Atlantic Ocean.", - "chatcmpl-AEEtEV5mndU1WYBSLgvTpAIKAoYeu", + "chatcmpl-ASfa6PzPwTdpKRmM5equ6f0yxNbkr", 24, 4, 0.006761051714420319, ), ( "azure_provider_chat_completions", - "gpt-4o-mini", - "gpt-4o-mini", - "South Atlantic Ocean", - "chatcmpl-AEEtFi8N27MCQoHr62DvUowImjwEc", + "unused", + "gpt-4-32k", + "Atlantic Ocean", + "chatcmpl-ASxkAADVoG0VU3xx1Q0D1afSVpqLQ", 24, - 3, + 2, 0.002889830619096756, ), ( "ollama_provider_chat_completions", "qwen2.5:0.5b", "qwen2.5:0.5b", - "The Falklands Islands are located in the oceans south of South America.", - "chatcmpl-645", + "The Atlantic Ocean.", + "chatcmpl-126", 46, - 15, + 5, 0.002600736916065216, ), ] @@ -165,29 +169,29 @@ def test_basic( "gpt-4o-mini", "gpt-4o-mini-2024-07-18", "South Atlantic Ocean.", - "chatcmpl-AEGEFRHEOGpX0H3Nx84zgOEbJ8g6Y", + "chatcmpl-ASfa7XMQNQ9K4GKZSSrBU3zSmIyx5", 24, 4, 0.006761051714420319, ), ( "azure_provider_chat_completions", - "gpt-4o-mini", - "gpt-4o-mini", - "South Atlantic Ocean.", - "chatcmpl-AEGHLLqYkgJxUgLgX8RCLeL85irQR", + "unused", + "gpt-4-32k", + "Atlantic Ocean", + "chatcmpl-ASxkBZGOa53uXX1Ciygl77IrF8PbB", 24, - 4, + 2, 0.002889830619096756, ), ( "ollama_provider_chat_completions", "qwen2.5:0.5b", "qwen2.5:0.5b", - "The Great British Oceanic Peninsula.", - "chatcmpl-398", + "The Falklands Islands are located in Atlantic Oceans.", + "chatcmpl-46", 46, - 8, + 12, 0.002600736916065216, ), ] @@ -285,19 +289,19 @@ def test_all_the_client_options( "gpt-4o-mini", "gpt-4o-mini-2024-07-18", "South Atlantic Ocean.", - "chatcmpl-AEGIgPL1ReEL2yG6M4MrD3Uw960Bu", + "chatcmpl-ASfa8hgDJKumHgFlD27gZDNSC8HzZ", 140, 19, 0.006761051714420319, ), ( "azure_provider_chat_completions", - "gpt-4o-mini", - "gpt-4o-mini", + "unused", + "gpt-4-32k", "South Atlantic Ocean", - "chatcmpl-AEGIh5ygWzdZJL7BvIVeFLmgDSdT7", - 140, - 19, + "chatcmpl-ASxkDInQTANJ57p0VfUCuAISgNbW8", + 144, + 20, 0.002889830619096756, ), ( @@ -305,7 +309,7 @@ def test_all_the_client_options( "qwen2.5:0.5b", "qwen2.5:0.5b", "The Falklands Islands are located in the oceans south of South America.", - "chatcmpl-363", + "chatcmpl-641", 241, 28, 0.002600736916065216, @@ -319,19 +323,19 @@ def test_all_the_client_options( "gpt-4o-mini", "gpt-4o-mini-2024-07-18", "South Atlantic Ocean.", - "chatcmpl-ANeSeH4fwAhE7sU211OIx0aI6K16o", + "chatcmpl-ASfa8r4rkn4OQSmqDqjdHf2UtP4Gn", 24, 8, 0.006761051714420319, ), ( "azure_provider_chat_completions", - "gpt-4o-mini", - "gpt-4o-mini", - "South Atlantic Ocean.", - "chatcmpl-ANeSfhGk22jizSPywSdR4MGCOdc76", + "unused", + "gpt-4-32k", + "Atlantic Ocean", + "chatcmpl-ASxkC12M7RgRDgP5GjnYlUwEWQEDo", 24, - 8, + 4, 0.002889830619096756, ), # ollama does not support n>1 @@ -406,27 +410,9 @@ def test_multiple_choices_with_capture_message_content_log_events( user_message, choice, second_choice = log_records assert user_message.attributes == {"gen_ai.system": "openai", "event.name": "gen_ai.user.message"} assert user_message.body == {"content": "Answer in up to 3 words: Which ocean contains the falkland islands?"} - assert choice.attributes == {"gen_ai.system": "openai", "event.name": "gen_ai.choice"} - - expected_body = { - "finish_reason": "stop", - "index": 0, - "message": { - "content": content, - }, - } - assert dict(choice.body) == expected_body - - assert second_choice.attributes == {"gen_ai.system": "openai", "event.name": "gen_ai.choice"} - second_expected_body = { - "finish_reason": "stop", - "index": 1, - "message": { - "content": content, - }, - } - assert dict(second_choice.body) == second_expected_body + assert_stop_log_record(choice, content) + assert_stop_log_record(second_choice, content, 1) operation_duration_metric, token_usage_metric = get_sorted_metrics(metrics_reader) attributes = { @@ -551,21 +537,21 @@ def test_function_calling_with_tools( "gpt-4o-mini", "gpt-4o-mini-2024-07-18", "South Atlantic Ocean.", - "chatcmpl-AEGM5OhimYEMDsRq20IQCBx4vzf2Z", - "call_yU31CceO4OliQuZgPdsSPRXT", + "chatcmpl-ASfa9bDXRwPIhzm7t58LNXJLZnBgC", + "call_QerODwH75OIstmsLXRkCOy4X", 140, 19, 0.006761051714420319, ), ( "azure_provider_chat_completions", - "gpt-4o-mini", - "gpt-4o-mini", + "unused", + "gpt-4-32k", "South Atlantic Ocean", - "chatcmpl-AEGM6niNxWuulOpOMXNelXUZqF443", - "call_EOPkr9g0pp71Wt6LEteCHWkZ", - 140, - 19, + "chatcmpl-ASxkERPeCSyiDvA8jyN5dhIpAYryd", + "call_hR2GEOnGJhmLsHHsMgfLuICf", + 144, + 20, 0.002889830619096756, ), ( @@ -573,8 +559,8 @@ def test_function_calling_with_tools( "qwen2.5:0.5b", "qwen2.5:0.5b", "The Falklands Islands are located in the oceans south of South America.", - "chatcmpl-556", - "call_sr2j6oa1", + "chatcmpl-705", + "call_u9zt4jf1", 241, 28, 0.002600736916065216, @@ -673,13 +659,10 @@ def test_tools_with_capture_message_content( prompt_event, completion_event = span.events assert prompt_event.name == "gen_ai.content.prompt" assert dict(prompt_event.attributes) == {"gen_ai.prompt": json.dumps(messages)} - assert completion_event.name == "gen_ai.content.completion" - assert dict(completion_event.attributes) == { - "gen_ai.completion": '[{"role": "assistant", "content": "", "tool_calls": [{"id": "' - + function_call_id - + '", "type": "function", "function": {"name": "get_delivery_date", "arguments": "{\\"order_id\\":\\"order_12345\\"}"}}]}]' - } + assert_tool_call_event( + completion_event, [ToolCall(function_call_id, "get_delivery_date", '{"order_id": "order_12345"}')] + ) operation_duration_metric, token_usage_metric = get_sorted_metrics(metrics_reader) attributes = { GEN_AI_REQUEST_MODEL: model, @@ -703,21 +686,21 @@ def test_tools_with_capture_message_content( "gpt-4o-mini", "gpt-4o-mini-2024-07-18", "South Atlantic Ocean.", - "chatcmpl-AIEV9MTVUJ4HtPJm6pro1FgWlWQ2g", - "call_jQEwfwLUeVLVsxWaz8N0c8Yp", + "chatcmpl-ASfaAdUvnmifbYTNRZYh0TbM7mmTu", + "call_pWCLNanMRK7W7uEVHK8PzIKU", 140, 19, 0.006761051714420319, ), ( "azure_provider_chat_completions", - "gpt-4o-mini", - "gpt-4o-mini", + "unused", + "gpt-4-32k", "South Atlantic Ocean", - "chatcmpl-AIEVA7wwx1Cxy8O31zWDnxgUETAeN", - "call_Xyr5OWcqhvuW62vUx3sPPruH", - 140, - 19, + "chatcmpl-ASxkGiNWw960EEmcHpv6CgIyP6tHy", + "call_hR2GEOnGJhmLsHHsMgfLuICf", + 144, + 20, 0.002889830619096756, ), ( @@ -725,8 +708,8 @@ def test_tools_with_capture_message_content( "qwen2.5:0.5b", "qwen2.5:0.5b", "The Falklands Islands are located in the oceans south of South America.", - "chatcmpl-339", - "call_3h40tlh2", + "chatcmpl-695", + "call_stzzh47r", 241, 28, 0.002600736916065216, @@ -840,22 +823,10 @@ def test_tools_with_capture_message_content_log_events( } assert second_user_message.attributes == {"gen_ai.system": "openai", "event.name": "gen_ai.user.message"} assert second_user_message.body == {"content": "i think it is order_12345"} - assert choice.attributes == {"gen_ai.system": "openai", "event.name": "gen_ai.choice"} - expected_body = { - "finish_reason": "tool_calls", - "index": 0, - "message": { - "tool_calls": [ - { - "function": {"arguments": '{"order_id":"order_12345"}', "name": "get_delivery_date"}, - "id": function_call_id, - "type": "function", - }, - ], - }, - } - assert dict(choice.body) == expected_body + assert_tool_call_log_record( + choice, [ToolCall(function_call_id, "get_delivery_date", '{"order_id": "order_12345"}')] + ) operation_duration_metric, token_usage_metric = get_sorted_metrics(metrics_reader) attributes = { @@ -980,22 +951,8 @@ def test_tools_with_capture_message_content_log_events_integration( } assert second_user_message.attributes == {"gen_ai.system": "openai", "event.name": "gen_ai.user.message"} assert second_user_message.body == {"content": "i think it is order_12345"} - assert choice.attributes == {"gen_ai.system": "openai", "event.name": "gen_ai.choice"} - expected_body = { - "finish_reason": "tool_calls", - "index": 0, - "message": { - "tool_calls": [ - { - "function": {"arguments": '{"order_id":"order_12345"}', "name": "get_delivery_date"}, - "id": tool_call.id, - "type": "function", - }, - ], - }, - } - assert dict(choice.body) == expected_body + assert_tool_call_log_record(choice, [ToolCall(tool_call.id, "get_delivery_date", '{"order_id": "order_12345"}')]) operation_duration_metric, token_usage_metric = get_sorted_metrics(metrics_reader) attributes = { @@ -1022,7 +979,7 @@ def test_tools_with_capture_message_content_log_events_integration( ), ( "azure_provider_chat_completions", - "gpt-4o-mini", + "unused", 0.971050308085978, ), ( @@ -1087,29 +1044,29 @@ def test_connection_error(provider_str, model, duration, trace_exporter, metrics "gpt-4o-mini", "gpt-4o-mini-2024-07-18", "South Atlantic Ocean.", - "chatcmpl-AEFu3fjzje87q8tfrYWpazqelNIfW", + "chatcmpl-ASfaC6FMNUKWFqBJmf9rmRluWyRAF", 24, 4, 0.006761051714420319, ), ( "azure_provider_chat_completions", - "gpt-4o-mini", - "gpt-4o-mini", - "Atlantic Ocean.", - "chatcmpl-AEFu4REQubxeCCkrv6wgeJ4VdN6o5", + "unused", + "gpt-4-32k", + "Atlantic Ocean", + "chatcmpl-ASxkIgV0VKpWeEuyJHsem9UEl4fAt", 24, - 3, + 2, 0.002889830619096756, ), ( "ollama_provider_chat_completions", "qwen2.5:0.5b", "qwen2.5:0.5b", - "The Atlantic Ocean contains the Falkland Islands.", - "chatcmpl-976", + "The Atlantic Ocean.", + "chatcmpl-433", 46, - 10, + 5, 0.002600736916065216, ), ] @@ -1290,20 +1247,20 @@ def test_basic_with_capture_message_content_integration( "openai_provider_chat_completions", "gpt-4o-mini", "gpt-4o-mini-2024-07-18", - "Atlantic Ocean.", - "chatcmpl-AIEVEddriZ8trWDORY6MdqNgqRkDX", + "South Atlantic Ocean.", + "chatcmpl-ASfaDugIT60RnKtXL11x7yXKEn7WK", 24, - 3, + 4, 0.006761051714420319, ), ( "azure_provider_chat_completions", - "gpt-4o-mini", - "gpt-4o-mini", - "South Atlantic Ocean.", - "chatcmpl-AIEVEmwAmuw8qGX1PViCfm0kTe9O8", + "unused", + "gpt-4-32k", + "Atlantic Ocean", + "chatcmpl-ASxkJuCwyegZk4W2awEhTKyCzstRr", 24, - 4, + 2, 0.002889830619096756, ), ( @@ -1311,7 +1268,7 @@ def test_basic_with_capture_message_content_integration( "qwen2.5:0.5b", "qwen2.5:0.5b", "Atlantic Ocean", - "chatcmpl-694", + "chatcmpl-913", 46, 3, 0.002600736916065216, @@ -1386,16 +1343,8 @@ def test_basic_with_capture_message_content_log_events( user_message, choice = log_records assert dict(user_message.attributes) == {"gen_ai.system": "openai", "event.name": "gen_ai.user.message"} assert dict(user_message.body) == {"content": "Answer in up to 3 words: Which ocean contains the falkland islands?"} - assert dict(choice.attributes) == {"gen_ai.system": "openai", "event.name": "gen_ai.choice"} - expected_body = { - "finish_reason": "stop", - "index": 0, - "message": { - "content": content, - }, - } - assert dict(choice.body) == expected_body + assert_stop_log_record(choice, content) operation_duration_metric, token_usage_metric = get_sorted_metrics(metrics_reader) attributes = { @@ -1420,23 +1369,23 @@ def test_basic_with_capture_message_content_log_events( "gpt-4o-mini", "gpt-4o-mini-2024-07-18", "South Atlantic Ocean.", - "chatcmpl-AEGTAvX2YSIO9EQwMleHTB91Cgn4G", + "chatcmpl-ASfaENPdLwpR8Jo5gHFiIL9tuklHK", 0.006761051714420319, ), ( "azure_provider_chat_completions", - "gpt-4o-mini", - "gpt-4o-mini", - "South Atlantic Ocean.", - "chatcmpl-AEGTBkVVthwTc3DgRp6RGKJxyY1pE", + "unused", + "gpt-4-32k", + "Atlantic Ocean", + "chatcmpl-ASxkK7GCpziJMmUFp08jG5xb3Rr9K", 0.002889830619096756, ), ( "ollama_provider_chat_completions", "qwen2.5:0.5b", "qwen2.5:0.5b", - "The Falkland Islands, also known as the Argentinian Islands or British South America Land (BSAL), is an archipelago of several small islands and peninsulas located off the coast of Argentina. It contains nine uninhabited Falkland Islands, plus a mix of uninhabitable territory and other small features that are not considered part of the Falkland Islands' current administrative divisions.", - "chatcmpl-415", + "Atlantic Sea.", + "chatcmpl-702", 0.002600736916065216, ), ] @@ -1499,19 +1448,19 @@ def test_stream( "gpt-4o-mini", "gpt-4o-mini-2024-07-18", "South Atlantic Ocean.", - "chatcmpl-AEGTE6nGqR4tbVuy6CPSHnXIF2eqy", + "chatcmpl-ASfaFZizr7oebXDx3CgQuBnXD01Xp", 24, 4, 0.006761051714420319, ), ( "azure_provider_chat_completions", - "gpt-4o-mini", - "gpt-4o-mini", - "South Atlantic Ocean.", - "chatcmpl-AEGTFYMyoBBDm4Qz37Lc8bekb2QOO", + "unused", + "gpt-4-32k", + "Atlantic Ocean", + "chatcmpl-ASxkLviKAQt414bmMPfpr2DfNYgKt", 24, - 4, + 2, 0.002889830619096756, ), ] @@ -1691,21 +1640,21 @@ def test_stream_with_include_usage_option_and_capture_message_content_integratio "gpt-4o-mini-2024-07-18", "", { - "gen_ai.completion": '[{"role": "assistant", "content": "", "tool_calls": [{"function": {"arguments": "{\\"order_id\\":\\"order_12345\\"}", "name": "get_delivery_date"}, "id": "call_Hb0tFTds0zHfckULpnZ4t8XL", "type": "function"}]}]' + "gen_ai.completion": '[{"role": "assistant", "content": "", "tool_calls": [{"function": {"arguments": "{\\"order_id\\":\\"order_12345\\"}", "name": "get_delivery_date"}, "id": "call_RlWXV8zAJhzxsh6JqMHY0HbV", "type": "function"}]}]' }, - "chatcmpl-AEGTFZ2zBPeLJlZ1EA10ZEDA12VfO", + "chatcmpl-ASfaFeOMsHtr0F6UH3Q1faiZxSeMX", "tool_calls", 0.006761051714420319, ), ( "azure_provider_chat_completions", - "gpt-4o-mini", - "gpt-4o-mini", + "unused", + "gpt-4-32k", "", { - "gen_ai.completion": '[{"role": "assistant", "content": "", "tool_calls": [{"function": {"arguments": "{\\"order_id\\":\\"order_12345\\"}", "name": "get_delivery_date"}, "id": "call_96LHcDPBXtgIxgxbFvuJjTYU", "type": "function"}]}]' + "gen_ai.completion": '[{"role": "assistant", "content": "", "tool_calls": [{"function": {"arguments": "{\\n \\"order_id\\": \\"order_12345\\"\\n}", "name": "get_delivery_date"}, "id": "call_hR2GEOnGJhmLsHHsMgfLuICf", "type": "function"}]}]' }, - "chatcmpl-AEGTHbbvqBK2BE52I8GByDCM2dypS", + "chatcmpl-ASxkMa2HB9hyfwSNjCqVUwX2txxqr", "tool_calls", 0.002889830619096756, ), @@ -1721,7 +1670,7 @@ def test_stream_with_include_usage_option_and_capture_message_content_integratio ) + "}]" }, - "chatcmpl-598", + "chatcmpl-268", "stop", 0.002600736916065216, ), @@ -1836,20 +1785,20 @@ def test_stream_with_tools_and_capture_message_content( "gpt-4o-mini-2024-07-18", "", '{"order_id": "order_12345"}', - "chatcmpl-AIEVFr8IGqjRC2wxrGU3tcRjNbGKf", + "chatcmpl-ASfaGWIziiqvP4PoufIFi3K2p2caY", "tool_calls", - "call_BQ6tpzuq28epoO6jzUNSdG6r", + "call_oEbEusT5nkkAiGgypUSDwK7k", 0.006761051714420319, ), ( "azure_provider_chat_completions", - "gpt-4o-mini", - "gpt-4o-mini", + "unused", + "gpt-4-32k", "", '{"order_id": "order_12345"}', - "chatcmpl-AIEVHRdUM6ip3Uolr8CcrlGhchugq", + "chatcmpl-ASxkOzfrRK9uiquPJ2AH90npzayEy", "tool_calls", - "call_XNHRbrreMnt9ReHJfNH30mom", + "call_U0QYBadhpy4pBO6jYPm09KvZ", 0.002889830619096756, ), ( @@ -1860,7 +1809,7 @@ def test_stream_with_tools_and_capture_message_content( json.dumps( '\n{"name": "get_delivery_date", "arguments": {"order_id": "order_12345"}}\n' ), - "chatcmpl-436", + "chatcmpl-749", "stop", "ciao", 0.002600736916065216, @@ -1975,28 +1924,11 @@ def test_stream_with_tools_and_capture_message_content_log_events( assert choice.attributes == {"gen_ai.system": "openai", "event.name": "gen_ai.choice"} if finish_reason == "tool_calls": - expected_body = { - "finish_reason": finish_reason, - "index": 0, - "message": { - "tool_calls": [ - { - "function": {"arguments": '{"order_id":"order_12345"}', "name": "get_delivery_date"}, - "id": function_call_id, - "type": "function", - }, - ] - }, - } + assert_tool_call_log_record( + choice, [ToolCall(function_call_id, "get_delivery_date", '{"order_id": "order_12345"}')] + ) else: - expected_body = { - "finish_reason": finish_reason, - "index": 0, - "message": { - "content": content, - }, - } - assert dict(choice.body) == expected_body + assert_stop_log_record(choice, content) span_ctx = span.get_span_context() assert choice.trace_id == span_ctx.trace_id @@ -2022,9 +1954,9 @@ def test_stream_with_tools_and_capture_message_content_log_events( "gpt-4o-mini-2024-07-18", "", { - "gen_ai.completion": '[{"role": "assistant", "content": "", "tool_calls": [{"function": {"arguments": "{\\"location\\": \\"New York\\"}", "name": "get_weather"}, "id": "call_uDsEOSTauJkgNI8ciF0AvU0X", "type": "function"}, {"function": {"arguments": "{\\"location\\": \\"London\\"}", "name": "get_weather"}, "id": "call_If8zqvcIX9JYzEYJ02dlpoBX", "type": "function"}]}]' + "gen_ai.completion": '[{"role": "assistant", "content": "", "tool_calls": [{"function": {"arguments": "{\\"location\\": \\"New York City\\"}", "name": "get_weather"}, "id": "call_awpPik83NVMEmnWIARc49DVf", "type": "function"}, {"function": {"arguments": "{\\"location\\": \\"London\\"}", "name": "get_weather"}, "id": "call_LPkfKwdcq3Tqg06fTFVIDcV5", "type": "function"}]}]' }, - "chatcmpl-AGooCqGLiGVX21z77Wlic8pSD93XP", + "chatcmpl-ASfaHUbWaDoK0qGijDZO8PwY9efB7", "tool_calls", 0.006761051714420319, ), @@ -2032,11 +1964,16 @@ def test_stream_with_tools_and_capture_message_content_log_events( "ollama_provider_chat_completions", "qwen2.5:0.5b", "qwen2.5:0.5b", - 'To provide you with the most current information about the weather, I need to know which cities you are interested in. Could we please specify the name of each city? For instance, both "New York", "London" or individual names like "New York City".', + """ +{"name": "get_weather", "arguments": {"location": "New York City"}} + + +{"name": "get_weather", "arguments": {"location": "London"}} +""", { - "gen_ai.completion": '[{"role": "assistant", "content": "To provide you with the most current information about the weather, I need to know which cities you are interested in. Could we please specify the name of each city? For instance, both \\"New York\\", \\"London\\" or individual names like \\"New York City\\"."}]' + "gen_ai.completion": '[{"role": "assistant", "content": "\\n{\\"name\\": \\"get_weather\\", \\"arguments\\": {\\"location\\": \\"New York City\\"}}\\n\\n\\n{\\"name\\": \\"get_weather\\", \\"arguments\\": {\\"location\\": \\"London\\"}}\\n"}]' }, - "chatcmpl-142", + "chatcmpl-918", "stop", 0.002600736916065216, ), @@ -2136,8 +2073,6 @@ def test_stream_with_parallel_tools_and_capture_message_content( ) -# Azure is not tested because only gpt-4o version 2024-08-06 supports structured output: -# openai.BadRequestError: Error code: 400 - {'error': {'message': 'Structured output is not allowed.', 'type': 'invalid_request_error', 'param': None, 'code': None}} test_stream_with_parallel_tools_and_capture_message_content_log_events_test_data = [ ( "openai_provider_chat_completions", @@ -2145,25 +2080,28 @@ def test_stream_with_parallel_tools_and_capture_message_content( "gpt-4o-mini-2024-07-18", "", json.dumps(""), - "chatcmpl-AICov4avW9uwU1rfxlUzPKGG5BiCs", + "chatcmpl-ASfaJQVIzX3LUZllbc5hR0NnEzs0b", "tool_calls", 0.006761051714420319, ), + # Azure is not tested because gpt-4-32k does not support parallel tool calls ( "ollama_provider_chat_completions", "qwen2.5:0.5b", "qwen2.5:0.5b", - "\n" - + json.dumps({"name": "get_weather", "arguments": {"location": "New York, NY"}}, indent=2) - + "\n\n\n" - + json.dumps({"name": "get_weather", "arguments": {"location": "London, UK"}}, indent=2) - + "\n", - '{"message": {"content":"\n' - + json.dumps({"name": "get_weather", "arguments": {"location": "New York, NY"}}, indent=2) - + "\n\n\n" - + json.dumps({"name": "get_weather", "arguments": {"location": "London, UK"}}, indent=2) - + "\n", - "chatcmpl-986", + """ +{"name": "get_weather", "arguments": {"location": "New York City, New York"}} + + +{"name": "get_weather", "arguments": {"location": "London, United Kingdom"}} +""", + """{"message": {"content":" +{"name": "get_weather", "arguments": {"location": "New York City, New York"}} + + +{"name": "get_weather", "arguments": {"location": "London, United Kingdom"}} +"}}""", + "chatcmpl-563", "stop", 0.002600736916065216, ), @@ -2257,36 +2195,17 @@ def test_stream_with_parallel_tools_and_capture_message_content_log_events( assert system_message.body == {"content": "You are a helpful assistant providing weather updates."} assert user_message.attributes == {"gen_ai.system": "openai", "event.name": "gen_ai.user.message"} assert user_message.body == {"content": "What is the weather in New York City and London?"} - assert choice.attributes == {"gen_ai.system": "openai", "event.name": "gen_ai.choice"} if finish_reason == "tool_calls": - expected_body = { - "finish_reason": finish_reason, - "index": 0, - "message": { - "tool_calls": [ - { - "function": {"arguments": '{"location": "New York City"}', "name": "get_weather"}, - "id": "call_m8FzMvtVd3wjksWMeRCWkPDK", - "type": "function", - }, - { - "function": {"arguments": '{"location": "London"}', "name": "get_weather"}, - "id": "call_4WcXUPtB1wlKUy1lOrguqAtC", - "type": "function", - }, - ] - }, - } + assert_tool_call_log_record( + choice, + [ + ToolCall("call_9nzwliy6hCnTQuvkNdULIFkr", "get_weather", '{"location": "New York City"}'), + ToolCall("call_3WjOCSgcSXK5YPOuP6GMwncg", "get_weather", '{"location": "London"}'), + ], + ) else: - expected_body = { - "finish_reason": finish_reason, - "index": 0, - "message": { - "content": content, - }, - } - assert dict(choice.body) == expected_body + assert_stop_log_record(choice, content) span_ctx = span.get_span_context() assert choice.trace_id == span_ctx.trace_id @@ -2313,15 +2232,7 @@ def test_stream_with_parallel_tools_and_capture_message_content_log_events( "tool_calls", 0.007433261722326279, ), - ( - "azure_provider_chat_completions", - "gpt-4o-mini", - "gpt-4o-mini", - None, - json.dumps(""), - "tool_calls", - 0.003254897892475128, - ), + # Azure is not tested because gpt-4-32k does not support parallel tool calls # ollama does not return tool calls ] @@ -2384,8 +2295,8 @@ def test_tools_with_followup_and_capture_message_content_log_events( assert first_response.choices[0].message.content == content - first_reponse_message = first_response.choices[0].message - if hasattr(first_reponse_message, "to_dict"): + first_response_message = first_response.choices[0].message + if hasattr(first_response_message, "to_dict"): previous_message = first_response.choices[0].message.to_dict() else: # old pydantic from old openai client @@ -2457,27 +2368,20 @@ def test_tools_with_followup_and_capture_message_content_log_events( assert system_message.body == {"content": "You are a helpful assistant providing weather updates."} assert user_message.attributes == {"gen_ai.system": "openai", "event.name": "gen_ai.user.message"} assert user_message.body == {"content": "What is the weather in New York City and London?"} - assert choice.attributes == {"gen_ai.system": "openai", "event.name": "gen_ai.choice"} - expected_body = { - "finish_reason": finish_reason, - "index": 0, - "message": { - "tool_calls": [ - { - "function": {"arguments": '{"location": "New York City"}', "name": "get_weather"}, - "id": previous_message["tool_calls"][0]["id"], - "type": "function", - }, - { - "function": {"arguments": '{"location": "London"}', "name": "get_weather"}, - "id": previous_message["tool_calls"][1]["id"], - "type": "function", - }, - ] - }, - } - assert dict(choice.body) == expected_body + assert_tool_call_log_record( + choice, + [ + ToolCall( + id=previous_message["tool_calls"][0]["id"], + name="get_weather", + arguments_json='{"location": "New York City"}', + ), + ToolCall( + id=previous_message["tool_calls"][1]["id"], name="get_weather", arguments_json='{"location": "London"}' + ), + ], + ) # second call events system_message, user_message, assistant_message, first_tool, second_tool, choice = log_records[3:] @@ -2493,12 +2397,8 @@ def test_tools_with_followup_and_capture_message_content_log_events( assert second_tool.attributes == {"gen_ai.system": "openai", "event.name": "gen_ai.tool.message"} second_tool_response = previous_message["tool_calls"][1] assert second_tool.body == {"content": "15 degrees and raining", "id": second_tool_response["id"]} - assert choice.attributes == {"gen_ai.system": "openai", "event.name": "gen_ai.choice"} - assert choice.body == { - "index": 0, - "finish_reason": "stop", - "message": {"content": second_response.choices[0].message.content}, - } + + assert_stop_log_record(choice, second_response.choices[0].message.content) operation_duration_metric, token_usage_metric = get_sorted_metrics(metrics_reader) attributes = { @@ -2524,29 +2424,29 @@ def test_tools_with_followup_and_capture_message_content_log_events( "gpt-4o-mini", "gpt-4o-mini-2024-07-18", "South Atlantic Ocean.", - "chatcmpl-AEGqstM7lJ74sLzKJxMyhZZJixowh", + "chatcmpl-ASfaN2cUXcaAFQ7uFS83Kuvc0iKdp", 24, 4, 0.006761051714420319, ), ( "azure_provider_chat_completions", - "gpt-4o-mini", - "gpt-4o-mini", - "South Atlantic Ocean.", - "chatcmpl-AEGqs0IFKsicvFYSaiyWFpZVr6OHe", + "unused", + "gpt-4-32k", + "Atlantic Ocean", + "chatcmpl-ASxkRs5B2H6Nyi9F1xV78yBVkiBbi", 24, - 4, + 2, 0.002889830619096756, ), ( "ollama_provider_chat_completions", "qwen2.5:0.5b", "qwen2.5:0.5b", - "Atlantic Ocean", - "chatcmpl-425", + "The Falkland Islands belong to Argentina.", + "chatcmpl-95", 46, - 3, + 9, 0.002600736916065216, ), ] @@ -2630,29 +2530,29 @@ async def test_async_basic( "gpt-4o-mini", "gpt-4o-mini-2024-07-18", "South Atlantic Ocean.", - "chatcmpl-AEGquKdflabT1q3yPFXFggu0hn6Cg", + "chatcmpl-ASfaOHHT6qOYpFc5M7uzSkgfXnnpJ", 24, 4, 0.006761051714420319, ), ( "azure_provider_chat_completions", - "gpt-4o-mini", - "gpt-4o-mini", - "South Atlantic Ocean.", - "chatcmpl-AEGqv0J1RJgG477zKEayzIFWtBfoN", + "unused", + "gpt-4-32k", + "Atlantic Ocean", + "chatcmpl-ASySeHu4TgKtlulOVp4LU8yTNRvoM", 24, - 4, + 2, 0.002889830619096756, ), ( "ollama_provider_chat_completions", "qwen2.5:0.5b", "qwen2.5:0.5b", - "Antarctica", - "chatcmpl-280", + "Antarctica ocean.", + "chatcmpl-816", 46, - 4, + 6, 0.002600736916065216, ), ] @@ -2748,29 +2648,29 @@ async def test_async_basic_with_capture_message_content( "gpt-4o-mini", "gpt-4o-mini-2024-07-18", "South Atlantic Ocean.", - "chatcmpl-AIEVJxmbMtOSyVurjk73oqE0uQhAX", + "chatcmpl-ASfaOykfLmr5qdUddSbFIDNGReNRJ", 24, 4, 0.006761051714420319, ), ( "azure_provider_chat_completions", - "gpt-4o-mini", - "gpt-4o-mini", - "South Atlantic Ocean.", - "chatcmpl-AIEVKUfan2sD0ScQLHPSMYn7Fet3Y", + "unused", + "gpt-4-32k", + "Atlantic Ocean", + "chatcmpl-ASxkTeNjqCBy25d2g18faeBtc66GG", 24, - 4, + 2, 0.002889830619096756, ), ( "ollama_provider_chat_completions", "qwen2.5:0.5b", "qwen2.5:0.5b", - "The Falkland Islands are located within the southern waters of the South Atlantic Ocean.", - "chatcmpl-472", + "The Falkland Islands are located in which ocean?", + "chatcmpl-295", 46, - 17, + 11, 0.002600736916065216, ), ] @@ -2844,16 +2744,8 @@ async def test_async_basic_with_capture_message_content_log_events( user_message, choice = log_records assert dict(user_message.attributes) == {"gen_ai.system": "openai", "event.name": "gen_ai.user.message"} assert dict(user_message.body) == {"content": "Answer in up to 3 words: Which ocean contains the falkland islands?"} - assert dict(choice.attributes) == {"gen_ai.system": "openai", "event.name": "gen_ai.choice"} - expected_body = { - "finish_reason": "stop", - "index": 0, - "message": { - "content": content, - }, - } - assert dict(choice.body) == expected_body + assert_stop_log_record(choice, content) operation_duration_metric, token_usage_metric = get_sorted_metrics(metrics_reader) attributes = { @@ -2941,16 +2833,8 @@ async def test_async_basic_with_capture_message_content_log_events_integration( user_message, choice = log_records assert user_message.attributes == {"gen_ai.system": "openai", "event.name": "gen_ai.user.message"} assert user_message.body == {"content": "Answer in up to 3 words: Which ocean contains the falkland islands?"} - assert choice.attributes == {"gen_ai.system": "openai", "event.name": "gen_ai.choice"} - expected_body = { - "finish_reason": "stop", - "index": 0, - "message": { - "content": content, - }, - } - assert dict(choice.body) == expected_body + assert_stop_log_record(choice, content) operation_duration_metric, token_usage_metric = get_sorted_metrics(metrics_reader) attributes = { @@ -2975,23 +2859,23 @@ async def test_async_basic_with_capture_message_content_log_events_integration( "gpt-4o-mini", "gpt-4o-mini-2024-07-18", "South Atlantic Ocean.", - "chatcmpl-AEGqwO8cO97nJK1gMyVlzL9Mfyv7E", + "chatcmpl-ASfaPgUOEfxcTVUSEfUINfcFkVQ8x", 0.006761051714420319, ), ( "azure_provider_chat_completions", - "gpt-4o-mini", - "gpt-4o-mini", - "South Atlantic Ocean.", - "chatcmpl-AEGqxYYCkiihSc05nBzHlYVwwUmzl", + "unused", + "gpt-4-32k", + "Atlantic Ocean", + "chatcmpl-ASxkU7Rz5UnZqCWoV86xfgDVgc719", 0.002889830619096756, ), ( "ollama_provider_chat_completions", "qwen2.5:0.5b", "qwen2.5:0.5b", - "The Falkland Islands are located on which ocean?", - "chatcmpl-325", + "The Southern Ocean.", + "chatcmpl-232", 0.002600736916065216, ), ] @@ -3054,23 +2938,23 @@ async def test_async_stream( "gpt-4o-mini", "gpt-4o-mini-2024-07-18", "South Atlantic Ocean.", - "chatcmpl-AEGqyZRrj9GUzDNw5te55gt1r7eus", + "chatcmpl-ASfaPHhHlSFtYDMa1S0QSWewTPhuS", 0.006761051714420319, ), ( "azure_provider_chat_completions", - "gpt-4o-mini", - "gpt-4o-mini", - "South Atlantic Ocean.", - "chatcmpl-AEGqzfynQK4iCO7EXRy3kGXYyuxF5", + "unused", + "gpt-4-32k", + "Atlantic Ocean", + "chatcmpl-ASxkVWhWg2yeY7IV8yr6Lywa7fke4", 0.002889830619096756, ), ( "ollama_provider_chat_completions", "qwen2.5:0.5b", "qwen2.5:0.5b", - "The Falkland Islands lie within which ocean?", - "chatcmpl-644", + "South America's Atlantic Ocean.", + "chatcmpl-752", 0.002600736916065216, ), ] @@ -3155,23 +3039,23 @@ async def test_async_stream_with_capture_message_content( "gpt-4o-mini", "gpt-4o-mini-2024-07-18", "South Atlantic Ocean.", - "chatcmpl-AIEVLVduixLA39qqzjDIfJ2u2dPcJ", + "chatcmpl-ASfaQS4L6eLFljyu9h8zZRbp2hf5j", 0.006761051714420319, ), ( "azure_provider_chat_completions", - "gpt-4o-mini", - "gpt-4o-mini", - "South Atlantic Ocean.", - "chatcmpl-AIEVNaNWKhuoMnRJtcPUJNjbAz9Ib", + "unused", + "gpt-4-32k", + "Atlantic Ocean", + "chatcmpl-ASyRrEoGtgeeLRtFd7mM1CePrJUac", 0.002889830619096756, ), ( "ollama_provider_chat_completions", "qwen2.5:0.5b", "qwen2.5:0.5b", - "The Falkland Islands contain the South Atlantic Ocean.", - "chatcmpl-466", + "The Falkland Islands belong to Argentina.", + "chatcmpl-465", 0.002600736916065216, ), ] @@ -3241,16 +3125,8 @@ async def test_async_stream_with_capture_message_content_log_events( user_message, choice = log_records assert dict(user_message.attributes) == {"gen_ai.system": "openai", "event.name": "gen_ai.user.message"} assert dict(user_message.body) == {"content": "Answer in up to 3 words: Which ocean contains the falkland islands?"} - assert dict(choice.attributes) == {"gen_ai.system": "openai", "event.name": "gen_ai.choice"} - expected_body = { - "finish_reason": "stop", - "index": 0, - "message": { - "content": content, - }, - } - assert dict(choice.body) == expected_body + assert_stop_log_record(choice, content) span_ctx = span.get_span_context() assert choice.trace_id == span_ctx.trace_id @@ -3273,20 +3149,20 @@ async def test_async_stream_with_capture_message_content_log_events( "openai_provider_chat_completions", "gpt-4o-mini", "gpt-4o-mini-2024-07-18", - "chatcmpl-AEGr0SsAhppNLpPXpTtnmBiGGViQb", - "call_vZtzXVh5oO3k1IpFfuRejWHv", + "chatcmpl-ASfaRyXEFFt9GzMooIy1bDXqjYnWV", + "call_fW4XFpzxFZ7Rfj5dsDcZTezg", 140, 19, 0.006761051714420319, ), ( "azure_provider_chat_completions", - "gpt-4o-mini", - "gpt-4o-mini", - "chatcmpl-AEGr1X6ieLFOD5hlXZBx2BL2BrSLe", - "call_46cgdzJzy50oQJwWeUVWIwC3", - 140, - 19, + "unused", + "gpt-4-32k", + "chatcmpl-ASxkX3IDac2dYI6AB8L4iA7SJaNii", + "call_Lm5cpl4sJy5b1FfEjsnbbjlL", + 144, + 20, 0.002889830619096756, ), ] @@ -3383,12 +3259,10 @@ async def test_async_tools_with_capture_message_content( prompt_event, completion_event = span.events assert prompt_event.name == "gen_ai.content.prompt" assert dict(prompt_event.attributes) == {"gen_ai.prompt": json.dumps(messages)} - assert completion_event.name == "gen_ai.content.completion" - assert dict(completion_event.attributes) == { - "gen_ai.completion": '[{"role": "assistant", "content": "", "tool_calls": [{"id": "' - + function_call_id - + '", "type": "function", "function": {"name": "get_delivery_date", "arguments": "{\\"order_id\\":\\"order_12345\\"}"}}]}]' - } + + assert_tool_call_event( + completion_event, [ToolCall(function_call_id, "get_delivery_date", '{"order_id": "order_12345"}')] + ) operation_duration_metric, token_usage_metric = get_sorted_metrics(metrics_reader) attributes = { @@ -3413,8 +3287,8 @@ async def test_async_tools_with_capture_message_content( "openai_provider_chat_completions", "gpt-4o-mini", "gpt-4o-mini-2024-07-18", - "chatcmpl-AIEVOegIWRWjNVbjxs4iASh4SNKAj", - "call_n4WJq7bu6UsgjdqeNYxRmGno", + "chatcmpl-ASfaSKFvgQzcktnJhUZmtGmdoKwkW", + "call_TZeQV35RVjT4iAuUXs85nmkt", "", 140, 19, @@ -3422,13 +3296,13 @@ async def test_async_tools_with_capture_message_content( ), ( "azure_provider_chat_completions", - "gpt-4o-mini", - "gpt-4o-mini", - "chatcmpl-AIEVPAAgrPcEpkQHXamdD9JpNNPep", - "call_uO2RgeshT5Xmbwg778qN14d5", + "unused", + "gpt-4-32k", + "chatcmpl-ASxkYrqUQVubUzovieQByym7sxgdm", + "call_U0QYBadhpy4pBO6jYPm09KvZ", "", - 140, - 19, + 144, + 20, 0.002889830619096756, ), ] @@ -3541,22 +3415,10 @@ async def test_async_tools_with_capture_message_content_log_events( } assert dict(second_user_message.attributes) == {"gen_ai.system": "openai", "event.name": "gen_ai.user.message"} assert dict(second_user_message.body) == {"content": "i think it is order_12345"} - assert dict(choice.attributes) == {"gen_ai.system": "openai", "event.name": "gen_ai.choice"} - - expected_body = { - "finish_reason": "tool_calls", - "index": 0, - "message": { - "tool_calls": [ - { - "function": {"arguments": '{"order_id":"order_12345"}', "name": "get_delivery_date"}, - "id": function_call_id, - "type": "function", - }, - ], - }, - } - assert dict(choice.body) == expected_body + + assert_tool_call_log_record( + choice, [ToolCall(function_call_id, "get_delivery_date", '{"order_id": "order_12345"}')] + ) operation_duration_metric, token_usage_metric = get_sorted_metrics(metrics_reader) attributes = { @@ -3576,33 +3438,19 @@ async def test_async_tools_with_capture_message_content_log_events( test_without_model_parameter_test_data = [ - ( - "openai_provider_chat_completions", - "api.openai.com", - 443, - 5, - ), - ( - "azure_provider_chat_completions", - "test.openai.azure.com", - 443, - 5, - ), + ("openai_provider_chat_completions", 5), + ("azure_provider_chat_completions", 5), ( "ollama_provider_chat_completions", - "localhost", - 11434, 5, ), ] @pytest.mark.vcr() -@pytest.mark.parametrize("provider_str,server_address,server_port,duration", test_without_model_parameter_test_data) +@pytest.mark.parametrize("provider_str,duration", test_without_model_parameter_test_data) def test_without_model_parameter( provider_str, - server_address, - server_port, duration, trace_exporter, metrics_reader, @@ -3639,12 +3487,16 @@ def test_without_model_parameter( ERROR_TYPE: "TypeError", GEN_AI_OPERATION_NAME: "chat", GEN_AI_SYSTEM: "openai", - SERVER_ADDRESS: server_address, - SERVER_PORT: server_port, + SERVER_ADDRESS: provider.server_address, + SERVER_PORT: provider.server_port, } (operation_duration_metric,) = get_sorted_metrics(metrics_reader) - attributes = {"error.type": "TypeError", "server.address": server_address, "server.port": server_port} + attributes = { + "error.type": "TypeError", + "server.address": provider.server_address, + "server.port": provider.server_port, + } assert_error_operation_duration_metric( provider, operation_duration_metric, attributes=attributes, data_point=duration, value_delta=5 ) @@ -3653,22 +3505,13 @@ def test_without_model_parameter( test_with_model_not_found_test_data = [ ( "openai_provider_chat_completions", - "api.openai.com", - 443, "The model `not-found-model` does not exist or you do not have access to it.", 0.00230291485786438, ), - ( - "azure_provider_chat_completions", - "test.openai.azure.com", - 443, - "The API deployment for this resource does not exist. If you created the deployment within the last 5 minutes, please wait a moment and try again.", - 0.00230291485786438, - ), + # We don't test with azure because the model parameter is ignored, so ends up successful. + # This is verifiable by noticing the model parameter is always set to "unused" ( "ollama_provider_chat_completions", - "localhost", - 11434, 'model "not-found-model" not found, try pulling it first', 0.00230291485786438, ), @@ -3676,13 +3519,9 @@ def test_without_model_parameter( @pytest.mark.vcr() -@pytest.mark.parametrize( - "provider_str,server_address,server_port,exception,duration", test_with_model_not_found_test_data -) +@pytest.mark.parametrize("provider_str,exception,duration", test_with_model_not_found_test_data) def test_with_model_not_found( provider_str, - server_address, - server_port, exception, duration, trace_exporter, @@ -3716,16 +3555,16 @@ def test_with_model_not_found( GEN_AI_OPERATION_NAME: "chat", GEN_AI_REQUEST_MODEL: "not-found-model", GEN_AI_SYSTEM: "openai", - SERVER_ADDRESS: server_address, - SERVER_PORT: server_port, + SERVER_ADDRESS: provider.server_address, + SERVER_PORT: provider.server_port, } (operation_duration_metric,) = get_sorted_metrics(metrics_reader) attributes = { "gen_ai.request.model": "not-found-model", "error.type": "NotFoundError", - "server.address": server_address, - "server.port": server_port, + SERVER_ADDRESS: provider.server_address, + SERVER_PORT: provider.server_port, } assert_error_operation_duration_metric( provider, operation_duration_metric, attributes=attributes, data_point=duration @@ -3759,3 +3598,52 @@ def test_exported_schema_version( for metrics in resource_metrics: for scope_metrics in metrics.scope_metrics: assert scope_metrics.schema_url == "https://opentelemetry.io/schemas/1.27.0" + + +@dataclass +class ToolCall: + id: str + name: str + arguments_json: str + + +def assert_stop_log_record(log_record: LogRecord, expected_content: str, expected_index=0): + assert log_record.attributes == {"gen_ai.system": "openai", "event.name": "gen_ai.choice"} + assert log_record.body["index"] == expected_index + assert log_record.body["finish_reason"] == "stop" + message = log_record.body["message"] + assert message["content"] == expected_content + + +def assert_tool_call_log_record(log_record: LogRecord, expected_tool_calls: List[ToolCall], expected_index=0): + assert log_record.attributes == {"gen_ai.system": "openai", "event.name": "gen_ai.choice"} + assert log_record.body["index"] == expected_index + assert log_record.body["finish_reason"] == "tool_calls" + message = log_record.body["message"] + assert_tool_calls(message["tool_calls"], expected_tool_calls) + + +def assert_tool_call_event(event: Event, expected_tool_calls: List[ToolCall]): + assert event.name == "gen_ai.content.completion" + # The 'gen_ai.completion' attribute is a JSON string, so parse it first. + gen_ai_completions = json.loads(event.attributes["gen_ai.completion"]) + + gen_ai_completion = gen_ai_completions[0] + assert gen_ai_completion["role"] == "assistant" + assert gen_ai_completion["content"] == "" + assert_tool_calls(gen_ai_completion["tool_calls"], expected_tool_calls) + + +def assert_tool_calls(tool_calls, expected_tool_calls: List[ToolCall]): + for i, tool_call in enumerate(tool_calls): + expected_call = expected_tool_calls[i] + args = tool_call["function"]["arguments"] + # The function arguments are also a string, which has different whitespace + # in Azure. Assert in a whitespace agnostic way first. + assert json.dumps(json.loads(args), sort_keys=True) == expected_call.arguments_json + + assert tool_call == { + "id": expected_call.id, + "type": "function", + "function": {"name": expected_call.name, "arguments": args}, + }, f"Unexpected tool_call at index {i}: {tool_call} != {expected_call}" diff --git a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/test_embeddings.py b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/test_embeddings.py index 04d3d0b..db68bd4 100644 --- a/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/test_embeddings.py +++ b/instrumentation/elastic-opentelemetry-instrumentation-openai/tests/test_embeddings.py @@ -40,7 +40,7 @@ test_basic_test_data = [ ("openai_provider_embeddings", "text-embedding-3-small", 4, 0.2263190783560276), - ("azure_provider_embeddings", "text-embedding-3-small", 4, 0.0017870571464300156), + ("azure_provider_embeddings", "ada", 4, 0.0017870571464300156), ("ollama_provider_embeddings", "all-minilm:33m", 4, 0.0030461717396974564), ] @@ -88,8 +88,8 @@ def test_basic(provider_str, model, input_tokens, duration, trace_exporter, metr test_all_the_client_options_test_data = [ ("openai_provider_embeddings", "text-embedding-3-small", 4, 0.2263190783560276), - ("azure_provider_embeddings", "text-embedding-3-small", 4, 0.0017870571464300156), - ("ollama_provider_embeddings", "all-minilm:33m", 4, 0.0030461717396974564), + ("azure_provider_embeddings", "ada", 4, 0.2263190783560276), + ("ollama_provider_embeddings", "all-minilm:33m", 4, 0.2263190783560276), ] @@ -130,9 +130,9 @@ def test_all_the_client_options(provider_str, model, input_tokens, duration, tra GEN_AI_RESPONSE_MODEL: model, } assert_operation_duration_metric( - provider, operation_duration_metric, attributes=attributes, min_data_point=0.2263190783560276 + provider, operation_duration_metric, attributes=attributes, min_data_point=duration ) - assert_token_usage_input_metric(provider, token_usage_metric, attributes=attributes, input_data_point=4) + assert_token_usage_input_metric(provider, token_usage_metric, attributes=attributes, input_data_point=input_tokens) @pytest.mark.integration @@ -181,7 +181,7 @@ def test_all_the_client_options_integration(provider_str, model, trace_exporter, test_connection_error_data = [ ("openai_provider_embeddings", "text-embedding-3-small", 0.460242404602468), - ("azure_provider_embeddings", "text-embedding-3-small", 0.4328950522467494), + ("azure_provider_embeddings", "ada", 0.4328950522467494), ("ollama_provider_embeddings", "all-minilm:33m", 0.4006666960194707), ] @@ -191,7 +191,7 @@ def test_all_the_client_options_integration(provider_str, model, trace_exporter, def test_connection_error(provider_str, model, duration, trace_exporter, metrics_reader, request): provider = request.getfixturevalue(provider_str) - client = openai.Client(base_url="http://localhost:9999/v5", api_key="unused", max_retries=1) + client = openai.Client(base_url="http://localhost:9999/v5", api_key="ada", max_retries=1) text = "South Atlantic Ocean." with pytest.raises(Exception): @@ -231,7 +231,7 @@ def test_connection_error(provider_str, model, duration, trace_exporter, metrics test_async_basic_test_data = [ ("openai_provider_embeddings", "text-embedding-3-small", 4, 0.2263190783560276), - ("azure_provider_embeddings", "text-embedding-3-small", 4, 0.0017870571464300156), + ("azure_provider_embeddings", "ada", 4, 0.0017870571464300156), ("ollama_provider_embeddings", "all-minilm:33m", 4, 0.0030461717396974564), ] @@ -280,7 +280,7 @@ async def test_async_basic(provider_str, model, input_tokens, duration, trace_ex test_async_all_the_client_options_test_data = [ ("openai_provider_embeddings", "text-embedding-3-small", 4, 0.2263190783560276), - ("azure_provider_embeddings", "text-embedding-3-small", 4, 0.0017870571464300156), + ("azure_provider_embeddings", "ada", 4, 0.0017870571464300156), ("ollama_provider_embeddings", "all-minilm:33m", 4, 0.0030461717396974564), ] @@ -377,8 +377,8 @@ async def test_async_all_the_client_options_integration(provider_str, model, tra test_async_connection_error_test_data = [ ("openai_provider_embeddings", "text-embedding-3-small", 0.2263190783560276), - ("azure_provider_embeddings", "text-embedding-3-small", 1.0062104639999916), - ("ollama_provider_embeddings", "all-minilm:33m", 1.0148218229999770), + ("azure_provider_embeddings", "ada", 0.8369011571630836), + ("ollama_provider_embeddings", "all-minilm:33m", 0.0030461717396974564), ] @@ -428,17 +428,15 @@ async def test_async_connection_error(provider_str, model, duration, trace_expor test_without_model_parameter_test_data = [ - ("openai_provider_embeddings", "api.openai.com", 443, 4.2263190783560276), - ("azure_provider_embeddings", "test.openai.azure.com", 443, 4.0017870571464300156), - ("ollama_provider_embeddings", "localhost", 11434, 4.10461717396974564), + ("openai_provider_embeddings", 4.2263190783560276), + ("azure_provider_embeddings", 4.0017870571464300156), + ("ollama_provider_embeddings", 4.10461717396974564), ] @pytest.mark.vcr() -@pytest.mark.parametrize("provider_str,server_address,server_port,duration", test_without_model_parameter_test_data) -def test_without_model_parameter( - provider_str, server_address, server_port, duration, trace_exporter, metrics_reader, request -): +@pytest.mark.parametrize("provider_str,duration", test_without_model_parameter_test_data) +def test_without_model_parameter(provider_str, duration, trace_exporter, metrics_reader, request): provider = request.getfixturevalue(provider_str) client = provider.get_client() @@ -458,14 +456,14 @@ def test_without_model_parameter( ERROR_TYPE: "TypeError", GEN_AI_OPERATION_NAME: "embeddings", GEN_AI_SYSTEM: "openai", - SERVER_ADDRESS: server_address, - SERVER_PORT: server_port, + SERVER_ADDRESS: provider.server_address, + SERVER_PORT: provider.server_port, } attributes = { "error.type": "TypeError", - "server.address": server_address, - "server.port": server_port, + "server.address": provider.server_address, + "server.port": provider.server_port, "gen_ai.operation.name": "embeddings", } (operation_duration_metric,) = get_sorted_metrics(metrics_reader) @@ -477,24 +475,13 @@ def test_without_model_parameter( test_model_not_found_test_data = [ ( "openai_provider_embeddings", - "api.openai.com", - 443, openai.NotFoundError, "The model `not-found-model` does not exist or you do not have access to it.", 0.05915193818509579, ), - ( - "azure_provider_embeddings", - "test.openai.azure.com", - 443, - openai.NotFoundError, - "The API deployment for this resource does not exist", - 0.0015850383788347244, - ), + # Azure ignores the model parameter, so doesn't return a not found error. ( "ollama_provider_embeddings", - "localhost", - 11434, openai.NotFoundError, 'model "not-found-model" not found, try pulling it first', 0.087132233195006854, @@ -503,13 +490,9 @@ def test_without_model_parameter( @pytest.mark.vcr() -@pytest.mark.parametrize( - "provider_str,server_address,server_port,exception,exception_message,duration", test_model_not_found_test_data -) +@pytest.mark.parametrize("provider_str,exception,exception_message,duration", test_model_not_found_test_data) def test_model_not_found( provider_str, - server_address, - server_port, exception, exception_message, duration, @@ -518,7 +501,8 @@ def test_model_not_found( request, ): provider = request.getfixturevalue(provider_str) - client = provider.get_client() + # force a timeout to don't slow down tests + client = provider.get_client(timeout=1) text = "South Atlantic Ocean." with pytest.raises(exception, match=re.escape(exception_message)): @@ -537,14 +521,14 @@ def test_model_not_found( GEN_AI_OPERATION_NAME: "embeddings", GEN_AI_REQUEST_MODEL: "not-found-model", GEN_AI_SYSTEM: "openai", - SERVER_ADDRESS: server_address, - SERVER_PORT: server_port, + SERVER_ADDRESS: provider.server_address, + SERVER_PORT: provider.server_port, } attributes = { "error.type": exception.__qualname__, - "server.address": server_address, - "server.port": server_port, + "server.address": provider.server_address, + "server.port": provider.server_port, "gen_ai.operation.name": "embeddings", "gen_ai.request.model": "not-found-model", }