-
Notifications
You must be signed in to change notification settings - Fork 822
openai-v2: handle NotGiven values in request parameters #3926
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 8 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
36f4e87
fix: remove attributes where the value is NOT_GIVEN in openai-v2 inst…
benkawecki d3bfbd3
Merge branch 'main' into fix/handle-not-given-inputs-to-completions
xrmx beaea5b
Generalize check for instances of NotGiven
xrmx cb3b277
Test embeddings for NotGiven values
xrmx 6ca031b
Bump tested openai version to latest
xrmx 63587b0
Add a test README for giving hints on recording tests cassettes
xrmx 36246d1
Fix lint
xrmx 360d876
Fix CI for oldest
xrmx 80a3e12
Add missing type
xrmx 3eecc5c
Stick to older jiter for PyPy
xrmx fa918b6
Move test README in tests
xrmx f7dea12
Merge branch 'main' into openai-not-given
xrmx 48c26ef
Merge branch 'main' into openai-not-given
xrmx 8a3e8bd
Add response_service_tier to test assertion
xrmx File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
instrumentation-genai/opentelemetry-instrumentation-openai-v2/README.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| ## Recording calls | ||
|
|
||
| If you need to record calls you need to export the `OPENAI_API_KEY` as environment variable. | ||
| Since tox blocks environment variables by default you need to override its configuration to let them pass: | ||
|
|
||
| ``` | ||
| export TOX_OVERRIDE=testenv.pass_env=OPENAI_API_KEY | ||
| ``` | ||
|
|
||
| We are not adding it to tox.ini because of security concerns. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
144 changes: 144 additions & 0 deletions
144
...try-instrumentation-openai-v2/tests/cassettes/test_chat_completion_handles_not_given.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,144 @@ | ||
| interactions: | ||
| - request: | ||
| body: |- | ||
| { | ||
| "messages": [ | ||
| { | ||
| "role": "user", | ||
| "content": "Say this is a test" | ||
| } | ||
| ], | ||
| "model": "gpt-4o-mini", | ||
| "stream": false | ||
| } | ||
| headers: | ||
| accept: | ||
| - application/json | ||
| accept-encoding: | ||
| - gzip, deflate | ||
| authorization: | ||
| - Bearer test_openai_api_key | ||
| connection: | ||
| - keep-alive | ||
| content-length: | ||
| - '106' | ||
| content-type: | ||
| - application/json | ||
| host: | ||
| - api.openai.com | ||
| user-agent: | ||
| - OpenAI/Python 1.109.1 | ||
| x-stainless-arch: | ||
| - x64 | ||
| x-stainless-async: | ||
| - 'false' | ||
| x-stainless-lang: | ||
| - python | ||
| x-stainless-os: | ||
| - Linux | ||
| x-stainless-package-version: | ||
| - 1.109.1 | ||
| x-stainless-read-timeout: | ||
| - '600' | ||
| x-stainless-retry-count: | ||
| - '0' | ||
| x-stainless-runtime: | ||
| - CPython | ||
| x-stainless-runtime-version: | ||
| - 3.10.12 | ||
| method: POST | ||
| uri: https://api.openai.com/v1/chat/completions | ||
| response: | ||
| body: | ||
| string: |- | ||
| { | ||
| "id": "chatcmpl-CZDvsSHdMnAgYuQ8J81NMgOK2wfam", | ||
| "object": "chat.completion", | ||
| "created": 1762511072, | ||
| "model": "gpt-4o-mini-2024-07-18", | ||
| "choices": [ | ||
| { | ||
| "index": 0, | ||
| "message": { | ||
| "role": "assistant", | ||
| "content": "This is a test. How can I assist you today?", | ||
| "refusal": null, | ||
| "annotations": [] | ||
| }, | ||
| "logprobs": null, | ||
| "finish_reason": "stop" | ||
| } | ||
| ], | ||
| "usage": { | ||
| "prompt_tokens": 12, | ||
| "completion_tokens": 12, | ||
| "total_tokens": 24, | ||
| "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 | ||
| } | ||
| }, | ||
| "service_tier": "default", | ||
| "system_fingerprint": "fp_560af6e559" | ||
| } | ||
| headers: | ||
| CF-RAY: | ||
| - 99ac1f128834ed5e-MXP | ||
| Connection: | ||
| - keep-alive | ||
| Content-Type: | ||
| - application/json | ||
| Date: | ||
| - Fri, 07 Nov 2025 10:24:32 GMT | ||
| Server: | ||
| - cloudflare | ||
| Set-Cookie: test_set_cookie | ||
| Strict-Transport-Security: | ||
| - max-age=31536000; includeSubDomains; preload | ||
| Transfer-Encoding: | ||
| - chunked | ||
| X-Content-Type-Options: | ||
| - nosniff | ||
| access-control-expose-headers: | ||
| - X-Request-ID | ||
| alt-svc: | ||
| - h3=":443"; ma=86400 | ||
| cf-cache-status: | ||
| - DYNAMIC | ||
| content-length: | ||
| - '850' | ||
| openai-organization: test_openai_org_id | ||
| openai-processing-ms: | ||
| - '512' | ||
| openai-project: | ||
| - proj_Pf1eM5R55Z35wBy4rt8PxAGq | ||
| openai-version: | ||
| - '2020-10-01' | ||
| x-envoy-upstream-service-time: | ||
| - '797' | ||
| x-openai-proxy-wasm: | ||
| - v0.1 | ||
| x-ratelimit-limit-requests: | ||
| - '10000' | ||
| x-ratelimit-limit-tokens: | ||
| - '10000000' | ||
| x-ratelimit-remaining-requests: | ||
| - '9999' | ||
| x-ratelimit-remaining-tokens: | ||
| - '9999993' | ||
| x-ratelimit-reset-requests: | ||
| - 6ms | ||
| x-ratelimit-reset-tokens: | ||
| - 0s | ||
| x-request-id: | ||
| - req_9eac1833161f4ac89019c12f24002ef4 | ||
| status: | ||
| code: 200 | ||
| message: OK | ||
| version: 1 |
124 changes: 124 additions & 0 deletions
124
...on-openai-v2/tests/cassettes/test_embeddings_with_not_given_values[not_given_value0].yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,124 @@ | ||
| interactions: | ||
| - request: | ||
| body: |- | ||
| { | ||
| "input": "This is a test for embeddings with encoding format", | ||
| "model": "text-embedding-3-small", | ||
| "encoding_format": "base64" | ||
| } | ||
| headers: | ||
| accept: | ||
| - application/json | ||
| accept-encoding: | ||
| - gzip, deflate | ||
| authorization: | ||
| - Bearer test_openai_api_key | ||
| connection: | ||
| - keep-alive | ||
| content-length: | ||
| - '127' | ||
| content-type: | ||
| - application/json | ||
| host: | ||
| - api.openai.com | ||
| user-agent: | ||
| - OpenAI/Python 1.109.1 | ||
| x-stainless-arch: | ||
| - x64 | ||
| x-stainless-async: | ||
| - 'false' | ||
| x-stainless-lang: | ||
| - python | ||
| x-stainless-os: | ||
| - Linux | ||
| x-stainless-package-version: | ||
| - 1.109.1 | ||
| x-stainless-read-timeout: | ||
| - '600' | ||
| x-stainless-retry-count: | ||
| - '0' | ||
| x-stainless-runtime: | ||
| - CPython | ||
| x-stainless-runtime-version: | ||
| - 3.10.12 | ||
| method: POST | ||
| uri: https://api.openai.com/v1/embeddings | ||
| response: | ||
| body: | ||
| string: |- | ||
| { | ||
| "object": "list", | ||
| "data": [ | ||
| { | ||
| "object": "embedding", | ||
| "index": 0, | ||
| "embedding": "DK6fO8qEirxr7OE8SQSPvXpWIry659e8mJ5BPUKZiTxZdqM76WvmPDaVLT0xwge86TEXvU+lObzFh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Q7paZHPF17RLyMmmW8Hx0BO3nCbLzmMCC9w0+qvIBcurxpf6A8e+6BvHRUtDwG4ta8fVtDvPY9x7zn/iQ9U3ALPYD3TDvTknY6F02OuiIiorxbDgM9HPFrPP1D3zwn8R296jVBPKaq8TuurVY7KPXHPLOrmjx1vUu8eYxHPH/EWjwwLtI8kC8SvEx1ejw0XhE8yh+dujto0zwR4gi94JMfPT7ON7ymqvE8XbHpPE528Ty546282JRkPByMfjw0/U09xFd+vJrRM7tFOb080CGLPKl1Q70kKva86GOSPOc0SjulcCK8RgMYPDvJFrrkzuW8Ps63vCgkkDwWGhy9mJ5BO1qwcjwvZPc8DRe3vIz7qLyKme48/g26PBjsSjq5rQg82PWnuofHP7ww9AK6EFJ9PPg6lLyaNiG8uR39vBlV4rwEdZW7ogq+PCqR0bw2lS2962gzPZ2cBT2abMa8brezNy3zi7xfeJG9J/EdvBeDMzuAXDq9/d5xPN9grTshVB29ylnsui0tW7o1kYM81fQwPMDpxby54y08" | ||
| } | ||
| ], | ||
| "model": "text-embedding-3-small", | ||
| "usage": { | ||
| "prompt_tokens": 9, | ||
| "total_tokens": 9 | ||
| } | ||
| } | ||
| headers: | ||
| CF-RAY: | ||
| - 99ac1f2bcf0c5a01-MXP | ||
| Connection: | ||
| - keep-alive | ||
| Content-Type: | ||
| - application/json | ||
| Date: | ||
| - Fri, 07 Nov 2025 10:24:35 GMT | ||
| Server: | ||
| - cloudflare | ||
| Set-Cookie: test_set_cookie | ||
| Transfer-Encoding: | ||
| - chunked | ||
| X-Content-Type-Options: | ||
| - nosniff | ||
| access-control-allow-origin: | ||
| - '*' | ||
| access-control-expose-headers: | ||
| - X-Request-ID | ||
| alt-svc: | ||
| - h3=":443"; ma=86400 | ||
| cf-cache-status: | ||
| - DYNAMIC | ||
| content-length: | ||
| - '8414' | ||
| openai-model: | ||
| - text-embedding-3-small | ||
| openai-organization: test_openai_org_id | ||
| openai-processing-ms: | ||
| - '90' | ||
| openai-project: | ||
| - proj_Pf1eM5R55Z35wBy4rt8PxAGq | ||
| openai-version: | ||
| - '2020-10-01' | ||
| strict-transport-security: | ||
| - max-age=31536000; includeSubDomains; preload | ||
| via: | ||
| - envoy-router-545c575f45-dndxq | ||
| x-envoy-upstream-service-time: | ||
| - '307' | ||
| x-openai-proxy-wasm: | ||
| - v0.1 | ||
| x-ratelimit-limit-requests: | ||
| - '10000' | ||
| x-ratelimit-limit-tokens: | ||
| - '5000000' | ||
| x-ratelimit-remaining-requests: | ||
| - '9999' | ||
| x-ratelimit-remaining-tokens: | ||
| - '4999988' | ||
| x-ratelimit-reset-requests: | ||
| - 6ms | ||
| x-ratelimit-reset-tokens: | ||
| - 0s | ||
| x-request-id: | ||
| - req_8c7cc42f2a184e4cbf905a2f3830b7ca | ||
| status: | ||
| code: 200 | ||
| message: OK | ||
| version: 1 |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.