Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions py/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ lint = [
"numpy",
"strands-agents",
"temporalio",
"pydantic-ai>=1.99.0,<2",
"pydantic-ai",
"opentelemetry-instrumentation-openai==0.59.1",
"langsmith==0.8.0",
"langchain-core",
Expand Down Expand Up @@ -364,11 +364,11 @@ latest = "strands-agents==1.45.0"
"1.20.0" = "strands-agents==1.20.0"

[tool.braintrust.matrix.pydantic-ai-integration]
latest = "pydantic-ai==1.107.0"
latest = "pydantic-ai==2.0.0"
"1.10.0" = "pydantic-ai==1.10.0"

[tool.braintrust.matrix.pydantic-ai-wrap-openai]
latest = "pydantic-ai==1.107.0"
latest = "pydantic-ai==2.0.0"
"1.0.1" = "pydantic-ai==1.0.1"
"0.1.9" = "pydantic-ai==0.1.9"

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,138 @@
interactions:
- request:
body: '{"messages":[{"role":"user","content":"What is 3+7?"}],"model":"gpt-4o-mini","max_completion_tokens":50,"stream":true,"stream_options":{"include_usage":true}}'
headers:
accept:
- application/json
accept-encoding:
- gzip, deflate
connection:
- keep-alive
content-length:
- '158'
content-type:
- application/json
host:
- api.openai.com
user-agent:
- pydantic-ai/1.10.0
x-stainless-arch:
- arm64
x-stainless-async:
- async:asyncio
x-stainless-lang:
- python
x-stainless-os:
- MacOS
x-stainless-package-version:
- 2.44.0
x-stainless-read-timeout:
- '600'
x-stainless-retry-count:
- '0'
x-stainless-runtime:
- CPython
x-stainless-runtime-version:
- 3.14.3
method: POST
uri: https://api.openai.com/v1/chat/completions
response:
body:
string: 'data: {"id":"chatcmpl-Dw7MgLBKFpfIfb48dopew66iiLDdY","object":"chat.completion.chunk","created":1782743706,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_b4abb0dc92","choices":[{"index":0,"delta":{"role":"assistant","content":"","refusal":null},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"PW5jM5YEe"}


data: {"id":"chatcmpl-Dw7MgLBKFpfIfb48dopew66iiLDdY","object":"chat.completion.chunk","created":1782743706,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_b4abb0dc92","choices":[{"index":0,"delta":{"content":"3"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"RcPePHIR40"}


data: {"id":"chatcmpl-Dw7MgLBKFpfIfb48dopew66iiLDdY","object":"chat.completion.chunk","created":1782743706,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_b4abb0dc92","choices":[{"index":0,"delta":{"content":"
+"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"P1O5LWcF4"}


data: {"id":"chatcmpl-Dw7MgLBKFpfIfb48dopew66iiLDdY","object":"chat.completion.chunk","created":1782743706,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_b4abb0dc92","choices":[{"index":0,"delta":{"content":"
"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"h7Xskn7Ezw"}


data: {"id":"chatcmpl-Dw7MgLBKFpfIfb48dopew66iiLDdY","object":"chat.completion.chunk","created":1782743706,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_b4abb0dc92","choices":[{"index":0,"delta":{"content":"7"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"rd3rat50BE"}


data: {"id":"chatcmpl-Dw7MgLBKFpfIfb48dopew66iiLDdY","object":"chat.completion.chunk","created":1782743706,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_b4abb0dc92","choices":[{"index":0,"delta":{"content":"
equals"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"z01p"}


data: {"id":"chatcmpl-Dw7MgLBKFpfIfb48dopew66iiLDdY","object":"chat.completion.chunk","created":1782743706,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_b4abb0dc92","choices":[{"index":0,"delta":{"content":"
"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"Gh3ymttR1A"}


data: {"id":"chatcmpl-Dw7MgLBKFpfIfb48dopew66iiLDdY","object":"chat.completion.chunk","created":1782743706,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_b4abb0dc92","choices":[{"index":0,"delta":{"content":"10"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"rHVg7XPRo"}


data: {"id":"chatcmpl-Dw7MgLBKFpfIfb48dopew66iiLDdY","object":"chat.completion.chunk","created":1782743706,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_b4abb0dc92","choices":[{"index":0,"delta":{"content":"."},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"xuSS1T8dOO"}


data: {"id":"chatcmpl-Dw7MgLBKFpfIfb48dopew66iiLDdY","object":"chat.completion.chunk","created":1782743706,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_b4abb0dc92","choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"stop"}],"usage":null,"obfuscation":"4VhhT"}


data: {"id":"chatcmpl-Dw7MgLBKFpfIfb48dopew66iiLDdY","object":"chat.completion.chunk","created":1782743706,"model":"gpt-4o-mini-2024-07-18","service_tier":"default","system_fingerprint":"fp_b4abb0dc92","choices":[],"usage":{"prompt_tokens":14,"completion_tokens":8,"total_tokens":22,"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}},"obfuscation":"O1zxpnAvp6K"}


data: [DONE]


'
headers:
access-control-expose-headers:
- X-Request-ID
- CF-Ray
- CF-Ray
alt-svc:
- h3=":443"; ma=86400
cf-cache-status:
- DYNAMIC
cf-ray:
- a135a7e1387fc109-YYZ
connection:
- keep-alive
content-type:
- text/event-stream; charset=utf-8
date:
- Mon, 29 Jun 2026 14:35:06 GMT
openai-organization:
- braintrust-data
openai-processing-ms:
- '275'
openai-project:
- proj_vsCSXafhhByzWOThMrJcZiw9
openai-version:
- '2020-10-01'
server:
- cloudflare
set-cookie:
- __cf_bm=ejFaExCNvv3C8eqEpL1UbTAaPI_XixPJCU6C4LG3Pdc-1782743705.792197-1.0.1.1-YrpmaE.fpsNyJrqAeTchaJbg9G7mHdno2.DaD_IWiJsQYvVYu6kggFmHxY2Ec.YD6vcCbQ4VZ4NqzBNZ7.ne3szBSksbqv3Co1D7EEYJCEZUpuig07jSORnhjMRIKaG3;
HttpOnly; SameSite=None; Secure; Path=/; Domain=api.openai.com; Expires=Mon,
29 Jun 2026 15:05:06 GMT
strict-transport-security:
- max-age=31536000; includeSubDomains; preload
transfer-encoding:
- chunked
x-content-type-options:
- nosniff
x-openai-proxy-wasm:
- v0.1
x-ratelimit-limit-requests:
- '30000'
x-ratelimit-limit-tokens:
- '150000000'
x-ratelimit-remaining-requests:
- '29999'
x-ratelimit-remaining-tokens:
- '149999995'
x-ratelimit-reset-requests:
- 2ms
x-ratelimit-reset-tokens:
- 0s
x-request-id:
- req_a1f191508b3249ed8f658dff427b2c39
status:
code: 200
message: OK
version: 1
Original file line number Diff line number Diff line change
@@ -1,108 +1,124 @@
interactions:
- request:
body: '{"messages":[{"role":"user","content":"What is 2+2? Answer with just the
number."}],"model":"gpt-4o-mini","max_completion_tokens":50,"stream":false}'
body: '{"input":[{"role":"user","content":"What is 2+2? Answer with just the number."}],"max_output_tokens":50,"model":"gpt-4o-mini","stream":false}'
headers:
Accept:
accept:
- application/json
Accept-Encoding:
accept-encoding:
- gzip, deflate
Connection:
connection:
- keep-alive
Content-Length:
- '148'
Content-Type:
content-length:
- '141'
content-type:
- application/json
Host:
host:
- api.openai.com
User-Agent:
- pydantic-ai/1.107.0
X-Stainless-Arch:
user-agent:
- pydantic-ai/2.0.0
x-stainless-arch:
- arm64
X-Stainless-Async:
x-stainless-async:
- async:asyncio
X-Stainless-Lang:
x-stainless-lang:
- python
X-Stainless-OS:
x-stainless-os:
- MacOS
X-Stainless-Package-Version:
- 2.41.1
X-Stainless-Runtime:
- CPython
X-Stainless-Runtime-Version:
- 3.14.3
x-stainless-package-version:
- 2.44.0
x-stainless-read-timeout:
- '600'
x-stainless-retry-count:
- '0'
x-stainless-runtime:
- CPython
x-stainless-runtime-version:
- 3.14.3
method: POST
uri: https://api.openai.com/v1/chat/completions
uri: https://api.openai.com/v1/responses
response:
body:
string: "{\n \"id\": \"chatcmpl-Dr7IxwRR79A4j0IIfrf5qRXA1IQpH\",\n \"object\":
\"chat.completion\",\n \"created\": 1781551835,\n \"model\": \"gpt-4o-mini-2024-07-18\",\n
\ \"choices\": [\n {\n \"index\": 0,\n \"message\": {\n \"role\":
\"assistant\",\n \"content\": \"4\",\n \"refusal\": null,\n
\ \"annotations\": []\n },\n \"logprobs\": null,\n \"finish_reason\":
\"stop\"\n }\n ],\n \"usage\": {\n \"prompt_tokens\": 20,\n \"completion_tokens\":
1,\n \"total_tokens\": 21,\n \"prompt_tokens_details\": {\n \"cached_tokens\":
0,\n \"audio_tokens\": 0\n },\n \"completion_tokens_details\":
{\n \"reasoning_tokens\": 0,\n \"audio_tokens\": 0,\n \"accepted_prediction_tokens\":
0,\n \"rejected_prediction_tokens\": 0\n }\n },\n \"service_tier\":
\"default\",\n \"system_fingerprint\": \"fp_d07f82f293\"\n}\n"
string: "{\n \"id\": \"resp_00ee384b1fcc4457006a42812da90881a1be0f45db3a0d113c\",\n
\ \"object\": \"response\",\n \"created_at\": 1782743341,\n \"status\":
\"completed\",\n \"background\": false,\n \"billing\": {\n \"payer\":
\"developer\"\n },\n \"completed_at\": 1782743342,\n \"error\": null,\n
\ \"frequency_penalty\": 0.0,\n \"incomplete_details\": null,\n \"instructions\":
null,\n \"max_output_tokens\": 50,\n \"max_tool_calls\": null,\n \"model\":
\"gpt-4o-mini-2024-07-18\",\n \"moderation\": null,\n \"output\": [\n {\n
\ \"id\": \"msg_00ee384b1fcc4457006a42812e152881a1b11810f6b1846ac6\",\n
\ \"type\": \"message\",\n \"status\": \"completed\",\n \"content\":
[\n {\n \"type\": \"output_text\",\n \"annotations\":
[],\n \"logprobs\": [],\n \"text\": \"4\"\n }\n ],\n
\ \"role\": \"assistant\"\n }\n ],\n \"parallel_tool_calls\": true,\n
\ \"presence_penalty\": 0.0,\n \"previous_response_id\": null,\n \"prompt_cache_key\":
null,\n \"prompt_cache_retention\": \"in_memory\",\n \"reasoning\": {\n
\ \"context\": null,\n \"effort\": null,\n \"summary\": null\n },\n
\ \"safety_identifier\": null,\n \"service_tier\": \"default\",\n \"store\":
true,\n \"temperature\": 1.0,\n \"text\": {\n \"format\": {\n \"type\":
\"text\"\n },\n \"verbosity\": \"medium\"\n },\n \"tool_choice\":
\"auto\",\n \"tool_usage\": {\n \"image_gen\": {\n \"input_tokens\":
0,\n \"input_tokens_details\": {\n \"image_tokens\": 0,\n \"text_tokens\":
0\n },\n \"output_tokens\": 0,\n \"output_tokens_details\":
{\n \"image_tokens\": 0,\n \"text_tokens\": 0\n },\n \"total_tokens\":
0\n },\n \"web_search\": {\n \"num_requests\": 0\n }\n },\n
\ \"tools\": [],\n \"top_logprobs\": 0,\n \"top_p\": 1.0,\n \"truncation\":
\"disabled\",\n \"usage\": {\n \"input_tokens\": 20,\n \"input_tokens_details\":
{\n \"cached_tokens\": 0\n },\n \"output_tokens\": 2,\n \"output_tokens_details\":
{\n \"reasoning_tokens\": 0\n },\n \"total_tokens\": 22\n },\n
\ \"user\": null,\n \"metadata\": {}\n}"
headers:
Access-Control-Expose-Headers:
access-control-expose-headers:
- X-Request-ID
- CF-Ray
- CF-Ray
CF-Cache-Status:
- DYNAMIC
CF-Ray:
- a0c3fd76dd7d180e-YYZ
Connection:
- keep-alive
Content-Type:
- application/json
Date:
- Mon, 15 Jun 2026 19:30:35 GMT
Server:
- cloudflare
Strict-Transport-Security:
- max-age=31536000; includeSubDomains; preload
Transfer-Encoding:
- chunked
X-Content-Type-Options:
- nosniff
alt-svc:
- h3=":443"; ma=86400
cf-cache-status:
- DYNAMIC
cf-ray:
- a1359efd0f27aaa1-YYZ
connection:
- keep-alive
content-length:
- '807'
- '1937'
content-type:
- application/json
date:
- Mon, 29 Jun 2026 14:29:02 GMT
openai-organization:
- braintrust-data
openai-processing-ms:
- '615'
- '591'
openai-project:
- proj_vsCSXafhhByzWOThMrJcZiw9
openai-version:
- '2020-10-01'
server:
- cloudflare
set-cookie:
- __cf_bm=74__0n4BS.62Jo5m5JCo_U1cQO4Rv95v2RCvFOAse7k-1781551834.7014158-1.0.1.1-1V.TS52r2fLMfbY7qQBqHsxE_pI5FBkyj8PUnIxoOrhxi1.k6D5QdFyCn6y1OD0hZgoTLgqKNgR3PDUdQA4PEhbLFSpS4t0ODw2J2gj_xXGy9d3Qy87jwMvNe460Ad5u;
- __cf_bm=D2H1_RRnLjQCBnZfvpto2HcpVP2ZTpFxXKxEeaAisKw-1782743341.6018658-1.0.1.1-XCehIu9nn066rZqLtgddPVxXdl0P0friYgywUZ2wXAcmOh8etKanZeZeSI21YpXQ.WoagM6ngK6rSYpiaSHKRCfYtrLeJf4bcUlM22eqtVZaF36Ki0urN9vkB1ib6lTk;
HttpOnly; SameSite=None; Secure; Path=/; Domain=api.openai.com; Expires=Mon,
15 Jun 2026 20:00:35 GMT
x-openai-proxy-wasm:
- v0.1
29 Jun 2026 14:59:02 GMT
strict-transport-security:
- max-age=31536000; includeSubDomains; preload
transfer-encoding:
- chunked
x-content-type-options:
- nosniff
x-ratelimit-limit-requests:
- '30000'
x-ratelimit-limit-tokens:
- '150000000'
x-ratelimit-remaining-requests:
- '29999'
x-ratelimit-remaining-tokens:
- '149999987'
- '149999962'
x-ratelimit-reset-requests:
- 2ms
x-ratelimit-reset-tokens:
- 0s
x-request-id:
- req_889adbc7b4b94ca28a65f4ac9e551893
- 345b38e0-22e5-4e5f-a6d6-4bc3c1ff3e4d
status:
code: 200
message: OK
Expand Down
Loading
Loading