Skip to content
Merged
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

This file was deleted.

61 changes: 28 additions & 33 deletions tests/chat/cassettes/test_completions/test_chat.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ interactions:
- '*/*'
accept-encoding:
- gzip, deflate, zstd
authorization:
- Bearer t1.9euelZqWlp2bxpiUmZuLl57Lz8yMjO3rnpWalM3InMbJl5qUmJnHmcfPzsnl8_cXWF85-e9wPgBV_t3z91cGXTn573A-AFX-zef1656VmpHMi8vNmY2YjI_OjpWYncaM7_zF656VmpHMi8vNmY2YjI_OjpWYncaMveuelZrHy5fHis2MjY-dzIyJnJXIkrXrhpzRlp6S0ZCPmpGWm9KMmo2Jmo0.G0eyVx1OQ_yLFHLGkNV9gUPu64rm0aIT2-Hdbo-LGa5pwM7KetKWhD9ZTXg-Sg6L6CH_kW8Ay1LzAaQON5OfAw
connection:
- keep-alive
content-length:
Expand All @@ -21,116 +19,113 @@ interactions:
user-agent:
- yandex-cloud-ml-sdk/0.15.0 python/3.12
x-client-request-id:
- 5a3fcf89-bb93-4e61-9379-61227d23bd28
- ca26e2bd-4512-4f84-9ff3-dddeccdc19cc
method: POST
uri: https://llm.api.cloud.yandex.net/v1/chat/completions
response:
body:
string: "{\"id\":\"chatcmpl-2ee9e39e-6ceb-4c70-93e1-a29034b09534\",\"object\":\"chat.completion\",\"created\":1757951686,\"model\":\"gpt://qwen3-235b-a22b-fp8/latest\",\"choices\":[{\"index\":0,\"message\":{\"role\":\"assistant\",\"content\":\"Hello!
My name is Arkadiy. How can I assist you today? \U0001F60A\"},\"finish_reason\":\"stop\"}],\"usage\":{\"prompt_tokens\":26,\"total_tokens\":45,\"completion_tokens\":19}}\n"
string: '{"id":"chatcmpl-85657f30-f241-4ca7-8c7d-997847da8d14","object":"chat.completion","created":1758047032,"model":"gpt://qwen3-235b-a22b-fp8/latest","choices":[{"index":0,"message":{"role":"assistant","content":"Hello!
My name is Arkadiy. How can I assist you today?"},"finish_reason":"stop"}],"usage":{"prompt_tokens":26,"total_tokens":43,"completion_tokens":17}}

'
headers:
content-length:
- '366'
- '361'
content-type:
- application/json
date:
- Mon, 15 Sep 2025 15:54:46 GMT
- Tue, 16 Sep 2025 18:23:52 GMT
server:
- ycalb
x-server-trace-id:
- a2fbc7955280d426:7d558323c079506f:a2fbc7955280d426:1
- f8fee64327159451:5b33a7935c9b62d3:f8fee64327159451:1
status:
code: 200
message: OK
- request:
body: "{\"model\":\"gpt://b1ghsjum2v37c2un8h64/qwen3-235b-a22b-fp8/latest\",\"messages\":[{\"content\":\"Your
name is Arkadiy\",\"role\":\"system\"},{\"role\":\"user\",\"content\":\"Hello!
how is your name?\"},{\"content\":\"Hello! My name is Arkadiy. How can I assist
you today? \U0001F60A\",\"role\":\"assistant\"},{\"role\":\"user\",\"content\":\"My
name is Andrew\"}],\"stream\":false}"
body: '{"model":"gpt://b1ghsjum2v37c2un8h64/qwen3-235b-a22b-fp8/latest","messages":[{"content":"Your
name is Arkadiy","role":"system"},{"role":"user","content":"Hello! how is your
name?"},{"content":"Hello! My name is Arkadiy. How can I assist you today?","role":"assistant"},{"role":"user","content":"My
name is Andrew"}],"stream":false}'
headers:
accept:
- '*/*'
accept-encoding:
- gzip, deflate, zstd
authorization:
- Bearer t1.9euelZqWlp2bxpiUmZuLl57Lz8yMjO3rnpWalM3InMbJl5qUmJnHmcfPzsnl8_cXWF85-e9wPgBV_t3z91cGXTn573A-AFX-zef1656VmpHMi8vNmY2YjI_OjpWYncaM7_zF656VmpHMi8vNmY2YjI_OjpWYncaMveuelZrHy5fHis2MjY-dzIyJnJXIkrXrhpzRlp6S0ZCPmpGWm9KMmo2Jmo0.G0eyVx1OQ_yLFHLGkNV9gUPu64rm0aIT2-Hdbo-LGa5pwM7KetKWhD9ZTXg-Sg6L6CH_kW8Ay1LzAaQON5OfAw
connection:
- keep-alive
content-length:
- '336'
- '331'
content-type:
- application/json
host:
- llm.api.cloud.yandex.net
user-agent:
- yandex-cloud-ml-sdk/0.15.0 python/3.12
x-client-request-id:
- 24ae7c12-ca25-4764-9b37-d3848f67cd81
- 9c6306a9-0642-44ce-966e-73d2780cc99d
method: POST
uri: https://llm.api.cloud.yandex.net/v1/chat/completions
response:
body:
string: "{\"id\":\"chatcmpl-26c17979-ed03-414d-b613-6a2a5bc7ba03\",\"object\":\"chat.completion\",\"created\":1757951686,\"model\":\"gpt://qwen3-235b-a22b-fp8/latest\",\"choices\":[{\"index\":0,\"message\":{\"role\":\"assistant\",\"content\":\"Nice
to meet you, Andrew! \U0001F60A How can I help you today?\"},\"finish_reason\":\"stop\"}],\"usage\":{\"prompt_tokens\":58,\"total_tokens\":75,\"completion_tokens\":17}}\n"
string: "{\"id\":\"chatcmpl-42a8ab7f-5815-4057-b7a3-7ee83ab24cfc\",\"object\":\"chat.completion\",\"created\":1758047032,\"model\":\"gpt://qwen3-235b-a22b-fp8/latest\",\"choices\":[{\"index\":0,\"message\":{\"role\":\"assistant\",\"content\":\"Nice
to meet you, Andrew! How can I help you today? \U0001F60A\"},\"finish_reason\":\"stop\"}],\"usage\":{\"prompt_tokens\":56,\"total_tokens\":73,\"completion_tokens\":17}}\n"
headers:
content-length:
- '363'
content-type:
- application/json
date:
- Mon, 15 Sep 2025 15:54:46 GMT
- Tue, 16 Sep 2025 18:23:52 GMT
server:
- ycalb
x-server-trace-id:
- 73cf81250d9fc777:1cd7ffa5c15e8f0:73cf81250d9fc777:1
- ad23b0344dc1e85a:33ae397b3a763541:ad23b0344dc1e85a:1
status:
code: 200
message: OK
- request:
body: "{\"model\":\"gpt://b1ghsjum2v37c2un8h64/qwen3-235b-a22b-fp8/latest\",\"messages\":[{\"content\":\"Your
name is Arkadiy\",\"role\":\"system\"},{\"role\":\"user\",\"content\":\"Hello!
how is your name?\"},{\"content\":\"Hello! My name is Arkadiy. How can I assist
you today? \U0001F60A\",\"role\":\"assistant\"},{\"role\":\"user\",\"content\":\"My
name is Andrew\"},{\"content\":\"Nice to meet you, Andrew! \U0001F60A How can
I help you today?\",\"role\":\"assistant\"},{\"role\":\"user\",\"content\":\"What
is my name?\"}],\"stream\":false}"
you today?\",\"role\":\"assistant\"},{\"role\":\"user\",\"content\":\"My name
is Andrew\"},{\"content\":\"Nice to meet you, Andrew! How can I help you today?
\U0001F60A\",\"role\":\"assistant\"},{\"role\":\"user\",\"content\":\"What is
my name?\"}],\"stream\":false}"
headers:
accept:
- '*/*'
accept-encoding:
- gzip, deflate, zstd
authorization:
- Bearer t1.9euelZqWlp2bxpiUmZuLl57Lz8yMjO3rnpWalM3InMbJl5qUmJnHmcfPzsnl8_cXWF85-e9wPgBV_t3z91cGXTn573A-AFX-zef1656VmpHMi8vNmY2YjI_OjpWYncaM7_zF656VmpHMi8vNmY2YjI_OjpWYncaMveuelZrHy5fHis2MjY-dzIyJnJXIkrXrhpzRlp6S0ZCPmpGWm9KMmo2Jmo0.G0eyVx1OQ_yLFHLGkNV9gUPu64rm0aIT2-Hdbo-LGa5pwM7KetKWhD9ZTXg-Sg6L6CH_kW8Ay1LzAaQON5OfAw
connection:
- keep-alive
content-length:
- '471'
- '466'
content-type:
- application/json
host:
- llm.api.cloud.yandex.net
user-agent:
- yandex-cloud-ml-sdk/0.15.0 python/3.12
x-client-request-id:
- d26dea55-8f0c-4f20-a771-ac77db321a2b
- 617fa32a-c623-4044-a464-513f7e646c52
method: POST
uri: https://llm.api.cloud.yandex.net/v1/chat/completions
response:
body:
string: "{\"id\":\"chatcmpl-985ce6ba-8160-4c52-b6c7-466c9e470bf5\",\"object\":\"chat.completion\",\"created\":1757951687,\"model\":\"gpt://qwen3-235b-a22b-fp8/latest\",\"choices\":[{\"index\":0,\"message\":{\"role\":\"assistant\",\"content\":\"Your
name is Andrew! \U0001F60A\"},\"finish_reason\":\"stop\"}],\"usage\":{\"prompt_tokens\":89,\"total_tokens\":97,\"completion_tokens\":8}}\n"
string: "{\"id\":\"chatcmpl-a4b0ce9a-03e8-46e9-a073-8470c8e6be08\",\"object\":\"chat.completion\",\"created\":1758047033,\"model\":\"gpt://qwen3-235b-a22b-fp8/latest\",\"choices\":[{\"index\":0,\"message\":{\"role\":\"assistant\",\"content\":\"Your
name is Andrew! \U0001F60A\"},\"finish_reason\":\"stop\"}],\"usage\":{\"prompt_tokens\":87,\"total_tokens\":95,\"completion_tokens\":8}}\n"
headers:
content-length:
- '331'
content-type:
- application/json
date:
- Mon, 15 Sep 2025 15:54:47 GMT
- Tue, 16 Sep 2025 18:23:53 GMT
server:
- ycalb
x-server-trace-id:
- 3f621a2346607f53:8798599acd908a22:3f621a2346607f53:1
- 167e3770605d425e:7472ec987c168542:167e3770605d425e:1
status:
code: 200
message: OK
Expand Down
28 changes: 12 additions & 16 deletions tests/chat/cassettes/test_completions/test_function_call.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ interactions:
- '*/*'
accept-encoding:
- gzip, deflate, zstd
authorization:
- Bearer t1.9euelZqWlp2bxpiUmZuLl57Lz8yMjO3rnpWalM3InMbJl5qUmJnHmcfPzsnl8_cXWF85-e9wPgBV_t3z91cGXTn573A-AFX-zef1656VmpHMi8vNmY2YjI_OjpWYncaM7_zF656VmpHMi8vNmY2YjI_OjpWYncaMveuelZrHy5fHis2MjY-dzIyJnJXIkrXrhpzRlp6S0ZCPmpGWm9KMmo2Jmo0.G0eyVx1OQ_yLFHLGkNV9gUPu64rm0aIT2-Hdbo-LGa5pwM7KetKWhD9ZTXg-Sg6L6CH_kW8Ay1LzAaQON5OfAw
connection:
- keep-alive
content-length:
Expand All @@ -22,12 +20,12 @@ interactions:
user-agent:
- yandex-cloud-ml-sdk/0.15.0 python/3.12
x-client-request-id:
- 0567acea-6d36-43fd-a9fe-8413785acbb9
- 104f04a8-1970-4f03-988d-ba17a0f9680c
method: POST
uri: https://llm.api.cloud.yandex.net/v1/chat/completions
response:
body:
string: '{"id":"d5ef1f8c-652e-4c53-ada8-6d748b5808b6","object":"chat.completion","created":1757951688,"model":"gpt://b1ghsjum2v37c2un8h64/yandexgpt/latest","choices":[{"index":0,"message":{"role":"assistant","content":"","tool_calls":[{"index":0,"id":"something","type":"function","function":{"name":"something","arguments":"{\"numbers\":[5,4,1]}"}}]},"finish_reason":"tool_calls"}],"usage":{"prompt_tokens":100,"total_tokens":114,"completion_tokens":14}}
string: '{"id":"1a3cd092-9640-4d03-9116-deec2c69bd72","object":"chat.completion","created":1758047034,"model":"gpt://b1ghsjum2v37c2un8h64/yandexgpt/latest","choices":[{"index":0,"message":{"role":"assistant","content":"","tool_calls":[{"index":0,"id":"something","type":"function","function":{"name":"something","arguments":"{\"numbers\":[5,4,1]}"}}]},"finish_reason":"tool_calls"}],"usage":{"prompt_tokens":100,"total_tokens":114,"completion_tokens":14}}

'
headers:
Expand All @@ -36,15 +34,15 @@ interactions:
content-type:
- application/json
date:
- Mon, 15 Sep 2025 15:54:48 GMT
- Tue, 16 Sep 2025 18:23:54 GMT
server:
- ycalb
x-client-request-id:
- 0567acea-6d36-43fd-a9fe-8413785acbb9
- 104f04a8-1970-4f03-988d-ba17a0f9680c
x-request-id:
- 5255a16b-e5e7-4acd-943a-30c79cb11050
- e971b99d-f904-4fd2-a911-9139d824d259
x-server-trace-id:
- 124a38f19dd92e4f:503d1158efd4e39:124a38f19dd92e4f:1
- 81ea8b747bd0d880:286ceffecda263d8:81ea8b747bd0d880:1
status:
code: 200
message: OK
Expand All @@ -58,8 +56,6 @@ interactions:
- '*/*'
accept-encoding:
- gzip, deflate, zstd
authorization:
- Bearer t1.9euelZqWlp2bxpiUmZuLl57Lz8yMjO3rnpWalM3InMbJl5qUmJnHmcfPzsnl8_cXWF85-e9wPgBV_t3z91cGXTn573A-AFX-zef1656VmpHMi8vNmY2YjI_OjpWYncaM7_zF656VmpHMi8vNmY2YjI_OjpWYncaMveuelZrHy5fHis2MjY-dzIyJnJXIkrXrhpzRlp6S0ZCPmpGWm9KMmo2Jmo0.G0eyVx1OQ_yLFHLGkNV9gUPu64rm0aIT2-Hdbo-LGa5pwM7KetKWhD9ZTXg-Sg6L6CH_kW8Ay1LzAaQON5OfAw
connection:
- keep-alive
content-length:
Expand All @@ -71,12 +67,12 @@ interactions:
user-agent:
- yandex-cloud-ml-sdk/0.15.0 python/3.12
x-client-request-id:
- 1a13e16d-a129-4579-a92d-91dad64a9c7b
- 46c3501b-b356-4230-94e7-0ad51b842398
method: POST
uri: https://llm.api.cloud.yandex.net/v1/chat/completions
response:
body:
string: '{"id":"a24b0c4c-26b5-49ac-8763-6d32ce420680","object":"chat.completion","created":1757951688,"model":"gpt://b1ghsjum2v37c2un8h64/yandexgpt/latest","choices":[{"index":0,"message":{"role":"assistant","content":"The
string: '{"id":"3b89a22a-60e0-4707-8059-3c9bf1919a1b","object":"chat.completion","created":1758047035,"model":"gpt://b1ghsjum2v37c2un8h64/yandexgpt/latest","choices":[{"index":0,"message":{"role":"assistant","content":"The
result of the operation performed by the tool on the numbers [5, 4, 1] is
+20.0."},"finish_reason":"stop"}],"usage":{"prompt_tokens":130,"total_tokens":158,"completion_tokens":28}}

Expand All @@ -87,15 +83,15 @@ interactions:
content-type:
- application/json
date:
- Mon, 15 Sep 2025 15:54:48 GMT
- Tue, 16 Sep 2025 18:23:55 GMT
server:
- ycalb
x-client-request-id:
- 1a13e16d-a129-4579-a92d-91dad64a9c7b
- 46c3501b-b356-4230-94e7-0ad51b842398
x-request-id:
- 8710b8a5-f823-4f4b-91e4-f43cb8497891
- 9d00b6ba-ea3a-44d1-83ad-dfc256d9a188
x-server-trace-id:
- b729c273dfa0d799:b06551a059e0ae74:b729c273dfa0d799:1
- 2901457e11ed83b0:a552443c375b09d3:2901457e11ed83b0:1
status:
code: 200
message: OK
Expand Down
34 changes: 14 additions & 20 deletions tests/chat/cassettes/test_completions/test_multimodal.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ interactions:
- '*/*'
accept-encoding:
- gzip, deflate, zstd
authorization:
- Bearer t1.9euelZrKjJORx5OLm5yeiseNmsuKke3rnpWalM3InMbJl5qUmJnHmcfPzsnl8_dFHFo5-e92cFNT_d3z9wVLVzn573ZwU1P9zef1656Vmp7Ik4yMx4nMjsiPlJvKyIma7_zF656Vmp7Ik4yMx4nMjsiPlJvKyImaveuelZqJjo_MkZ2WyI6bzJCYk4yXz7XrhpzRlp6S0ZCPmpGWm9KMmo2Jmo0._uBa0UALhuAPdknWaHJdWrE1R8e9c9TA-bAZzBwjL-Kao5U3-2wM_UThPVLrWmlY5Ei1LLYJRZAvjARfvLd1BQ
connection:
- keep-alive
content-length:
Expand All @@ -20,36 +18,32 @@ interactions:
user-agent:
- yandex-cloud-ml-sdk/0.15.0 python/3.12
x-client-request-id:
- f274eb16-096c-4c33-b813-b976ef1fc98d
- b26d50fe-d2a9-4acc-9539-65718de6d214
method: POST
uri: https://llm.api.cloud.yandex.net/v1/chat/completions
response:
body:
string: "{\"id\":\"chatcmpl-b5792776-fe99-4889-8e03-d5619e6213ef\",\"object\":\"chat.completion\",\"created\":1758044878,\"model\":\"gpt://gemma-3-27b-it/latest\",\"choices\":[{\"index\":0,\"message\":{\"role\":\"assistant\",\"content\":\"The
image depicts a highly detailed LEGO replica of a computer case, specifically
a high-end gaming PC. \\n\\nHere are the key features visible:\\n\\n* **Open
Case:** The LEGO computer case is designed to be open, showcasing the internal
components.\\n* **Detailed Internals:** The interior is filled with LEGO
bricks configured to resemble components like a motherboard, CPU, cooler,
graphics card, RAM, and power supply. \\n* **Circular Component:** There\u2019s
a circular element in the center, likely representing a fan or cooler.\\n*
\ **Realistic Build:** The creator has clearly put a lot of work into making
it look like a real computer, with accurate placement and color-coding of
the LEGO bricks. \\n* **Background:** There is a plant and wooden paneling
in the background.\\n\\nIt is an impressive model built entirely from LEGO
bricks, demonstrating the builder's attention to detail and understanding
of computer hardware.\"},\"finish_reason\":\"stop\"}],\"usage\":{\"prompt_tokens\":276,\"total_tokens\":472,\"completion_tokens\":196}}\n"
string: '{"id":"chatcmpl-dcfb0b8e-e3d4-45cf-8713-d4cf45e22458","object":"chat.completion","created":1758047037,"model":"gpt://gemma-3-27b-it/latest","choices":[{"index":0,"message":{"role":"assistant","content":"The
image depicts a highly detailed **LEGO Technic model of a computer**. \n\nIt''s
a complex build replicating the internal components of a desktop computer,
including what appears to be a motherboard, CPU with cooler, graphics card,
and power supply. The frame surrounding the components looks like a computer
case. It''s a remarkably realistic and intricate LEGO creation! \n\nThere
are also plants visible on the left side, and a blurred background of wood
paneling."},"finish_reason":"stop"}],"usage":{"prompt_tokens":276,"total_tokens":372,"completion_tokens":96}}

'
headers:
content-length:
- '1236'
- '773'
content-type:
- application/json
date:
- Tue, 16 Sep 2025 17:48:06 GMT
- Tue, 16 Sep 2025 18:24:01 GMT
server:
- ycalb
x-server-trace-id:
- 4113486ca509f33a:c182fc5027dd4d2f:4113486ca509f33a:1
- 258e73912996318a:6ecdeda12706f85:258e73912996318a:1
status:
code: 200
message: OK
Expand Down
Loading