From 4fd0d9129f01ead1b05e7664b9e82906b1f464eb Mon Sep 17 00:00:00 2001 From: Carson Date: Wed, 6 May 2026 17:44:34 -0500 Subject: [PATCH 1/3] feat: extract reasoning_content in OpenAI-compatible providers Extract `reasoning_content` from streaming deltas and non-streaming responses in OpenAICompletionsProvider, producing ContentThinking objects. Add `preserve_thinking` parameter (default False) to control whether reasoning content is sent back in multi-turn conversations. Set preserve_thinking=True for OpenRouter (which recommends including reasoning traces). DeepSeek's default (False) prevents 400 errors when reasoning_content is included in input messages. Equivalent of tidyverse/ellmer#972. --- chatlas/_provider_deepseek.py | 5 +- chatlas/_provider_openai.py | 3 +- chatlas/_provider_openai_completions.py | 44 ++++++++++-- chatlas/_provider_openai_generic.py | 3 +- chatlas/_provider_openrouter.py | 1 + tests/test_provider_openai_completions.py | 82 +++++++++++++++++++++++ 6 files changed, 124 insertions(+), 14 deletions(-) diff --git a/chatlas/_provider_deepseek.py b/chatlas/_provider_deepseek.py index 8342a568..808de8ff 100644 --- a/chatlas/_provider_deepseek.py +++ b/chatlas/_provider_deepseek.py @@ -144,14 +144,13 @@ def ChatDeepSeek( class DeepSeekProvider(OpenAICompletionsProvider): - @staticmethod - def _turns_as_inputs(turns: list[Turn]) -> list["ChatCompletionMessageParam"]: + def _turns_as_inputs(self, turns: list[Turn]) -> list["ChatCompletionMessageParam"]: from openai.types.chat import ( ChatCompletionAssistantMessageParam, ChatCompletionUserMessageParam, ) - params = OpenAICompletionsProvider._turns_as_inputs(turns) + params = super()._turns_as_inputs(turns) # Content must be a string for i, param in enumerate(params): diff --git a/chatlas/_provider_openai.py b/chatlas/_provider_openai.py index 6f4f1292..98f2692a 100644 --- a/chatlas/_provider_openai.py +++ b/chatlas/_provider_openai.py @@ -446,8 +446,7 @@ def _response_as_turn(completion: Response, has_data_model: bool) -> AssistantTu completion=completion, ) - @staticmethod - def _turns_as_inputs(turns: list[Turn]) -> "list[ResponseInputItemParam]": + def _turns_as_inputs(self, turns: list[Turn]) -> "list[ResponseInputItemParam]": res: "list[ResponseInputItemParam]" = [] for turn in turns: res.extend([as_input_param(x, turn.role) for x in turn.contents]) diff --git a/chatlas/_provider_openai_completions.py b/chatlas/_provider_openai_completions.py index 7725ade7..131cba61 100644 --- a/chatlas/_provider_openai_completions.py +++ b/chatlas/_provider_openai_completions.py @@ -24,6 +24,7 @@ ContentJson, ContentPDF, ContentText, + ContentThinking, ContentToolRequest, ContentToolResult, ) @@ -59,6 +60,7 @@ def ChatOpenAICompletions( model: "Optional[ChatModel | str]" = None, api_key: Optional[str] = None, seed: int | None | MISSING_TYPE = MISSING, + preserve_thinking: bool = False, kwargs: Optional["ChatClientArgs"] = None, ) -> Chat["SubmitInputArgs", ChatCompletion]: """ @@ -70,6 +72,15 @@ def ChatOpenAICompletions( This function may also be useful for using an "OpenAI-compatible model" hosted by another provider (e.g., vLLM, Ollama, etc.) that supports the OpenAI Completions API. + + Parameters + ---------- + preserve_thinking + If True, reasoning content returned by the model is included when + sending conversation history back to the API. If False (the default), + reasoning content is still captured in the turn but dropped from + subsequent requests. Set to True if your provider requires or benefits + from seeing prior reasoning in multi-turn conversations. """ if isinstance(seed, MISSING_TYPE): seed = 1014 if is_testing() else None @@ -83,6 +94,7 @@ def ChatOpenAICompletions( model=model, base_url=base_url, seed=seed, + preserve_thinking=preserve_thinking, kwargs=kwargs, ), system_prompt=system_prompt, @@ -105,6 +117,7 @@ def __init__( base_url: str = "https://api.openai.com/v1", name: str = "OpenAI", seed: int | None = None, + preserve_thinking: bool = False, kwargs: Optional["ChatClientArgs"] = None, ): super().__init__( @@ -115,6 +128,7 @@ def __init__( kwargs=kwargs, ) self._seed = seed + self._preserve_thinking = preserve_thinking def chat_perform( self, @@ -194,7 +208,13 @@ def _chat_perform_args( def stream_content(self, chunk) -> Optional[Content]: if not chunk.choices: return None - text = chunk.choices[0].delta.content + delta = chunk.choices[0].delta + + reasoning = getattr(delta, "reasoning_content", None) + if reasoning is not None: + return ContentThinking(thinking=reasoning) + + text = delta.content if text is None: return None return ContentText.model_construct(text=text) @@ -240,8 +260,7 @@ def value_tokens(self, completion): cached_tokens, ) - @staticmethod - def _turns_as_inputs(turns: list[Turn]) -> list["ChatCompletionMessageParam"]: + def _turns_as_inputs(self, turns: list[Turn]) -> list["ChatCompletionMessageParam"]: res: list["ChatCompletionMessageParam"] = [] for turn in turns: if isinstance(turn, SystemTurn): @@ -251,8 +270,12 @@ def _turns_as_inputs(turns: list[Turn]) -> list["ChatCompletionMessageParam"]: elif isinstance(turn, AssistantTurn): content_parts: list["ContentArrayOfContentPart"] = [] tool_calls: list["ChatCompletionMessageToolCallParam"] = [] + reasoning_content: str | None = None for x in turn.contents: - if isinstance(x, ContentText): + if isinstance(x, ContentThinking): + if self._preserve_thinking: + reasoning_content = (reasoning_content or "") + x.thinking + elif isinstance(x, ContentText): content_parts.append({"type": "text", "text": x.text}) elif isinstance(x, ContentJson): text = orjson.dumps(x.value).decode("utf-8") @@ -276,11 +299,13 @@ def _turns_as_inputs(turns: list[Turn]) -> list["ChatCompletionMessageParam"]: ) # Some OpenAI-compatible models (e.g., Groq) don't work nicely with empty content - args = { + args: dict[str, Any] = { "role": "assistant", "content": content_parts, "tool_calls": tool_calls, } + if reasoning_content is not None: + args["reasoning_content"] = reasoning_content if not content_parts: del args["content"] if not tool_calls: @@ -361,15 +386,20 @@ def _response_as_turn( message = completion.choices[0].message contents: list[Content] = [] + + reasoning = getattr(message, "reasoning_content", None) + if reasoning: + contents.append(ContentThinking(thinking=reasoning)) + if message.content is not None: if has_data_model: data = message.content # Some providers (e.g., Cloudflare) may already provide a dict if not isinstance(data, dict): data = orjson.loads(data) - contents = [ContentJson(value=data)] + contents.append(ContentJson(value=data)) else: - contents = [ContentText(text=message.content)] + contents.append(ContentText(text=message.content)) tool_calls = message.tool_calls diff --git a/chatlas/_provider_openai_generic.py b/chatlas/_provider_openai_generic.py index 3f36c38d..82120979 100644 --- a/chatlas/_provider_openai_generic.py +++ b/chatlas/_provider_openai_generic.py @@ -273,9 +273,8 @@ def _chat_perform_args( data_model: Optional[type[BaseModel]], ) -> SubmitInputArgsT: ... - @staticmethod @abstractmethod - def _turns_as_inputs(turns: list[Turn]) -> list[Any]: ... + def _turns_as_inputs(self, turns: list[Turn]) -> list[Any]: ... @staticmethod @abstractmethod diff --git a/chatlas/_provider_openrouter.py b/chatlas/_provider_openrouter.py index 9544dbd9..5dc1bbb7 100644 --- a/chatlas/_provider_openrouter.py +++ b/chatlas/_provider_openrouter.py @@ -132,6 +132,7 @@ def ChatOpenRouter( base_url=base_url, seed=seed, name="OpenRouter", + preserve_thinking=True, kwargs=kwargs2, ), system_prompt=system_prompt, diff --git a/tests/test_provider_openai_completions.py b/tests/test_provider_openai_completions.py index 454851cf..9d8e4a29 100644 --- a/tests/test_provider_openai_completions.py +++ b/tests/test_provider_openai_completions.py @@ -1,6 +1,9 @@ import httpx import pytest from chatlas import ChatOpenAICompletions +from chatlas._content import ContentText, ContentThinking +from chatlas._provider_openai_completions import OpenAICompletionsProvider +from chatlas._turn import AssistantTurn from .conftest import ( assert_data_extraction, @@ -110,3 +113,82 @@ def test_openai_custom_http_client(): @pytest.mark.vcr def test_openai_list_models(): assert_list_models(ChatOpenAICompletions) + + +def test_stream_content_extracts_reasoning_content(): + provider = OpenAICompletionsProvider(model="test") + + class FakeDelta: + def __init__(self, reasoning_content=None, content=None): + self.reasoning_content = reasoning_content + self.content = content + + class FakeChoice: + def __init__(self, delta): + self.delta = delta + + class FakeChunk: + def __init__(self, choices): + self.choices = choices + + chunk = FakeChunk([FakeChoice(FakeDelta(reasoning_content="think"))]) + result = provider.stream_content(chunk) + assert isinstance(result, ContentThinking) + assert result.thinking == "think" + + chunk = FakeChunk([FakeChoice(FakeDelta(content="hello"))]) + result = provider.stream_content(chunk) + assert isinstance(result, ContentText) + assert result.text == "hello" + + +def test_response_as_turn_extracts_reasoning_content(): + from unittest.mock import Mock + + completion = Mock() + message = Mock() + message.reasoning_content = "Let me think..." + message.content = "The answer is 42." + message.tool_calls = None + completion.choices = [Mock(message=message, finish_reason="stop")] + + turn = OpenAICompletionsProvider._response_as_turn(completion, has_data_model=False) + assert len(turn.contents) == 2 + assert isinstance(turn.contents[0], ContentThinking) + assert turn.contents[0].thinking == "Let me think..." + assert isinstance(turn.contents[1], ContentText) + assert turn.contents[1].text == "The answer is 42." + + +def test_turns_as_inputs_drops_thinking_by_default(): + provider = OpenAICompletionsProvider(model="test") + + turn = AssistantTurn( + [ + ContentThinking(thinking="Let me think..."), + ContentText(text="The answer is 42."), + ] + ) + result = provider._turns_as_inputs([turn]) + assert len(result) == 1 + msg = result[0] + assert msg["role"] == "assistant" + assert "reasoning_content" not in msg + assert msg["content"] == [{"type": "text", "text": "The answer is 42."}] + + +def test_turns_as_inputs_preserves_thinking_when_enabled(): + provider = OpenAICompletionsProvider(model="test", preserve_thinking=True) + + turn = AssistantTurn( + [ + ContentThinking(thinking="Let me think..."), + ContentText(text="The answer is 42."), + ] + ) + result = provider._turns_as_inputs([turn]) + assert len(result) == 1 + msg = result[0] + assert msg["role"] == "assistant" + assert msg["reasoning_content"] == "Let me think..." + assert msg["content"] == [{"type": "text", "text": "The answer is 42."}] From a568d856e294dfad62fc4c4739046bba1d42cd3f Mon Sep 17 00:00:00 2001 From: Carson Date: Wed, 6 May 2026 18:19:32 -0500 Subject: [PATCH 2/3] feat(deepseek): update default model to deepseek-v4-flash, enable preserve_thinking deepseek-chat is deprecated (2026-07-24) and maps to v4-flash anyway. V4 thinking models require reasoning_content back for tool-call turns, so preserve_thinking=True is the correct default. --- chatlas/_provider_deepseek.py | 3 +- .../test_deepseek_list_models.yaml | 20 +- ...est_deepseek_respects_turns_interface.yaml | 649 ++++++++++++++++-- .../test_deepseek_simple_request.yaml | 112 ++- ...est_deepseek_simple_streaming_request.yaml | 112 ++- .../test_deepseek_tool_variations.yaml | 244 ++++--- .../test_deepseek_tool_variations_async.yaml | 395 +++++++++-- 7 files changed, 1271 insertions(+), 264 deletions(-) diff --git a/chatlas/_provider_deepseek.py b/chatlas/_provider_deepseek.py index 808de8ff..c45b86b8 100644 --- a/chatlas/_provider_deepseek.py +++ b/chatlas/_provider_deepseek.py @@ -122,7 +122,7 @@ def ChatDeepSeek( ``` """ if model is None: - model = log_model_default("deepseek-chat") + model = log_model_default("deepseek-v4-flash") if api_key is None: api_key = os.getenv("DEEPSEEK_API_KEY") @@ -136,6 +136,7 @@ def ChatDeepSeek( model=model, base_url=base_url, seed=seed, + preserve_thinking=True, name="DeepSeek", kwargs=kwargs, ), diff --git a/tests/_vcr/test_provider_deepseek/test_deepseek_list_models.yaml b/tests/_vcr/test_provider_deepseek/test_deepseek_list_models.yaml index 4178ac3b..d70bf7ab 100644 --- a/tests/_vcr/test_provider_deepseek/test_deepseek_list_models.yaml +++ b/tests/_vcr/test_provider_deepseek/test_deepseek_list_models.yaml @@ -5,7 +5,7 @@ interactions: Accept: - application/json Accept-Encoding: - - gzip, deflate + - gzip, deflate, zstd Connection: - keep-alive Host: @@ -18,36 +18,36 @@ interactions: uri: https://api.deepseek.com/models response: body: - string: '{"object":"list","data":[{"id":"deepseek-chat","object":"model","owned_by":"deepseek"},{"id":"deepseek-reasoner","object":"model","owned_by":"deepseek"}]}' + string: '{"object":"list","data":[{"id":"deepseek-v4-flash","object":"model","owned_by":"deepseek"},{"id":"deepseek-v4-pro","object":"model","owned_by":"deepseek"}]}' headers: Connection: - keep-alive Content-Length: - - '154' + - '156' Content-Type: - application/json Date: - - Wed, 31 Dec 2025 20:37:50 GMT + - Wed, 06 May 2026 23:20:10 GMT Server: - elb Strict-Transport-Security: - max-age=31536000; includeSubDomains; preload - Vary: - - origin Via: - - 1.1 2f51a381830e231f6bc2b46fda74f69e.cloudfront.net (CloudFront) + - 1.1 59d8e2230b07f6d21e105d564b87cc6c.cloudfront.net (CloudFront) X-Amz-Cf-Id: - - mgFFCx8JBolTTjH52ADc1GUHPZssINDzDxG2pABqc5djt5OUrlCTbQ== + - kvNMGPNoxRu0-JnpPnf6mBiJ7QU1rXkorvtdIg95oN1NGREqV2R0Bw== X-Amz-Cf-Pop: - - ORD56-P7 + - MSP50-P3 X-Cache: - Miss from cloudfront X-Content-Type-Options: - nosniff access-control-allow-credentials: - 'true' + vary: + - origin, access-control-request-method, access-control-request-headers x-ds-trace-id: - - e9649652e269daf0ffdd27df13056a22 + - ca44e5c998d05d2e72061b2b65c80da0 status: code: 200 message: OK diff --git a/tests/_vcr/test_provider_deepseek/test_deepseek_respects_turns_interface.yaml b/tests/_vcr/test_provider_deepseek/test_deepseek_respects_turns_interface.yaml index ce9643ac..5d3bfb56 100644 --- a/tests/_vcr/test_provider_deepseek/test_deepseek_respects_turns_interface.yaml +++ b/tests/_vcr/test_provider_deepseek/test_deepseek_respects_turns_interface.yaml @@ -2,17 +2,17 @@ interactions: - request: body: '{"messages": [{"content": "Return very minimal output, AND ONLY USE UPPERCASE.", "role": "system"}, {"content": "What is the name of Winnie the Pooh''s human - friend?", "role": "user"}], "model": "deepseek-chat", "seed": 1014, "stream": + friend?", "role": "user"}], "model": "deepseek-v4-flash", "seed": 1014, "stream": true, "stream_options": {"include_usage": true}}' headers: Accept: - application/json Accept-Encoding: - - gzip, deflate + - gzip, deflate, zstd Connection: - keep-alive Content-Length: - - '266' + - '270' Content-Type: - application/json Host: @@ -25,32 +25,229 @@ interactions: uri: https://api.deepseek.com/chat/completions response: body: - string: 'data: {"id":"f19b7258-1ddb-41d4-a0c7-53a8c5c17630","object":"chat.completion.chunk","created":1767213449,"model":"deepseek-chat","system_fingerprint":"fp_eaab8d114b_prod0820_fp8_kvcache","choices":[{"index":0,"delta":{"role":"assistant","content":""},"logprobs":null,"finish_reason":null}],"usage":null} + string: 'data: {"id":"85141767-d33b-4819-b9d6-f2687ad248fb","object":"chat.completion.chunk","created":1778109596,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"role":"assistant","content":null,"reasoning_content":""},"logprobs":null,"finish_reason":null}],"usage":null} - data: {"id":"f19b7258-1ddb-41d4-a0c7-53a8c5c17630","object":"chat.completion.chunk","created":1767213449,"model":"deepseek-chat","system_fingerprint":"fp_eaab8d114b_prod0820_fp8_kvcache","choices":[{"index":0,"delta":{"content":"CH"},"logprobs":null,"finish_reason":null}],"usage":null} + data: {"id":"85141767-d33b-4819-b9d6-f2687ad248fb","object":"chat.completion.chunk","created":1778109596,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":"We"},"logprobs":null,"finish_reason":null}],"usage":null} - data: {"id":"f19b7258-1ddb-41d4-a0c7-53a8c5c17630","object":"chat.completion.chunk","created":1767213449,"model":"deepseek-chat","system_fingerprint":"fp_eaab8d114b_prod0820_fp8_kvcache","choices":[{"index":0,"delta":{"content":"RIST"},"logprobs":null,"finish_reason":null}],"usage":null} + data: {"id":"85141767-d33b-4819-b9d6-f2687ad248fb","object":"chat.completion.chunk","created":1778109596,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + need"},"logprobs":null,"finish_reason":null}],"usage":null} - data: {"id":"f19b7258-1ddb-41d4-a0c7-53a8c5c17630","object":"chat.completion.chunk","created":1767213449,"model":"deepseek-chat","system_fingerprint":"fp_eaab8d114b_prod0820_fp8_kvcache","choices":[{"index":0,"delta":{"content":"OP"},"logprobs":null,"finish_reason":null}],"usage":null} + data: {"id":"85141767-d33b-4819-b9d6-f2687ad248fb","object":"chat.completion.chunk","created":1778109596,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + to"},"logprobs":null,"finish_reason":null}],"usage":null} - data: {"id":"f19b7258-1ddb-41d4-a0c7-53a8c5c17630","object":"chat.completion.chunk","created":1767213449,"model":"deepseek-chat","system_fingerprint":"fp_eaab8d114b_prod0820_fp8_kvcache","choices":[{"index":0,"delta":{"content":"HER"},"logprobs":null,"finish_reason":null}],"usage":null} + data: {"id":"85141767-d33b-4819-b9d6-f2687ad248fb","object":"chat.completion.chunk","created":1778109596,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + answer"},"logprobs":null,"finish_reason":null}],"usage":null} - data: {"id":"f19b7258-1ddb-41d4-a0c7-53a8c5c17630","object":"chat.completion.chunk","created":1767213449,"model":"deepseek-chat","system_fingerprint":"fp_eaab8d114b_prod0820_fp8_kvcache","choices":[{"index":0,"delta":{"content":" - ROB"},"logprobs":null,"finish_reason":null}],"usage":null} + data: {"id":"85141767-d33b-4819-b9d6-f2687ad248fb","object":"chat.completion.chunk","created":1778109596,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":":"},"logprobs":null,"finish_reason":null}],"usage":null} - data: {"id":"f19b7258-1ddb-41d4-a0c7-53a8c5c17630","object":"chat.completion.chunk","created":1767213449,"model":"deepseek-chat","system_fingerprint":"fp_eaab8d114b_prod0820_fp8_kvcache","choices":[{"index":0,"delta":{"content":"IN"},"logprobs":null,"finish_reason":null}],"usage":null} + data: {"id":"85141767-d33b-4819-b9d6-f2687ad248fb","object":"chat.completion.chunk","created":1778109596,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + \""},"logprobs":null,"finish_reason":null}],"usage":null} - data: {"id":"f19b7258-1ddb-41d4-a0c7-53a8c5c17630","object":"chat.completion.chunk","created":1767213449,"model":"deepseek-chat","system_fingerprint":"fp_eaab8d114b_prod0820_fp8_kvcache","choices":[{"index":0,"delta":{"content":"."},"logprobs":null,"finish_reason":null}],"usage":null} + data: {"id":"85141767-d33b-4819-b9d6-f2687ad248fb","object":"chat.completion.chunk","created":1778109596,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":"What"},"logprobs":null,"finish_reason":null}],"usage":null} - data: {"id":"f19b7258-1ddb-41d4-a0c7-53a8c5c17630","object":"chat.completion.chunk","created":1767213449,"model":"deepseek-chat","system_fingerprint":"fp_eaab8d114b_prod0820_fp8_kvcache","choices":[{"index":0,"delta":{"content":""},"logprobs":null,"finish_reason":"stop"}],"usage":{"prompt_tokens":31,"completion_tokens":7,"total_tokens":38,"prompt_tokens_details":{"cached_tokens":0},"prompt_cache_hit_tokens":0,"prompt_cache_miss_tokens":31}} + data: {"id":"85141767-d33b-4819-b9d6-f2687ad248fb","object":"chat.completion.chunk","created":1778109596,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + is"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"85141767-d33b-4819-b9d6-f2687ad248fb","object":"chat.completion.chunk","created":1778109596,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + the"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"85141767-d33b-4819-b9d6-f2687ad248fb","object":"chat.completion.chunk","created":1778109596,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + name"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"85141767-d33b-4819-b9d6-f2687ad248fb","object":"chat.completion.chunk","created":1778109596,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + of"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"85141767-d33b-4819-b9d6-f2687ad248fb","object":"chat.completion.chunk","created":1778109596,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + Winn"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"85141767-d33b-4819-b9d6-f2687ad248fb","object":"chat.completion.chunk","created":1778109596,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":"ie"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"85141767-d33b-4819-b9d6-f2687ad248fb","object":"chat.completion.chunk","created":1778109596,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + the"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"85141767-d33b-4819-b9d6-f2687ad248fb","object":"chat.completion.chunk","created":1778109596,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + Po"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"85141767-d33b-4819-b9d6-f2687ad248fb","object":"chat.completion.chunk","created":1778109596,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":"oh"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"85141767-d33b-4819-b9d6-f2687ad248fb","object":"chat.completion.chunk","created":1778109596,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":"''s"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"85141767-d33b-4819-b9d6-f2687ad248fb","object":"chat.completion.chunk","created":1778109596,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + human"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"85141767-d33b-4819-b9d6-f2687ad248fb","object":"chat.completion.chunk","created":1778109596,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + friend"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"85141767-d33b-4819-b9d6-f2687ad248fb","object":"chat.completion.chunk","created":1778109596,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":"?\""},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"85141767-d33b-4819-b9d6-f2687ad248fb","object":"chat.completion.chunk","created":1778109596,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + The"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"85141767-d33b-4819-b9d6-f2687ad248fb","object":"chat.completion.chunk","created":1778109596,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + human"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"85141767-d33b-4819-b9d6-f2687ad248fb","object":"chat.completion.chunk","created":1778109596,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + friend"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"85141767-d33b-4819-b9d6-f2687ad248fb","object":"chat.completion.chunk","created":1778109596,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + is"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"85141767-d33b-4819-b9d6-f2687ad248fb","object":"chat.completion.chunk","created":1778109596,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + Christopher"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"85141767-d33b-4819-b9d6-f2687ad248fb","object":"chat.completion.chunk","created":1778109596,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + Robin"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"85141767-d33b-4819-b9d6-f2687ad248fb","object":"chat.completion.chunk","created":1778109596,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":"."},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"85141767-d33b-4819-b9d6-f2687ad248fb","object":"chat.completion.chunk","created":1778109596,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + The"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"85141767-d33b-4819-b9d6-f2687ad248fb","object":"chat.completion.chunk","created":1778109596,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + instruction"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"85141767-d33b-4819-b9d6-f2687ad248fb","object":"chat.completion.chunk","created":1778109596,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + says"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"85141767-d33b-4819-b9d6-f2687ad248fb","object":"chat.completion.chunk","created":1778109596,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":":"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"85141767-d33b-4819-b9d6-f2687ad248fb","object":"chat.completion.chunk","created":1778109596,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + \""},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"85141767-d33b-4819-b9d6-f2687ad248fb","object":"chat.completion.chunk","created":1778109596,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":"Return"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"85141767-d33b-4819-b9d6-f2687ad248fb","object":"chat.completion.chunk","created":1778109596,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + very"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"85141767-d33b-4819-b9d6-f2687ad248fb","object":"chat.completion.chunk","created":1778109596,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + minimal"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"85141767-d33b-4819-b9d6-f2687ad248fb","object":"chat.completion.chunk","created":1778109596,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + output"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"85141767-d33b-4819-b9d6-f2687ad248fb","object":"chat.completion.chunk","created":1778109596,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":","},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"85141767-d33b-4819-b9d6-f2687ad248fb","object":"chat.completion.chunk","created":1778109596,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + AND"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"85141767-d33b-4819-b9d6-f2687ad248fb","object":"chat.completion.chunk","created":1778109596,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + ONLY"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"85141767-d33b-4819-b9d6-f2687ad248fb","object":"chat.completion.chunk","created":1778109596,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + USE"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"85141767-d33b-4819-b9d6-f2687ad248fb","object":"chat.completion.chunk","created":1778109596,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + U"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"85141767-d33b-4819-b9d6-f2687ad248fb","object":"chat.completion.chunk","created":1778109596,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":"PP"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"85141767-d33b-4819-b9d6-f2687ad248fb","object":"chat.completion.chunk","created":1778109596,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":"ERC"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"85141767-d33b-4819-b9d6-f2687ad248fb","object":"chat.completion.chunk","created":1778109596,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":"ASE"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"85141767-d33b-4819-b9d6-f2687ad248fb","object":"chat.completion.chunk","created":1778109596,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":".\""},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"85141767-d33b-4819-b9d6-f2687ad248fb","object":"chat.completion.chunk","created":1778109596,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + So"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"85141767-d33b-4819-b9d6-f2687ad248fb","object":"chat.completion.chunk","created":1778109596,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + just"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"85141767-d33b-4819-b9d6-f2687ad248fb","object":"chat.completion.chunk","created":1778109596,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + output"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"85141767-d33b-4819-b9d6-f2687ad248fb","object":"chat.completion.chunk","created":1778109596,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + the"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"85141767-d33b-4819-b9d6-f2687ad248fb","object":"chat.completion.chunk","created":1778109596,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + name"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"85141767-d33b-4819-b9d6-f2687ad248fb","object":"chat.completion.chunk","created":1778109596,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + in"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"85141767-d33b-4819-b9d6-f2687ad248fb","object":"chat.completion.chunk","created":1778109596,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + all"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"85141767-d33b-4819-b9d6-f2687ad248fb","object":"chat.completion.chunk","created":1778109596,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + caps"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"85141767-d33b-4819-b9d6-f2687ad248fb","object":"chat.completion.chunk","created":1778109596,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":"."},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"85141767-d33b-4819-b9d6-f2687ad248fb","object":"chat.completion.chunk","created":1778109596,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":"CH","reasoning_content":null},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"85141767-d33b-4819-b9d6-f2687ad248fb","object":"chat.completion.chunk","created":1778109596,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":"RIST","reasoning_content":null},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"85141767-d33b-4819-b9d6-f2687ad248fb","object":"chat.completion.chunk","created":1778109596,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":"OP","reasoning_content":null},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"85141767-d33b-4819-b9d6-f2687ad248fb","object":"chat.completion.chunk","created":1778109596,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":"HER","reasoning_content":null},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"85141767-d33b-4819-b9d6-f2687ad248fb","object":"chat.completion.chunk","created":1778109596,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":" + ROB","reasoning_content":null},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"85141767-d33b-4819-b9d6-f2687ad248fb","object":"chat.completion.chunk","created":1778109596,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":"IN","reasoning_content":null},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"85141767-d33b-4819-b9d6-f2687ad248fb","object":"chat.completion.chunk","created":1778109596,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":"","reasoning_content":null},"logprobs":null,"finish_reason":"stop"}],"usage":{"prompt_tokens":31,"completion_tokens":61,"total_tokens":92,"prompt_tokens_details":{"cached_tokens":0},"completion_tokens_details":{"reasoning_tokens":54},"prompt_cache_hit_tokens":0,"prompt_cache_miss_tokens":31}} data: [DONE] @@ -63,7 +260,7 @@ interactions: Content-Type: - text/event-stream; charset=utf-8 Date: - - Wed, 31 Dec 2025 20:37:29 GMT + - Wed, 06 May 2026 23:19:56 GMT Server: - elb Strict-Transport-Security: @@ -71,11 +268,11 @@ interactions: Transfer-Encoding: - chunked Via: - - 1.1 2bb4560ed08e22695c5989511be7b43e.cloudfront.net (CloudFront) + - 1.1 2af515e7d9fb7f7026bd364fa1cf6af6.cloudfront.net (CloudFront) X-Amz-Cf-Id: - - -AGSeiz9Jf0psjbz_vkk830jbPtjc7f9fYdDUkOtCax04Yswt-A_PA== + - y0d-HTzBxemxG9D1i7UiCAjrkqsDaiZAF8DhW7Wvznx1ipgJ2teUtw== X-Amz-Cf-Pop: - - ORD58-P3 + - MSP50-P4 X-Cache: - Miss from cloudfront X-Content-Type-Options: @@ -87,24 +284,24 @@ interactions: vary: - origin, access-control-request-method, access-control-request-headers x-ds-trace-id: - - 71e8d0be004f2c7ed25d220ae66ccedf + - adbc2b70ea9cece450132173220cf80a status: code: 200 message: OK - request: body: '{"messages": [{"content": "Return very minimal output, AND ONLY USE UPPERCASE.", "role": "system"}, {"content": "What is the name of Winnie the Pooh''s human - friend?", "role": "user"}], "model": "deepseek-chat", "seed": 1014, "stream": + friend?", "role": "user"}], "model": "deepseek-v4-flash", "seed": 1014, "stream": true, "stream_options": {"include_usage": true}}' headers: Accept: - application/json Accept-Encoding: - - gzip, deflate + - gzip, deflate, zstd Connection: - keep-alive Content-Length: - - '266' + - '270' Content-Type: - application/json Host: @@ -117,32 +314,229 @@ interactions: uri: https://api.deepseek.com/chat/completions response: body: - string: 'data: {"id":"6e4dbdd4-d8c2-4ed1-8d69-3a9f139359bc","object":"chat.completion.chunk","created":1767213451,"model":"deepseek-chat","system_fingerprint":"fp_eaab8d114b_prod0820_fp8_kvcache","choices":[{"index":0,"delta":{"role":"assistant","content":""},"logprobs":null,"finish_reason":null}],"usage":null} + string: 'data: {"id":"66907b24-3f48-409a-b47a-d3a957d09023","object":"chat.completion.chunk","created":1778109598,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"role":"assistant","content":null,"reasoning_content":""},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"66907b24-3f48-409a-b47a-d3a957d09023","object":"chat.completion.chunk","created":1778109598,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":"We"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"66907b24-3f48-409a-b47a-d3a957d09023","object":"chat.completion.chunk","created":1778109598,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + need"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"66907b24-3f48-409a-b47a-d3a957d09023","object":"chat.completion.chunk","created":1778109598,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + to"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"66907b24-3f48-409a-b47a-d3a957d09023","object":"chat.completion.chunk","created":1778109598,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + answer"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"66907b24-3f48-409a-b47a-d3a957d09023","object":"chat.completion.chunk","created":1778109598,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":":"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"66907b24-3f48-409a-b47a-d3a957d09023","object":"chat.completion.chunk","created":1778109598,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + \""},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"66907b24-3f48-409a-b47a-d3a957d09023","object":"chat.completion.chunk","created":1778109598,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":"What"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"66907b24-3f48-409a-b47a-d3a957d09023","object":"chat.completion.chunk","created":1778109598,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + is"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"66907b24-3f48-409a-b47a-d3a957d09023","object":"chat.completion.chunk","created":1778109598,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + the"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"66907b24-3f48-409a-b47a-d3a957d09023","object":"chat.completion.chunk","created":1778109598,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + name"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"66907b24-3f48-409a-b47a-d3a957d09023","object":"chat.completion.chunk","created":1778109598,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + of"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"66907b24-3f48-409a-b47a-d3a957d09023","object":"chat.completion.chunk","created":1778109598,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + Winn"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"66907b24-3f48-409a-b47a-d3a957d09023","object":"chat.completion.chunk","created":1778109598,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":"ie"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"66907b24-3f48-409a-b47a-d3a957d09023","object":"chat.completion.chunk","created":1778109598,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + the"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"66907b24-3f48-409a-b47a-d3a957d09023","object":"chat.completion.chunk","created":1778109598,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + Po"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"66907b24-3f48-409a-b47a-d3a957d09023","object":"chat.completion.chunk","created":1778109598,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":"oh"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"66907b24-3f48-409a-b47a-d3a957d09023","object":"chat.completion.chunk","created":1778109598,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":"''s"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"66907b24-3f48-409a-b47a-d3a957d09023","object":"chat.completion.chunk","created":1778109598,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + human"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"66907b24-3f48-409a-b47a-d3a957d09023","object":"chat.completion.chunk","created":1778109598,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + friend"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"66907b24-3f48-409a-b47a-d3a957d09023","object":"chat.completion.chunk","created":1778109598,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":"?\""},"logprobs":null,"finish_reason":null}],"usage":null} - data: {"id":"6e4dbdd4-d8c2-4ed1-8d69-3a9f139359bc","object":"chat.completion.chunk","created":1767213451,"model":"deepseek-chat","system_fingerprint":"fp_eaab8d114b_prod0820_fp8_kvcache","choices":[{"index":0,"delta":{"content":"CH"},"logprobs":null,"finish_reason":null}],"usage":null} + data: {"id":"66907b24-3f48-409a-b47a-d3a957d09023","object":"chat.completion.chunk","created":1778109598,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + The"},"logprobs":null,"finish_reason":null}],"usage":null} - data: {"id":"6e4dbdd4-d8c2-4ed1-8d69-3a9f139359bc","object":"chat.completion.chunk","created":1767213451,"model":"deepseek-chat","system_fingerprint":"fp_eaab8d114b_prod0820_fp8_kvcache","choices":[{"index":0,"delta":{"content":"RIST"},"logprobs":null,"finish_reason":null}],"usage":null} + data: {"id":"66907b24-3f48-409a-b47a-d3a957d09023","object":"chat.completion.chunk","created":1778109598,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + human"},"logprobs":null,"finish_reason":null}],"usage":null} - data: {"id":"6e4dbdd4-d8c2-4ed1-8d69-3a9f139359bc","object":"chat.completion.chunk","created":1767213451,"model":"deepseek-chat","system_fingerprint":"fp_eaab8d114b_prod0820_fp8_kvcache","choices":[{"index":0,"delta":{"content":"OP"},"logprobs":null,"finish_reason":null}],"usage":null} + data: {"id":"66907b24-3f48-409a-b47a-d3a957d09023","object":"chat.completion.chunk","created":1778109598,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + friend"},"logprobs":null,"finish_reason":null}],"usage":null} - data: {"id":"6e4dbdd4-d8c2-4ed1-8d69-3a9f139359bc","object":"chat.completion.chunk","created":1767213451,"model":"deepseek-chat","system_fingerprint":"fp_eaab8d114b_prod0820_fp8_kvcache","choices":[{"index":0,"delta":{"content":"HER"},"logprobs":null,"finish_reason":null}],"usage":null} + data: {"id":"66907b24-3f48-409a-b47a-d3a957d09023","object":"chat.completion.chunk","created":1778109598,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + is"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"66907b24-3f48-409a-b47a-d3a957d09023","object":"chat.completion.chunk","created":1778109598,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + Christopher"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"66907b24-3f48-409a-b47a-d3a957d09023","object":"chat.completion.chunk","created":1778109598,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + Robin"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"66907b24-3f48-409a-b47a-d3a957d09023","object":"chat.completion.chunk","created":1778109598,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":"."},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"66907b24-3f48-409a-b47a-d3a957d09023","object":"chat.completion.chunk","created":1778109598,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + The"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"66907b24-3f48-409a-b47a-d3a957d09023","object":"chat.completion.chunk","created":1778109598,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + instruction"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"66907b24-3f48-409a-b47a-d3a957d09023","object":"chat.completion.chunk","created":1778109598,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + says"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"66907b24-3f48-409a-b47a-d3a957d09023","object":"chat.completion.chunk","created":1778109598,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":":"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"66907b24-3f48-409a-b47a-d3a957d09023","object":"chat.completion.chunk","created":1778109598,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + \""},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"66907b24-3f48-409a-b47a-d3a957d09023","object":"chat.completion.chunk","created":1778109598,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":"Return"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"66907b24-3f48-409a-b47a-d3a957d09023","object":"chat.completion.chunk","created":1778109598,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + very"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"66907b24-3f48-409a-b47a-d3a957d09023","object":"chat.completion.chunk","created":1778109598,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + minimal"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"66907b24-3f48-409a-b47a-d3a957d09023","object":"chat.completion.chunk","created":1778109598,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + output"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"66907b24-3f48-409a-b47a-d3a957d09023","object":"chat.completion.chunk","created":1778109598,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":","},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"66907b24-3f48-409a-b47a-d3a957d09023","object":"chat.completion.chunk","created":1778109598,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + AND"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"66907b24-3f48-409a-b47a-d3a957d09023","object":"chat.completion.chunk","created":1778109598,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + ONLY"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"66907b24-3f48-409a-b47a-d3a957d09023","object":"chat.completion.chunk","created":1778109598,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + USE"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"66907b24-3f48-409a-b47a-d3a957d09023","object":"chat.completion.chunk","created":1778109598,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + U"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"66907b24-3f48-409a-b47a-d3a957d09023","object":"chat.completion.chunk","created":1778109598,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":"PP"},"logprobs":null,"finish_reason":null}],"usage":null} + + data: {"id":"66907b24-3f48-409a-b47a-d3a957d09023","object":"chat.completion.chunk","created":1778109598,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":"ERC"},"logprobs":null,"finish_reason":null}],"usage":null} - data: {"id":"6e4dbdd4-d8c2-4ed1-8d69-3a9f139359bc","object":"chat.completion.chunk","created":1767213451,"model":"deepseek-chat","system_fingerprint":"fp_eaab8d114b_prod0820_fp8_kvcache","choices":[{"index":0,"delta":{"content":" - ROB"},"logprobs":null,"finish_reason":null}],"usage":null} + data: {"id":"66907b24-3f48-409a-b47a-d3a957d09023","object":"chat.completion.chunk","created":1778109598,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":"ASE"},"logprobs":null,"finish_reason":null}],"usage":null} - data: {"id":"6e4dbdd4-d8c2-4ed1-8d69-3a9f139359bc","object":"chat.completion.chunk","created":1767213451,"model":"deepseek-chat","system_fingerprint":"fp_eaab8d114b_prod0820_fp8_kvcache","choices":[{"index":0,"delta":{"content":"IN"},"logprobs":null,"finish_reason":null}],"usage":null} + data: {"id":"66907b24-3f48-409a-b47a-d3a957d09023","object":"chat.completion.chunk","created":1778109598,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":".\""},"logprobs":null,"finish_reason":null}],"usage":null} - data: {"id":"6e4dbdd4-d8c2-4ed1-8d69-3a9f139359bc","object":"chat.completion.chunk","created":1767213451,"model":"deepseek-chat","system_fingerprint":"fp_eaab8d114b_prod0820_fp8_kvcache","choices":[{"index":0,"delta":{"content":"."},"logprobs":null,"finish_reason":null}],"usage":null} + data: {"id":"66907b24-3f48-409a-b47a-d3a957d09023","object":"chat.completion.chunk","created":1778109598,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + So"},"logprobs":null,"finish_reason":null}],"usage":null} - data: {"id":"6e4dbdd4-d8c2-4ed1-8d69-3a9f139359bc","object":"chat.completion.chunk","created":1767213451,"model":"deepseek-chat","system_fingerprint":"fp_eaab8d114b_prod0820_fp8_kvcache","choices":[{"index":0,"delta":{"content":""},"logprobs":null,"finish_reason":"stop"}],"usage":{"prompt_tokens":31,"completion_tokens":7,"total_tokens":38,"prompt_tokens_details":{"cached_tokens":0},"prompt_cache_hit_tokens":0,"prompt_cache_miss_tokens":31}} + + data: {"id":"66907b24-3f48-409a-b47a-d3a957d09023","object":"chat.completion.chunk","created":1778109598,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + just"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"66907b24-3f48-409a-b47a-d3a957d09023","object":"chat.completion.chunk","created":1778109598,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + output"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"66907b24-3f48-409a-b47a-d3a957d09023","object":"chat.completion.chunk","created":1778109598,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + the"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"66907b24-3f48-409a-b47a-d3a957d09023","object":"chat.completion.chunk","created":1778109598,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + name"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"66907b24-3f48-409a-b47a-d3a957d09023","object":"chat.completion.chunk","created":1778109598,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + in"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"66907b24-3f48-409a-b47a-d3a957d09023","object":"chat.completion.chunk","created":1778109598,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + all"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"66907b24-3f48-409a-b47a-d3a957d09023","object":"chat.completion.chunk","created":1778109598,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + caps"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"66907b24-3f48-409a-b47a-d3a957d09023","object":"chat.completion.chunk","created":1778109598,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":"."},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"66907b24-3f48-409a-b47a-d3a957d09023","object":"chat.completion.chunk","created":1778109598,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":"CH","reasoning_content":null},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"66907b24-3f48-409a-b47a-d3a957d09023","object":"chat.completion.chunk","created":1778109598,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":"RIST","reasoning_content":null},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"66907b24-3f48-409a-b47a-d3a957d09023","object":"chat.completion.chunk","created":1778109598,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":"OP","reasoning_content":null},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"66907b24-3f48-409a-b47a-d3a957d09023","object":"chat.completion.chunk","created":1778109598,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":"HER","reasoning_content":null},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"66907b24-3f48-409a-b47a-d3a957d09023","object":"chat.completion.chunk","created":1778109598,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":" + ROB","reasoning_content":null},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"66907b24-3f48-409a-b47a-d3a957d09023","object":"chat.completion.chunk","created":1778109598,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":"IN","reasoning_content":null},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"66907b24-3f48-409a-b47a-d3a957d09023","object":"chat.completion.chunk","created":1778109598,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":"","reasoning_content":null},"logprobs":null,"finish_reason":"stop"}],"usage":{"prompt_tokens":31,"completion_tokens":61,"total_tokens":92,"prompt_tokens_details":{"cached_tokens":0},"completion_tokens_details":{"reasoning_tokens":54},"prompt_cache_hit_tokens":0,"prompt_cache_miss_tokens":31}} data: [DONE] @@ -155,7 +549,7 @@ interactions: Content-Type: - text/event-stream; charset=utf-8 Date: - - Wed, 31 Dec 2025 20:37:31 GMT + - Wed, 06 May 2026 23:19:58 GMT Server: - elb Strict-Transport-Security: @@ -163,11 +557,11 @@ interactions: Transfer-Encoding: - chunked Via: - - 1.1 ff70d2ed51497e957e0d0413c2211f6a.cloudfront.net (CloudFront) + - 1.1 4d7a06ce9ce4df5d46350194f249ba38.cloudfront.net (CloudFront) X-Amz-Cf-Id: - - s6KRaxXF_MAq32Em4q3uWIDK_qumJQOGMqzhhVUq4tzicn0n0vVKDA== + - hpexQa5MYZviiey0wMLm9IBSudwUYFB7ichbJCNeNrZwsX5Khe9gHw== X-Amz-Cf-Pop: - - ORD56-P2 + - MSP50-P5 X-Cache: - Miss from cloudfront X-Content-Type-Options: @@ -179,24 +573,24 @@ interactions: vary: - origin, access-control-request-method, access-control-request-headers x-ds-trace-id: - - 8cd48a4ff9fe853f630cf4f97672241e + - 48ab65c97f71f86d5b96400b0c100d61 status: code: 200 message: OK - request: body: '{"messages": [{"content": "My name is Steve", "role": "user"}, {"role": "assistant", "content": "Hello Steve, how can I help you today?"}, {"content": - "What is my name?", "role": "user"}], "model": "deepseek-chat", "seed": 1014, - "stream": true, "stream_options": {"include_usage": true}}' + "What is my name?", "role": "user"}], "model": "deepseek-v4-flash", "seed": + 1014, "stream": true, "stream_options": {"include_usage": true}}' headers: Accept: - application/json Accept-Encoding: - - gzip, deflate + - gzip, deflate, zstd Connection: - keep-alive Content-Length: - - '266' + - '270' Content-Type: - application/json Host: @@ -209,28 +603,179 @@ interactions: uri: https://api.deepseek.com/chat/completions response: body: - string: 'data: {"id":"782ac5f5-fa5e-4798-ba4f-e5b62cfe9fb0","object":"chat.completion.chunk","created":1767213452,"model":"deepseek-chat","system_fingerprint":"fp_eaab8d114b_prod0820_fp8_kvcache","choices":[{"index":0,"delta":{"role":"assistant","content":""},"logprobs":null,"finish_reason":null}],"usage":null} + string: 'data: {"id":"3bdf0266-9c09-4ad0-ad7f-114e9ba15679","object":"chat.completion.chunk","created":1778109600,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"role":"assistant","content":null,"reasoning_content":""},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"3bdf0266-9c09-4ad0-ad7f-114e9ba15679","object":"chat.completion.chunk","created":1778109600,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":"We"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"3bdf0266-9c09-4ad0-ad7f-114e9ba15679","object":"chat.completion.chunk","created":1778109600,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + need"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"3bdf0266-9c09-4ad0-ad7f-114e9ba15679","object":"chat.completion.chunk","created":1778109600,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + to"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"3bdf0266-9c09-4ad0-ad7f-114e9ba15679","object":"chat.completion.chunk","created":1778109600,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + answer"},"logprobs":null,"finish_reason":null}],"usage":null} - data: {"id":"782ac5f5-fa5e-4798-ba4f-e5b62cfe9fb0","object":"chat.completion.chunk","created":1767213452,"model":"deepseek-chat","system_fingerprint":"fp_eaab8d114b_prod0820_fp8_kvcache","choices":[{"index":0,"delta":{"content":"Your"},"logprobs":null,"finish_reason":null}],"usage":null} + data: {"id":"3bdf0266-9c09-4ad0-ad7f-114e9ba15679","object":"chat.completion.chunk","created":1778109600,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + the"},"logprobs":null,"finish_reason":null}],"usage":null} - data: {"id":"782ac5f5-fa5e-4798-ba4f-e5b62cfe9fb0","object":"chat.completion.chunk","created":1767213452,"model":"deepseek-chat","system_fingerprint":"fp_eaab8d114b_prod0820_fp8_kvcache","choices":[{"index":0,"delta":{"content":" + data: {"id":"3bdf0266-9c09-4ad0-ad7f-114e9ba15679","object":"chat.completion.chunk","created":1778109600,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + user"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"3bdf0266-9c09-4ad0-ad7f-114e9ba15679","object":"chat.completion.chunk","created":1778109600,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":"''s"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"3bdf0266-9c09-4ad0-ad7f-114e9ba15679","object":"chat.completion.chunk","created":1778109600,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + question"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"3bdf0266-9c09-4ad0-ad7f-114e9ba15679","object":"chat.completion.chunk","created":1778109600,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":":"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"3bdf0266-9c09-4ad0-ad7f-114e9ba15679","object":"chat.completion.chunk","created":1778109600,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + \""},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"3bdf0266-9c09-4ad0-ad7f-114e9ba15679","object":"chat.completion.chunk","created":1778109600,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":"What"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"3bdf0266-9c09-4ad0-ad7f-114e9ba15679","object":"chat.completion.chunk","created":1778109600,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + is"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"3bdf0266-9c09-4ad0-ad7f-114e9ba15679","object":"chat.completion.chunk","created":1778109600,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + my"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"3bdf0266-9c09-4ad0-ad7f-114e9ba15679","object":"chat.completion.chunk","created":1778109600,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + name"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"3bdf0266-9c09-4ad0-ad7f-114e9ba15679","object":"chat.completion.chunk","created":1778109600,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":"?\""},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"3bdf0266-9c09-4ad0-ad7f-114e9ba15679","object":"chat.completion.chunk","created":1778109600,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + The"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"3bdf0266-9c09-4ad0-ad7f-114e9ba15679","object":"chat.completion.chunk","created":1778109600,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + user"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"3bdf0266-9c09-4ad0-ad7f-114e9ba15679","object":"chat.completion.chunk","created":1778109600,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + previously"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"3bdf0266-9c09-4ad0-ad7f-114e9ba15679","object":"chat.completion.chunk","created":1778109600,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + said"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"3bdf0266-9c09-4ad0-ad7f-114e9ba15679","object":"chat.completion.chunk","created":1778109600,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + \""},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"3bdf0266-9c09-4ad0-ad7f-114e9ba15679","object":"chat.completion.chunk","created":1778109600,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":"My"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"3bdf0266-9c09-4ad0-ad7f-114e9ba15679","object":"chat.completion.chunk","created":1778109600,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" name"},"logprobs":null,"finish_reason":null}],"usage":null} - data: {"id":"782ac5f5-fa5e-4798-ba4f-e5b62cfe9fb0","object":"chat.completion.chunk","created":1767213452,"model":"deepseek-chat","system_fingerprint":"fp_eaab8d114b_prod0820_fp8_kvcache","choices":[{"index":0,"delta":{"content":" + data: {"id":"3bdf0266-9c09-4ad0-ad7f-114e9ba15679","object":"chat.completion.chunk","created":1778109600,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" is"},"logprobs":null,"finish_reason":null}],"usage":null} - data: {"id":"782ac5f5-fa5e-4798-ba4f-e5b62cfe9fb0","object":"chat.completion.chunk","created":1767213452,"model":"deepseek-chat","system_fingerprint":"fp_eaab8d114b_prod0820_fp8_kvcache","choices":[{"index":0,"delta":{"content":" + data: {"id":"3bdf0266-9c09-4ad0-ad7f-114e9ba15679","object":"chat.completion.chunk","created":1778109600,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + Steve"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"3bdf0266-9c09-4ad0-ad7f-114e9ba15679","object":"chat.completion.chunk","created":1778109600,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":",\""},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"3bdf0266-9c09-4ad0-ad7f-114e9ba15679","object":"chat.completion.chunk","created":1778109600,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + so"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"3bdf0266-9c09-4ad0-ad7f-114e9ba15679","object":"chat.completion.chunk","created":1778109600,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + we"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"3bdf0266-9c09-4ad0-ad7f-114e9ba15679","object":"chat.completion.chunk","created":1778109600,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + can"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"3bdf0266-9c09-4ad0-ad7f-114e9ba15679","object":"chat.completion.chunk","created":1778109600,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + recall"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"3bdf0266-9c09-4ad0-ad7f-114e9ba15679","object":"chat.completion.chunk","created":1778109600,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + that"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"3bdf0266-9c09-4ad0-ad7f-114e9ba15679","object":"chat.completion.chunk","created":1778109600,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":"."},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"3bdf0266-9c09-4ad0-ad7f-114e9ba15679","object":"chat.completion.chunk","created":1778109600,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + The"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"3bdf0266-9c09-4ad0-ad7f-114e9ba15679","object":"chat.completion.chunk","created":1778109600,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + assistant"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"3bdf0266-9c09-4ad0-ad7f-114e9ba15679","object":"chat.completion.chunk","created":1778109600,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + should"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"3bdf0266-9c09-4ad0-ad7f-114e9ba15679","object":"chat.completion.chunk","created":1778109600,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + respond"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"3bdf0266-9c09-4ad0-ad7f-114e9ba15679","object":"chat.completion.chunk","created":1778109600,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + with"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"3bdf0266-9c09-4ad0-ad7f-114e9ba15679","object":"chat.completion.chunk","created":1778109600,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + the"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"3bdf0266-9c09-4ad0-ad7f-114e9ba15679","object":"chat.completion.chunk","created":1778109600,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + name"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"3bdf0266-9c09-4ad0-ad7f-114e9ba15679","object":"chat.completion.chunk","created":1778109600,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" Steve"},"logprobs":null,"finish_reason":null}],"usage":null} - data: {"id":"782ac5f5-fa5e-4798-ba4f-e5b62cfe9fb0","object":"chat.completion.chunk","created":1767213452,"model":"deepseek-chat","system_fingerprint":"fp_eaab8d114b_prod0820_fp8_kvcache","choices":[{"index":0,"delta":{"content":"."},"logprobs":null,"finish_reason":null}],"usage":null} + data: {"id":"3bdf0266-9c09-4ad0-ad7f-114e9ba15679","object":"chat.completion.chunk","created":1778109600,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":"."},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"3bdf0266-9c09-4ad0-ad7f-114e9ba15679","object":"chat.completion.chunk","created":1778109600,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":"Your","reasoning_content":null},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"3bdf0266-9c09-4ad0-ad7f-114e9ba15679","object":"chat.completion.chunk","created":1778109600,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":" + name","reasoning_content":null},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"3bdf0266-9c09-4ad0-ad7f-114e9ba15679","object":"chat.completion.chunk","created":1778109600,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":" + is","reasoning_content":null},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"3bdf0266-9c09-4ad0-ad7f-114e9ba15679","object":"chat.completion.chunk","created":1778109600,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":" + Steve","reasoning_content":null},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"3bdf0266-9c09-4ad0-ad7f-114e9ba15679","object":"chat.completion.chunk","created":1778109600,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":".","reasoning_content":null},"logprobs":null,"finish_reason":null}],"usage":null} - data: {"id":"782ac5f5-fa5e-4798-ba4f-e5b62cfe9fb0","object":"chat.completion.chunk","created":1767213452,"model":"deepseek-chat","system_fingerprint":"fp_eaab8d114b_prod0820_fp8_kvcache","choices":[{"index":0,"delta":{"content":""},"logprobs":null,"finish_reason":"stop"}],"usage":{"prompt_tokens":27,"completion_tokens":5,"total_tokens":32,"prompt_tokens_details":{"cached_tokens":0},"prompt_cache_hit_tokens":0,"prompt_cache_miss_tokens":27}} + data: {"id":"3bdf0266-9c09-4ad0-ad7f-114e9ba15679","object":"chat.completion.chunk","created":1778109600,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":"","reasoning_content":null},"logprobs":null,"finish_reason":"stop"}],"usage":{"prompt_tokens":27,"completion_tokens":46,"total_tokens":73,"prompt_tokens_details":{"cached_tokens":0},"completion_tokens_details":{"reasoning_tokens":40},"prompt_cache_hit_tokens":0,"prompt_cache_miss_tokens":27}} data: [DONE] @@ -243,7 +788,7 @@ interactions: Content-Type: - text/event-stream; charset=utf-8 Date: - - Wed, 31 Dec 2025 20:37:32 GMT + - Wed, 06 May 2026 23:20:00 GMT Server: - elb Strict-Transport-Security: @@ -251,11 +796,11 @@ interactions: Transfer-Encoding: - chunked Via: - - 1.1 8234e78a434fe9974fdac3eb5b59a35e.cloudfront.net (CloudFront) + - 1.1 0a7682e52ec0d34a2385a0d09b365afa.cloudfront.net (CloudFront) X-Amz-Cf-Id: - - TyHXrbONKVG_Un2Uuvp2IDtHpST4EZgjKrvu_41hKf4r-XG8uoVFIg== + - ABRFpDWxMzIDQDCNkvBiM-otf2qV_XrTrK9_aulc5s9mftB9oOwrYA== X-Amz-Cf-Pop: - - ORD56-P5 + - MSP50-P1 X-Cache: - Miss from cloudfront X-Content-Type-Options: @@ -267,7 +812,7 @@ interactions: vary: - origin, access-control-request-method, access-control-request-headers x-ds-trace-id: - - b3ad315eaf7c5142d7ef93c61c33bb55 + - 60718dd8d1066cfb86c3b2ffd868225b status: code: 200 message: OK diff --git a/tests/_vcr/test_provider_deepseek/test_deepseek_simple_request.yaml b/tests/_vcr/test_provider_deepseek/test_deepseek_simple_request.yaml index 07645ad3..cae31436 100644 --- a/tests/_vcr/test_provider_deepseek/test_deepseek_simple_request.yaml +++ b/tests/_vcr/test_provider_deepseek/test_deepseek_simple_request.yaml @@ -1,17 +1,17 @@ interactions: - request: body: '{"messages": [{"content": "Be as terse as possible; no punctuation", "role": - "system"}, {"content": "What is 1 + 1?", "role": "user"}], "model": "deepseek-chat", + "system"}, {"content": "What is 1 + 1?", "role": "user"}], "model": "deepseek-v4-flash", "seed": 1014, "stream": true, "stream_options": {"include_usage": true}}' headers: Accept: - application/json Accept-Encoding: - - gzip, deflate + - gzip, deflate, zstd Connection: - keep-alive Content-Length: - - '217' + - '221' Content-Type: - application/json Host: @@ -24,13 +24,103 @@ interactions: uri: https://api.deepseek.com/chat/completions response: body: - string: 'data: {"id":"9ccd6003-b631-4176-9600-d7fc4caf77e2","object":"chat.completion.chunk","created":1767213445,"model":"deepseek-chat","system_fingerprint":"fp_eaab8d114b_prod0820_fp8_kvcache","choices":[{"index":0,"delta":{"role":"assistant","content":""},"logprobs":null,"finish_reason":null}],"usage":null} + string: 'data: {"id":"40d2a894-d042-4d70-b9ce-358f668fafd2","object":"chat.completion.chunk","created":1778109594,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"role":"assistant","content":null,"reasoning_content":""},"logprobs":null,"finish_reason":null}],"usage":null} - data: {"id":"9ccd6003-b631-4176-9600-d7fc4caf77e2","object":"chat.completion.chunk","created":1767213445,"model":"deepseek-chat","system_fingerprint":"fp_eaab8d114b_prod0820_fp8_kvcache","choices":[{"index":0,"delta":{"content":"2"},"logprobs":null,"finish_reason":null}],"usage":null} + data: {"id":"40d2a894-d042-4d70-b9ce-358f668fafd2","object":"chat.completion.chunk","created":1778109594,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":"We"},"logprobs":null,"finish_reason":null}],"usage":null} - data: {"id":"9ccd6003-b631-4176-9600-d7fc4caf77e2","object":"chat.completion.chunk","created":1767213445,"model":"deepseek-chat","system_fingerprint":"fp_eaab8d114b_prod0820_fp8_kvcache","choices":[{"index":0,"delta":{"content":""},"logprobs":null,"finish_reason":"stop"}],"usage":{"prompt_tokens":21,"completion_tokens":1,"total_tokens":22,"prompt_tokens_details":{"cached_tokens":0},"prompt_cache_hit_tokens":0,"prompt_cache_miss_tokens":21}} + data: {"id":"40d2a894-d042-4d70-b9ce-358f668fafd2","object":"chat.completion.chunk","created":1778109594,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + need"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"40d2a894-d042-4d70-b9ce-358f668fafd2","object":"chat.completion.chunk","created":1778109594,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + to"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"40d2a894-d042-4d70-b9ce-358f668fafd2","object":"chat.completion.chunk","created":1778109594,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + answer"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"40d2a894-d042-4d70-b9ce-358f668fafd2","object":"chat.completion.chunk","created":1778109594,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + \""},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"40d2a894-d042-4d70-b9ce-358f668fafd2","object":"chat.completion.chunk","created":1778109594,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":"What"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"40d2a894-d042-4d70-b9ce-358f668fafd2","object":"chat.completion.chunk","created":1778109594,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + is"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"40d2a894-d042-4d70-b9ce-358f668fafd2","object":"chat.completion.chunk","created":1778109594,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + "},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"40d2a894-d042-4d70-b9ce-358f668fafd2","object":"chat.completion.chunk","created":1778109594,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":"1"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"40d2a894-d042-4d70-b9ce-358f668fafd2","object":"chat.completion.chunk","created":1778109594,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + +"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"40d2a894-d042-4d70-b9ce-358f668fafd2","object":"chat.completion.chunk","created":1778109594,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + "},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"40d2a894-d042-4d70-b9ce-358f668fafd2","object":"chat.completion.chunk","created":1778109594,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":"1"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"40d2a894-d042-4d70-b9ce-358f668fafd2","object":"chat.completion.chunk","created":1778109594,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":"?\""},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"40d2a894-d042-4d70-b9ce-358f668fafd2","object":"chat.completion.chunk","created":1778109594,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + very"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"40d2a894-d042-4d70-b9ce-358f668fafd2","object":"chat.completion.chunk","created":1778109594,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + ters"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"40d2a894-d042-4d70-b9ce-358f668fafd2","object":"chat.completion.chunk","created":1778109594,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":"ely"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"40d2a894-d042-4d70-b9ce-358f668fafd2","object":"chat.completion.chunk","created":1778109594,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":","},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"40d2a894-d042-4d70-b9ce-358f668fafd2","object":"chat.completion.chunk","created":1778109594,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + no"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"40d2a894-d042-4d70-b9ce-358f668fafd2","object":"chat.completion.chunk","created":1778109594,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + punctuation"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"40d2a894-d042-4d70-b9ce-358f668fafd2","object":"chat.completion.chunk","created":1778109594,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":"."},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"40d2a894-d042-4d70-b9ce-358f668fafd2","object":"chat.completion.chunk","created":1778109594,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + So"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"40d2a894-d042-4d70-b9ce-358f668fafd2","object":"chat.completion.chunk","created":1778109594,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + just"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"40d2a894-d042-4d70-b9ce-358f668fafd2","object":"chat.completion.chunk","created":1778109594,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + \""},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"40d2a894-d042-4d70-b9ce-358f668fafd2","object":"chat.completion.chunk","created":1778109594,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":"2"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"40d2a894-d042-4d70-b9ce-358f668fafd2","object":"chat.completion.chunk","created":1778109594,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":"\""},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"40d2a894-d042-4d70-b9ce-358f668fafd2","object":"chat.completion.chunk","created":1778109594,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":"2","reasoning_content":null},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"40d2a894-d042-4d70-b9ce-358f668fafd2","object":"chat.completion.chunk","created":1778109594,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":"","reasoning_content":null},"logprobs":null,"finish_reason":"stop"}],"usage":{"prompt_tokens":21,"completion_tokens":27,"total_tokens":48,"prompt_tokens_details":{"cached_tokens":0},"completion_tokens_details":{"reasoning_tokens":25},"prompt_cache_hit_tokens":0,"prompt_cache_miss_tokens":21}} data: [DONE] @@ -43,7 +133,7 @@ interactions: Content-Type: - text/event-stream; charset=utf-8 Date: - - Wed, 31 Dec 2025 20:37:25 GMT + - Wed, 06 May 2026 23:19:54 GMT Server: - elb Strict-Transport-Security: @@ -51,11 +141,11 @@ interactions: Transfer-Encoding: - chunked Via: - - 1.1 36e36df999d8d13e1e708941d33a5866.cloudfront.net (CloudFront) + - 1.1 b20535e1ca1b4b8a5fa76221d76a2678.cloudfront.net (CloudFront) X-Amz-Cf-Id: - - MInnLlYSaD0gzltZWYApbhzlsj2mNboVsYfm6jQDO_BkWgI5jXBgaw== + - Yl6d906N1C5IWhzzGgnTwWKoPaBg1jINcCHIJtzh-tnICjKo0qxKTA== X-Amz-Cf-Pop: - - ORD58-P1 + - MSP50-P4 X-Cache: - Miss from cloudfront X-Content-Type-Options: @@ -67,7 +157,7 @@ interactions: vary: - origin, access-control-request-method, access-control-request-headers x-ds-trace-id: - - a262a89eb186a09190c75a99bf0bb01e + - 33d243b4d9217e25a917e69d4625dba1 status: code: 200 message: OK diff --git a/tests/_vcr/test_provider_deepseek/test_deepseek_simple_streaming_request.yaml b/tests/_vcr/test_provider_deepseek/test_deepseek_simple_streaming_request.yaml index 02c3a9c5..e7762ca1 100644 --- a/tests/_vcr/test_provider_deepseek/test_deepseek_simple_streaming_request.yaml +++ b/tests/_vcr/test_provider_deepseek/test_deepseek_simple_streaming_request.yaml @@ -1,17 +1,17 @@ interactions: - request: body: '{"messages": [{"content": "Be as terse as possible; no punctuation", "role": - "system"}, {"content": "What is 1 + 1?", "role": "user"}], "model": "deepseek-chat", + "system"}, {"content": "What is 1 + 1?", "role": "user"}], "model": "deepseek-v4-flash", "seed": 1014, "stream": true, "stream_options": {"include_usage": true}}' headers: Accept: - application/json Accept-Encoding: - - gzip, deflate + - gzip, deflate, zstd Connection: - keep-alive Content-Length: - - '217' + - '221' Content-Type: - application/json Host: @@ -24,13 +24,103 @@ interactions: uri: https://api.deepseek.com/chat/completions response: body: - string: 'data: {"id":"3b0ff12f-a937-4da7-938f-451ffb6c7142","object":"chat.completion.chunk","created":1767213448,"model":"deepseek-chat","system_fingerprint":"fp_eaab8d114b_prod0820_fp8_kvcache","choices":[{"index":0,"delta":{"role":"assistant","content":""},"logprobs":null,"finish_reason":null}],"usage":null} + string: 'data: {"id":"bd5017f1-55d7-4b86-8aad-64539ef74436","object":"chat.completion.chunk","created":1778109595,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"role":"assistant","content":null,"reasoning_content":""},"logprobs":null,"finish_reason":null}],"usage":null} - data: {"id":"3b0ff12f-a937-4da7-938f-451ffb6c7142","object":"chat.completion.chunk","created":1767213448,"model":"deepseek-chat","system_fingerprint":"fp_eaab8d114b_prod0820_fp8_kvcache","choices":[{"index":0,"delta":{"content":"2"},"logprobs":null,"finish_reason":null}],"usage":null} + data: {"id":"bd5017f1-55d7-4b86-8aad-64539ef74436","object":"chat.completion.chunk","created":1778109595,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":"We"},"logprobs":null,"finish_reason":null}],"usage":null} - data: {"id":"3b0ff12f-a937-4da7-938f-451ffb6c7142","object":"chat.completion.chunk","created":1767213448,"model":"deepseek-chat","system_fingerprint":"fp_eaab8d114b_prod0820_fp8_kvcache","choices":[{"index":0,"delta":{"content":""},"logprobs":null,"finish_reason":"stop"}],"usage":{"prompt_tokens":21,"completion_tokens":1,"total_tokens":22,"prompt_tokens_details":{"cached_tokens":0},"prompt_cache_hit_tokens":0,"prompt_cache_miss_tokens":21}} + data: {"id":"bd5017f1-55d7-4b86-8aad-64539ef74436","object":"chat.completion.chunk","created":1778109595,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + need"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"bd5017f1-55d7-4b86-8aad-64539ef74436","object":"chat.completion.chunk","created":1778109595,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + to"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"bd5017f1-55d7-4b86-8aad-64539ef74436","object":"chat.completion.chunk","created":1778109595,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + answer"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"bd5017f1-55d7-4b86-8aad-64539ef74436","object":"chat.completion.chunk","created":1778109595,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + \""},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"bd5017f1-55d7-4b86-8aad-64539ef74436","object":"chat.completion.chunk","created":1778109595,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":"What"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"bd5017f1-55d7-4b86-8aad-64539ef74436","object":"chat.completion.chunk","created":1778109595,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + is"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"bd5017f1-55d7-4b86-8aad-64539ef74436","object":"chat.completion.chunk","created":1778109595,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + "},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"bd5017f1-55d7-4b86-8aad-64539ef74436","object":"chat.completion.chunk","created":1778109595,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":"1"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"bd5017f1-55d7-4b86-8aad-64539ef74436","object":"chat.completion.chunk","created":1778109595,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + +"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"bd5017f1-55d7-4b86-8aad-64539ef74436","object":"chat.completion.chunk","created":1778109595,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + "},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"bd5017f1-55d7-4b86-8aad-64539ef74436","object":"chat.completion.chunk","created":1778109595,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":"1"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"bd5017f1-55d7-4b86-8aad-64539ef74436","object":"chat.completion.chunk","created":1778109595,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":"?\""},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"bd5017f1-55d7-4b86-8aad-64539ef74436","object":"chat.completion.chunk","created":1778109595,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + very"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"bd5017f1-55d7-4b86-8aad-64539ef74436","object":"chat.completion.chunk","created":1778109595,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + ters"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"bd5017f1-55d7-4b86-8aad-64539ef74436","object":"chat.completion.chunk","created":1778109595,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":"ely"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"bd5017f1-55d7-4b86-8aad-64539ef74436","object":"chat.completion.chunk","created":1778109595,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":","},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"bd5017f1-55d7-4b86-8aad-64539ef74436","object":"chat.completion.chunk","created":1778109595,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + no"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"bd5017f1-55d7-4b86-8aad-64539ef74436","object":"chat.completion.chunk","created":1778109595,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + punctuation"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"bd5017f1-55d7-4b86-8aad-64539ef74436","object":"chat.completion.chunk","created":1778109595,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":"."},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"bd5017f1-55d7-4b86-8aad-64539ef74436","object":"chat.completion.chunk","created":1778109595,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + So"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"bd5017f1-55d7-4b86-8aad-64539ef74436","object":"chat.completion.chunk","created":1778109595,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + just"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"bd5017f1-55d7-4b86-8aad-64539ef74436","object":"chat.completion.chunk","created":1778109595,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + \""},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"bd5017f1-55d7-4b86-8aad-64539ef74436","object":"chat.completion.chunk","created":1778109595,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":"2"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"bd5017f1-55d7-4b86-8aad-64539ef74436","object":"chat.completion.chunk","created":1778109595,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":"\""},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"bd5017f1-55d7-4b86-8aad-64539ef74436","object":"chat.completion.chunk","created":1778109595,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":"2","reasoning_content":null},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"bd5017f1-55d7-4b86-8aad-64539ef74436","object":"chat.completion.chunk","created":1778109595,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":"","reasoning_content":null},"logprobs":null,"finish_reason":"stop"}],"usage":{"prompt_tokens":21,"completion_tokens":27,"total_tokens":48,"prompt_tokens_details":{"cached_tokens":0},"completion_tokens_details":{"reasoning_tokens":25},"prompt_cache_hit_tokens":0,"prompt_cache_miss_tokens":21}} data: [DONE] @@ -43,7 +133,7 @@ interactions: Content-Type: - text/event-stream; charset=utf-8 Date: - - Wed, 31 Dec 2025 20:37:28 GMT + - Wed, 06 May 2026 23:19:55 GMT Server: - elb Strict-Transport-Security: @@ -51,11 +141,11 @@ interactions: Transfer-Encoding: - chunked Via: - - 1.1 d1c0b1f525e8772ead2ffa07108a507a.cloudfront.net (CloudFront) + - 1.1 b20535e1ca1b4b8a5fa76221d76a2678.cloudfront.net (CloudFront) X-Amz-Cf-Id: - - UupM1_no4tv7vgM5IV01tqij1d9KsueqzJ4JhynR1-aJF_rb3GKSGA== + - 4AjVL0JWjjwTDi_pzcK5EpAUQkRMf-BUzjxzakuMJ0s2WUOecdELwQ== X-Amz-Cf-Pop: - - ORD56-P7 + - MSP50-P4 X-Cache: - Miss from cloudfront X-Content-Type-Options: @@ -67,7 +157,7 @@ interactions: vary: - origin, access-control-request-method, access-control-request-headers x-ds-trace-id: - - fd21acdb8321284c8941965bde4f32e9 + - 375d1eb8cb37b42ab84486d06d1bcc75 status: code: 200 message: OK diff --git a/tests/_vcr/test_provider_deepseek/test_deepseek_tool_variations.yaml b/tests/_vcr/test_provider_deepseek/test_deepseek_tool_variations.yaml index 7f8e0374..385da6b5 100644 --- a/tests/_vcr/test_provider_deepseek/test_deepseek_tool_variations.yaml +++ b/tests/_vcr/test_provider_deepseek/test_deepseek_tool_variations.yaml @@ -2,20 +2,20 @@ interactions: - request: body: '{"messages": [{"content": "Always use a tool to help you answer. Reply with ''It is ____.''.", "role": "system"}, {"content": "What''s the current - date in YYYY-MM-DD format?", "role": "user"}], "model": "deepseek-chat", "seed": - 1014, "stream": true, "stream_options": {"include_usage": true}, "tools": [{"type": - "function", "function": {"name": "get_date", "description": "Gets the current - date", "parameters": {"properties": {}, "type": "object", "additionalProperties": + date in YYYY-MM-DD format?", "role": "user"}], "model": "deepseek-v4-flash", + "seed": 1014, "stream": true, "stream_options": {"include_usage": true}, "tools": + [{"type": "function", "function": {"name": "get_date", "description": "Gets + the current date", "parameters": {"properties": {}, "type": "object", "additionalProperties": false, "required": []}}}]}' headers: Accept: - application/json Accept-Encoding: - - gzip, deflate + - gzip, deflate, zstd Connection: - keep-alive Content-Length: - - '461' + - '465' Content-Type: - application/json Host: @@ -28,49 +28,42 @@ interactions: uri: https://api.deepseek.com/chat/completions response: body: - string: 'data: {"id":"99c8d896-5c88-4ee6-9430-f21052c9daae","object":"chat.completion.chunk","created":1767213454,"model":"deepseek-chat","system_fingerprint":"fp_eaab8d114b_prod0820_fp8_kvcache","choices":[{"index":0,"delta":{"role":"assistant","content":""},"logprobs":null,"finish_reason":null}],"usage":null} + string: 'data: {"id":"e3e74eb8-f868-4384-a58b-46f44d1596e8","object":"chat.completion.chunk","created":1778109601,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"role":"assistant","content":null,"reasoning_content":""},"logprobs":null,"finish_reason":null}],"usage":null} - data: {"id":"99c8d896-5c88-4ee6-9430-f21052c9daae","object":"chat.completion.chunk","created":1767213454,"model":"deepseek-chat","system_fingerprint":"fp_eaab8d114b_prod0820_fp8_kvcache","choices":[{"index":0,"delta":{"content":"I"},"logprobs":null,"finish_reason":null}],"usage":null} + data: {"id":"e3e74eb8-f868-4384-a58b-46f44d1596e8","object":"chat.completion.chunk","created":1778109601,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":"Let"},"logprobs":null,"finish_reason":null}],"usage":null} - data: {"id":"99c8d896-5c88-4ee6-9430-f21052c9daae","object":"chat.completion.chunk","created":1767213454,"model":"deepseek-chat","system_fingerprint":"fp_eaab8d114b_prod0820_fp8_kvcache","choices":[{"index":0,"delta":{"content":"''ll"},"logprobs":null,"finish_reason":null}],"usage":null} + data: {"id":"e3e74eb8-f868-4384-a58b-46f44d1596e8","object":"chat.completion.chunk","created":1778109601,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + me"},"logprobs":null,"finish_reason":null}],"usage":null} - data: {"id":"99c8d896-5c88-4ee6-9430-f21052c9daae","object":"chat.completion.chunk","created":1767213454,"model":"deepseek-chat","system_fingerprint":"fp_eaab8d114b_prod0820_fp8_kvcache","choices":[{"index":0,"delta":{"content":" + data: {"id":"e3e74eb8-f868-4384-a58b-46f44d1596e8","object":"chat.completion.chunk","created":1778109601,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" get"},"logprobs":null,"finish_reason":null}],"usage":null} - data: {"id":"99c8d896-5c88-4ee6-9430-f21052c9daae","object":"chat.completion.chunk","created":1767213454,"model":"deepseek-chat","system_fingerprint":"fp_eaab8d114b_prod0820_fp8_kvcache","choices":[{"index":0,"delta":{"content":" + data: {"id":"e3e74eb8-f868-4384-a58b-46f44d1596e8","object":"chat.completion.chunk","created":1778109601,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" the"},"logprobs":null,"finish_reason":null}],"usage":null} - data: {"id":"99c8d896-5c88-4ee6-9430-f21052c9daae","object":"chat.completion.chunk","created":1767213454,"model":"deepseek-chat","system_fingerprint":"fp_eaab8d114b_prod0820_fp8_kvcache","choices":[{"index":0,"delta":{"content":" + data: {"id":"e3e74eb8-f868-4384-a58b-46f44d1596e8","object":"chat.completion.chunk","created":1778109601,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" current"},"logprobs":null,"finish_reason":null}],"usage":null} - data: {"id":"99c8d896-5c88-4ee6-9430-f21052c9daae","object":"chat.completion.chunk","created":1767213454,"model":"deepseek-chat","system_fingerprint":"fp_eaab8d114b_prod0820_fp8_kvcache","choices":[{"index":0,"delta":{"content":" + data: {"id":"e3e74eb8-f868-4384-a58b-46f44d1596e8","object":"chat.completion.chunk","created":1778109601,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" date"},"logprobs":null,"finish_reason":null}],"usage":null} - data: {"id":"99c8d896-5c88-4ee6-9430-f21052c9daae","object":"chat.completion.chunk","created":1767213454,"model":"deepseek-chat","system_fingerprint":"fp_eaab8d114b_prod0820_fp8_kvcache","choices":[{"index":0,"delta":{"content":" - for"},"logprobs":null,"finish_reason":null}],"usage":null} - - - data: {"id":"99c8d896-5c88-4ee6-9430-f21052c9daae","object":"chat.completion.chunk","created":1767213454,"model":"deepseek-chat","system_fingerprint":"fp_eaab8d114b_prod0820_fp8_kvcache","choices":[{"index":0,"delta":{"content":" - you"},"logprobs":null,"finish_reason":null}],"usage":null} - + data: {"id":"e3e74eb8-f868-4384-a58b-46f44d1596e8","object":"chat.completion.chunk","created":1778109601,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":"."},"logprobs":null,"finish_reason":null}],"usage":null} - data: {"id":"99c8d896-5c88-4ee6-9430-f21052c9daae","object":"chat.completion.chunk","created":1767213454,"model":"deepseek-chat","system_fingerprint":"fp_eaab8d114b_prod0820_fp8_kvcache","choices":[{"index":0,"delta":{"content":"."},"logprobs":null,"finish_reason":null}],"usage":null} + data: {"id":"e3e74eb8-f868-4384-a58b-46f44d1596e8","object":"chat.completion.chunk","created":1778109601,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"id":"call_00_tz6Vq4aG59EtpFCVbpoY3635","type":"function","function":{"name":"get_date","arguments":""}}]},"logprobs":null,"finish_reason":null}],"usage":null} - data: {"id":"99c8d896-5c88-4ee6-9430-f21052c9daae","object":"chat.completion.chunk","created":1767213454,"model":"deepseek-chat","system_fingerprint":"fp_eaab8d114b_prod0820_fp8_kvcache","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"id":"call_00_elruUwm8V5oSkMrWSpSSSivz","type":"function","function":{"name":"get_date","arguments":""}}]},"logprobs":null,"finish_reason":null}],"usage":null} + data: {"id":"e3e74eb8-f868-4384-a58b-46f44d1596e8","object":"chat.completion.chunk","created":1778109601,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"{}"}}]},"logprobs":null,"finish_reason":null}],"usage":null} - data: {"id":"99c8d896-5c88-4ee6-9430-f21052c9daae","object":"chat.completion.chunk","created":1767213454,"model":"deepseek-chat","system_fingerprint":"fp_eaab8d114b_prod0820_fp8_kvcache","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"{}"}}]},"logprobs":null,"finish_reason":null}],"usage":null} - - data: {"id":"99c8d896-5c88-4ee6-9430-f21052c9daae","object":"chat.completion.chunk","created":1767213454,"model":"deepseek-chat","system_fingerprint":"fp_eaab8d114b_prod0820_fp8_kvcache","choices":[{"index":0,"delta":{"content":""},"logprobs":null,"finish_reason":"tool_calls"}],"usage":{"prompt_tokens":322,"completion_tokens":35,"total_tokens":357,"prompt_tokens_details":{"cached_tokens":320},"prompt_cache_hit_tokens":320,"prompt_cache_miss_tokens":2}} + data: {"id":"e3e74eb8-f868-4384-a58b-46f44d1596e8","object":"chat.completion.chunk","created":1778109601,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":"","reasoning_content":null},"logprobs":null,"finish_reason":"tool_calls"}],"usage":{"prompt_tokens":297,"completion_tokens":35,"total_tokens":332,"prompt_tokens_details":{"cached_tokens":0},"completion_tokens_details":{"reasoning_tokens":7},"prompt_cache_hit_tokens":0,"prompt_cache_miss_tokens":297}} data: [DONE] @@ -83,7 +76,7 @@ interactions: Content-Type: - text/event-stream; charset=utf-8 Date: - - Wed, 31 Dec 2025 20:37:34 GMT + - Wed, 06 May 2026 23:20:01 GMT Server: - elb Strict-Transport-Security: @@ -91,11 +84,11 @@ interactions: Transfer-Encoding: - chunked Via: - - 1.1 1ac6f853cf12a9a0c5a9e479f2f18b42.cloudfront.net (CloudFront) + - 1.1 d630b006727c406f31f980b8ebec72ee.cloudfront.net (CloudFront) X-Amz-Cf-Id: - - __HN3O7j0n4OoCGvOzSLyt_hzXZV8JkLIKITyKC-bFIlMgc_Onkb2A== + - fI_Q1zrEBqI1IsSJstLa6XaiPA3GV3ZFJ4Qs0qwStLVjgCbQSpt7XQ== X-Amz-Cf-Pop: - - ORD56-P7 + - MSP50-P5 X-Cache: - Miss from cloudfront X-Content-Type-Options: @@ -107,7 +100,7 @@ interactions: vary: - origin, access-control-request-method, access-control-request-headers x-ds-trace-id: - - fb899ae72ad7819e0b486ba24561d3cc + - c8a5da8be0515e5a6fc9036787d6571f status: code: 200 message: OK @@ -115,22 +108,22 @@ interactions: body: '{"messages": [{"content": "Always use a tool to help you answer. Reply with ''It is ____.''.", "role": "system"}, {"content": "What''s the current date in YYYY-MM-DD format?", "role": "user"}, {"role": "assistant", "content": - "I''ll get the current date for you.", "tool_calls": [{"id": "call_00_elruUwm8V5oSkMrWSpSSSivz", - "function": {"name": "get_date", "arguments": "{}"}, "type": "function"}]}, - {"content": "2024-01-01", "tool_call_id": "call_00_elruUwm8V5oSkMrWSpSSSivz", - "role": "tool"}], "model": "deepseek-chat", "seed": 1014, "stream": true, "stream_options": - {"include_usage": true}, "tools": [{"type": "function", "function": {"name": - "get_date", "description": "Gets the current date", "parameters": {"properties": + "[empty string]", "tool_calls": [{"id": "call_00_tz6Vq4aG59EtpFCVbpoY3635", + "function": {"name": "get_date", "arguments": "{}"}, "type": "function"}], "reasoning_content": + "Let me get the current date."}, {"content": "2024-01-01", "tool_call_id": "call_00_tz6Vq4aG59EtpFCVbpoY3635", + "role": "tool"}], "model": "deepseek-v4-flash", "seed": 1014, "stream": true, + "stream_options": {"include_usage": true}, "tools": [{"type": "function", "function": + {"name": "get_date", "description": "Gets the current date", "parameters": {"properties": {}, "type": "object", "additionalProperties": false, "required": []}}}]}' headers: Accept: - application/json Accept-Encoding: - - gzip, deflate + - gzip, deflate, zstd Connection: - keep-alive Content-Length: - - '741' + - '776' Content-Type: - application/json Host: @@ -143,42 +136,82 @@ interactions: uri: https://api.deepseek.com/chat/completions response: body: - string: 'data: {"id":"7e2a7c8f-e869-4a9e-902f-071f0d65a358","object":"chat.completion.chunk","created":1767213457,"model":"deepseek-chat","system_fingerprint":"fp_eaab8d114b_prod0820_fp8_kvcache","choices":[{"index":0,"delta":{"role":"assistant","content":""},"logprobs":null,"finish_reason":null}],"usage":null} + string: 'data: {"id":"0847aab3-56ed-479c-8346-4f5334cfc860","object":"chat.completion.chunk","created":1778109602,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"role":"assistant","content":null,"reasoning_content":""},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"0847aab3-56ed-479c-8346-4f5334cfc860","object":"chat.completion.chunk","created":1778109602,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":"The"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"0847aab3-56ed-479c-8346-4f5334cfc860","object":"chat.completion.chunk","created":1778109602,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + current"},"logprobs":null,"finish_reason":null}],"usage":null} - data: {"id":"7e2a7c8f-e869-4a9e-902f-071f0d65a358","object":"chat.completion.chunk","created":1767213457,"model":"deepseek-chat","system_fingerprint":"fp_eaab8d114b_prod0820_fp8_kvcache","choices":[{"index":0,"delta":{"content":"It"},"logprobs":null,"finish_reason":null}],"usage":null} + data: {"id":"0847aab3-56ed-479c-8346-4f5334cfc860","object":"chat.completion.chunk","created":1778109602,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + date"},"logprobs":null,"finish_reason":null}],"usage":null} - data: {"id":"7e2a7c8f-e869-4a9e-902f-071f0d65a358","object":"chat.completion.chunk","created":1767213457,"model":"deepseek-chat","system_fingerprint":"fp_eaab8d114b_prod0820_fp8_kvcache","choices":[{"index":0,"delta":{"content":" + data: {"id":"0847aab3-56ed-479c-8346-4f5334cfc860","object":"chat.completion.chunk","created":1778109602,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" is"},"logprobs":null,"finish_reason":null}],"usage":null} - data: {"id":"7e2a7c8f-e869-4a9e-902f-071f0d65a358","object":"chat.completion.chunk","created":1767213457,"model":"deepseek-chat","system_fingerprint":"fp_eaab8d114b_prod0820_fp8_kvcache","choices":[{"index":0,"delta":{"content":" + data: {"id":"0847aab3-56ed-479c-8346-4f5334cfc860","object":"chat.completion.chunk","created":1778109602,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" "},"logprobs":null,"finish_reason":null}],"usage":null} - data: {"id":"7e2a7c8f-e869-4a9e-902f-071f0d65a358","object":"chat.completion.chunk","created":1767213457,"model":"deepseek-chat","system_fingerprint":"fp_eaab8d114b_prod0820_fp8_kvcache","choices":[{"index":0,"delta":{"content":"202"},"logprobs":null,"finish_reason":null}],"usage":null} + data: {"id":"0847aab3-56ed-479c-8346-4f5334cfc860","object":"chat.completion.chunk","created":1778109602,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":"202"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"0847aab3-56ed-479c-8346-4f5334cfc860","object":"chat.completion.chunk","created":1778109602,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":"4"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"0847aab3-56ed-479c-8346-4f5334cfc860","object":"chat.completion.chunk","created":1778109602,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":"-"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"0847aab3-56ed-479c-8346-4f5334cfc860","object":"chat.completion.chunk","created":1778109602,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":"01"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"0847aab3-56ed-479c-8346-4f5334cfc860","object":"chat.completion.chunk","created":1778109602,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":"-"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"0847aab3-56ed-479c-8346-4f5334cfc860","object":"chat.completion.chunk","created":1778109602,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":"01"},"logprobs":null,"finish_reason":null}],"usage":null} + + data: {"id":"0847aab3-56ed-479c-8346-4f5334cfc860","object":"chat.completion.chunk","created":1778109602,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":"."},"logprobs":null,"finish_reason":null}],"usage":null} - data: {"id":"7e2a7c8f-e869-4a9e-902f-071f0d65a358","object":"chat.completion.chunk","created":1767213457,"model":"deepseek-chat","system_fingerprint":"fp_eaab8d114b_prod0820_fp8_kvcache","choices":[{"index":0,"delta":{"content":"4"},"logprobs":null,"finish_reason":null}],"usage":null} + data: {"id":"0847aab3-56ed-479c-8346-4f5334cfc860","object":"chat.completion.chunk","created":1778109602,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":"It","reasoning_content":null},"logprobs":null,"finish_reason":null}],"usage":null} - data: {"id":"7e2a7c8f-e869-4a9e-902f-071f0d65a358","object":"chat.completion.chunk","created":1767213457,"model":"deepseek-chat","system_fingerprint":"fp_eaab8d114b_prod0820_fp8_kvcache","choices":[{"index":0,"delta":{"content":"-"},"logprobs":null,"finish_reason":null}],"usage":null} + data: {"id":"0847aab3-56ed-479c-8346-4f5334cfc860","object":"chat.completion.chunk","created":1778109602,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":" + is","reasoning_content":null},"logprobs":null,"finish_reason":null}],"usage":null} - data: {"id":"7e2a7c8f-e869-4a9e-902f-071f0d65a358","object":"chat.completion.chunk","created":1767213457,"model":"deepseek-chat","system_fingerprint":"fp_eaab8d114b_prod0820_fp8_kvcache","choices":[{"index":0,"delta":{"content":"01"},"logprobs":null,"finish_reason":null}],"usage":null} + data: {"id":"0847aab3-56ed-479c-8346-4f5334cfc860","object":"chat.completion.chunk","created":1778109602,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":" + ","reasoning_content":null},"logprobs":null,"finish_reason":null}],"usage":null} - data: {"id":"7e2a7c8f-e869-4a9e-902f-071f0d65a358","object":"chat.completion.chunk","created":1767213457,"model":"deepseek-chat","system_fingerprint":"fp_eaab8d114b_prod0820_fp8_kvcache","choices":[{"index":0,"delta":{"content":"-"},"logprobs":null,"finish_reason":null}],"usage":null} + data: {"id":"0847aab3-56ed-479c-8346-4f5334cfc860","object":"chat.completion.chunk","created":1778109602,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":"202","reasoning_content":null},"logprobs":null,"finish_reason":null}],"usage":null} - data: {"id":"7e2a7c8f-e869-4a9e-902f-071f0d65a358","object":"chat.completion.chunk","created":1767213457,"model":"deepseek-chat","system_fingerprint":"fp_eaab8d114b_prod0820_fp8_kvcache","choices":[{"index":0,"delta":{"content":"01"},"logprobs":null,"finish_reason":null}],"usage":null} + data: {"id":"0847aab3-56ed-479c-8346-4f5334cfc860","object":"chat.completion.chunk","created":1778109602,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":"4","reasoning_content":null},"logprobs":null,"finish_reason":null}],"usage":null} - data: {"id":"7e2a7c8f-e869-4a9e-902f-071f0d65a358","object":"chat.completion.chunk","created":1767213457,"model":"deepseek-chat","system_fingerprint":"fp_eaab8d114b_prod0820_fp8_kvcache","choices":[{"index":0,"delta":{"content":"."},"logprobs":null,"finish_reason":null}],"usage":null} + data: {"id":"0847aab3-56ed-479c-8346-4f5334cfc860","object":"chat.completion.chunk","created":1778109602,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":"-","reasoning_content":null},"logprobs":null,"finish_reason":null}],"usage":null} - data: {"id":"7e2a7c8f-e869-4a9e-902f-071f0d65a358","object":"chat.completion.chunk","created":1767213457,"model":"deepseek-chat","system_fingerprint":"fp_eaab8d114b_prod0820_fp8_kvcache","choices":[{"index":0,"delta":{"content":""},"logprobs":null,"finish_reason":"stop"}],"usage":{"prompt_tokens":380,"completion_tokens":10,"total_tokens":390,"prompt_tokens_details":{"cached_tokens":320},"prompt_cache_hit_tokens":320,"prompt_cache_miss_tokens":60}} + + data: {"id":"0847aab3-56ed-479c-8346-4f5334cfc860","object":"chat.completion.chunk","created":1778109602,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":"01","reasoning_content":null},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"0847aab3-56ed-479c-8346-4f5334cfc860","object":"chat.completion.chunk","created":1778109602,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":"-","reasoning_content":null},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"0847aab3-56ed-479c-8346-4f5334cfc860","object":"chat.completion.chunk","created":1778109602,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":"01","reasoning_content":null},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"0847aab3-56ed-479c-8346-4f5334cfc860","object":"chat.completion.chunk","created":1778109602,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":".","reasoning_content":null},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"0847aab3-56ed-479c-8346-4f5334cfc860","object":"chat.completion.chunk","created":1778109602,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":"","reasoning_content":null},"logprobs":null,"finish_reason":"stop"}],"usage":{"prompt_tokens":353,"completion_tokens":23,"total_tokens":376,"prompt_tokens_details":{"cached_tokens":256},"completion_tokens_details":{"reasoning_tokens":12},"prompt_cache_hit_tokens":256,"prompt_cache_miss_tokens":97}} data: [DONE] @@ -191,7 +224,7 @@ interactions: Content-Type: - text/event-stream; charset=utf-8 Date: - - Wed, 31 Dec 2025 20:37:37 GMT + - Wed, 06 May 2026 23:20:02 GMT Server: - elb Strict-Transport-Security: @@ -199,11 +232,11 @@ interactions: Transfer-Encoding: - chunked Via: - - 1.1 abbfc5f466d8f7d68065d30a4ce33d4c.cloudfront.net (CloudFront) + - 1.1 226cf52119d24bf9ccf5a78b16840f92.cloudfront.net (CloudFront) X-Amz-Cf-Id: - - QugeJG01o-jHyUghYf0LHWaVGzmaS8UpTF7NOvkydDcStm-tq7GOdg== + - W3trSXJZ_k-HvaetLaL3cYE5BZDyrkaES_Ayy4Nrj6tm-ZPLyGIyvA== X-Amz-Cf-Pop: - - ORD56-P12 + - MSP50-P5 X-Cache: - Miss from cloudfront X-Content-Type-Options: @@ -215,7 +248,7 @@ interactions: vary: - origin, access-control-request-method, access-control-request-headers x-ds-trace-id: - - 3305f64f240d0b8b98b14ad603c22b01 + - 9d772cdc0c0c1e26438686a58a15d59f status: code: 200 message: OK @@ -223,24 +256,25 @@ interactions: body: '{"messages": [{"content": "Always use a tool to help you answer. Reply with ''It is ____.''.", "role": "system"}, {"content": "What''s the current date in YYYY-MM-DD format?", "role": "user"}, {"role": "assistant", "content": - "I''ll get the current date for you.", "tool_calls": [{"id": "call_00_elruUwm8V5oSkMrWSpSSSivz", - "function": {"name": "get_date", "arguments": "{}"}, "type": "function"}]}, - {"content": "2024-01-01", "tool_call_id": "call_00_elruUwm8V5oSkMrWSpSSSivz", - "role": "tool"}, {"role": "assistant", "content": "It is 2024-01-01."}, {"content": - "What month is it? Provide the full name.", "role": "user"}], "model": "deepseek-chat", - "seed": 1014, "stream": true, "stream_options": {"include_usage": true}, "tools": - [{"type": "function", "function": {"name": "get_date", "description": "Gets - the current date", "parameters": {"properties": {}, "type": "object", "additionalProperties": - false, "required": []}}}]}' + "[empty string]", "tool_calls": [{"id": "call_00_tz6Vq4aG59EtpFCVbpoY3635", + "function": {"name": "get_date", "arguments": "{}"}, "type": "function"}], "reasoning_content": + "Let me get the current date."}, {"content": "2024-01-01", "tool_call_id": "call_00_tz6Vq4aG59EtpFCVbpoY3635", + "role": "tool"}, {"role": "assistant", "content": "It is 2024-01-01.", "reasoning_content": + "The current date is 2024-01-01."}, {"content": "What month is it? Provide the + full name.", "role": "user"}], "model": "deepseek-v4-flash", "seed": 1014, "stream": + true, "stream_options": {"include_usage": true}, "tools": [{"type": "function", + "function": {"name": "get_date", "description": "Gets the current date", "parameters": + {"properties": {}, "type": "object", "additionalProperties": false, "required": + []}}}]}' headers: Accept: - application/json Accept-Encoding: - - gzip, deflate + - gzip, deflate, zstd Connection: - keep-alive Content-Length: - - '861' + - '950' Content-Type: - application/json Host: @@ -253,95 +287,83 @@ interactions: uri: https://api.deepseek.com/chat/completions response: body: - string: 'data: {"id":"66b38a26-11ab-43aa-b964-db0d75af2c90","object":"chat.completion.chunk","created":1767213459,"model":"deepseek-chat","system_fingerprint":"fp_eaab8d114b_prod0820_fp8_kvcache","choices":[{"index":0,"delta":{"role":"assistant","content":""},"logprobs":null,"finish_reason":null}],"usage":null} - - - data: {"id":"66b38a26-11ab-43aa-b964-db0d75af2c90","object":"chat.completion.chunk","created":1767213459,"model":"deepseek-chat","system_fingerprint":"fp_eaab8d114b_prod0820_fp8_kvcache","choices":[{"index":0,"delta":{"content":"Looking"},"logprobs":null,"finish_reason":null}],"usage":null} + string: 'data: {"id":"031add69-aff1-4043-adc2-77564d8c0861","object":"chat.completion.chunk","created":1778109603,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"role":"assistant","content":null,"reasoning_content":""},"logprobs":null,"finish_reason":null}],"usage":null} - data: {"id":"66b38a26-11ab-43aa-b964-db0d75af2c90","object":"chat.completion.chunk","created":1767213459,"model":"deepseek-chat","system_fingerprint":"fp_eaab8d114b_prod0820_fp8_kvcache","choices":[{"index":0,"delta":{"content":" - at"},"logprobs":null,"finish_reason":null}],"usage":null} - - - data: {"id":"66b38a26-11ab-43aa-b964-db0d75af2c90","object":"chat.completion.chunk","created":1767213459,"model":"deepseek-chat","system_fingerprint":"fp_eaab8d114b_prod0820_fp8_kvcache","choices":[{"index":0,"delta":{"content":" - the"},"logprobs":null,"finish_reason":null}],"usage":null} + data: {"id":"031add69-aff1-4043-adc2-77564d8c0861","object":"chat.completion.chunk","created":1778109603,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":"The"},"logprobs":null,"finish_reason":null}],"usage":null} - data: {"id":"66b38a26-11ab-43aa-b964-db0d75af2c90","object":"chat.completion.chunk","created":1767213459,"model":"deepseek-chat","system_fingerprint":"fp_eaab8d114b_prod0820_fp8_kvcache","choices":[{"index":0,"delta":{"content":" + data: {"id":"031add69-aff1-4043-adc2-77564d8c0861","object":"chat.completion.chunk","created":1778109603,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" date"},"logprobs":null,"finish_reason":null}],"usage":null} - data: {"id":"66b38a26-11ab-43aa-b964-db0d75af2c90","object":"chat.completion.chunk","created":1767213459,"model":"deepseek-chat","system_fingerprint":"fp_eaab8d114b_prod0820_fp8_kvcache","choices":[{"index":0,"delta":{"content":" - we"},"logprobs":null,"finish_reason":null}],"usage":null} - - - data: {"id":"66b38a26-11ab-43aa-b964-db0d75af2c90","object":"chat.completion.chunk","created":1767213459,"model":"deepseek-chat","system_fingerprint":"fp_eaab8d114b_prod0820_fp8_kvcache","choices":[{"index":0,"delta":{"content":" - just"},"logprobs":null,"finish_reason":null}],"usage":null} + data: {"id":"031add69-aff1-4043-adc2-77564d8c0861","object":"chat.completion.chunk","created":1778109603,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + is"},"logprobs":null,"finish_reason":null}],"usage":null} - data: {"id":"66b38a26-11ab-43aa-b964-db0d75af2c90","object":"chat.completion.chunk","created":1767213459,"model":"deepseek-chat","system_fingerprint":"fp_eaab8d114b_prod0820_fp8_kvcache","choices":[{"index":0,"delta":{"content":" - retrieved"},"logprobs":null,"finish_reason":null}],"usage":null} + data: {"id":"031add69-aff1-4043-adc2-77564d8c0861","object":"chat.completion.chunk","created":1778109603,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + "},"logprobs":null,"finish_reason":null}],"usage":null} - data: {"id":"66b38a26-11ab-43aa-b964-db0d75af2c90","object":"chat.completion.chunk","created":1767213459,"model":"deepseek-chat","system_fingerprint":"fp_eaab8d114b_prod0820_fp8_kvcache","choices":[{"index":0,"delta":{"content":" - ("},"logprobs":null,"finish_reason":null}],"usage":null} + data: {"id":"031add69-aff1-4043-adc2-77564d8c0861","object":"chat.completion.chunk","created":1778109603,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":"202"},"logprobs":null,"finish_reason":null}],"usage":null} - data: {"id":"66b38a26-11ab-43aa-b964-db0d75af2c90","object":"chat.completion.chunk","created":1767213459,"model":"deepseek-chat","system_fingerprint":"fp_eaab8d114b_prod0820_fp8_kvcache","choices":[{"index":0,"delta":{"content":"202"},"logprobs":null,"finish_reason":null}],"usage":null} + data: {"id":"031add69-aff1-4043-adc2-77564d8c0861","object":"chat.completion.chunk","created":1778109603,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":"4"},"logprobs":null,"finish_reason":null}],"usage":null} - data: {"id":"66b38a26-11ab-43aa-b964-db0d75af2c90","object":"chat.completion.chunk","created":1767213459,"model":"deepseek-chat","system_fingerprint":"fp_eaab8d114b_prod0820_fp8_kvcache","choices":[{"index":0,"delta":{"content":"4"},"logprobs":null,"finish_reason":null}],"usage":null} + data: {"id":"031add69-aff1-4043-adc2-77564d8c0861","object":"chat.completion.chunk","created":1778109603,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":"-"},"logprobs":null,"finish_reason":null}],"usage":null} - data: {"id":"66b38a26-11ab-43aa-b964-db0d75af2c90","object":"chat.completion.chunk","created":1767213459,"model":"deepseek-chat","system_fingerprint":"fp_eaab8d114b_prod0820_fp8_kvcache","choices":[{"index":0,"delta":{"content":"-"},"logprobs":null,"finish_reason":null}],"usage":null} + data: {"id":"031add69-aff1-4043-adc2-77564d8c0861","object":"chat.completion.chunk","created":1778109603,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":"01"},"logprobs":null,"finish_reason":null}],"usage":null} - data: {"id":"66b38a26-11ab-43aa-b964-db0d75af2c90","object":"chat.completion.chunk","created":1767213459,"model":"deepseek-chat","system_fingerprint":"fp_eaab8d114b_prod0820_fp8_kvcache","choices":[{"index":0,"delta":{"content":"01"},"logprobs":null,"finish_reason":null}],"usage":null} + data: {"id":"031add69-aff1-4043-adc2-77564d8c0861","object":"chat.completion.chunk","created":1778109603,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":"-"},"logprobs":null,"finish_reason":null}],"usage":null} - data: {"id":"66b38a26-11ab-43aa-b964-db0d75af2c90","object":"chat.completion.chunk","created":1767213459,"model":"deepseek-chat","system_fingerprint":"fp_eaab8d114b_prod0820_fp8_kvcache","choices":[{"index":0,"delta":{"content":"-"},"logprobs":null,"finish_reason":null}],"usage":null} + data: {"id":"031add69-aff1-4043-adc2-77564d8c0861","object":"chat.completion.chunk","created":1778109603,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":"01"},"logprobs":null,"finish_reason":null}],"usage":null} - data: {"id":"66b38a26-11ab-43aa-b964-db0d75af2c90","object":"chat.completion.chunk","created":1767213459,"model":"deepseek-chat","system_fingerprint":"fp_eaab8d114b_prod0820_fp8_kvcache","choices":[{"index":0,"delta":{"content":"01"},"logprobs":null,"finish_reason":null}],"usage":null} + data: {"id":"031add69-aff1-4043-adc2-77564d8c0861","object":"chat.completion.chunk","created":1778109603,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":","},"logprobs":null,"finish_reason":null}],"usage":null} - data: {"id":"66b38a26-11ab-43aa-b964-db0d75af2c90","object":"chat.completion.chunk","created":1767213459,"model":"deepseek-chat","system_fingerprint":"fp_eaab8d114b_prod0820_fp8_kvcache","choices":[{"index":0,"delta":{"content":"),"},"logprobs":null,"finish_reason":null}],"usage":null} + data: {"id":"031add69-aff1-4043-adc2-77564d8c0861","object":"chat.completion.chunk","created":1778109603,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + so"},"logprobs":null,"finish_reason":null}],"usage":null} - data: {"id":"66b38a26-11ab-43aa-b964-db0d75af2c90","object":"chat.completion.chunk","created":1767213459,"model":"deepseek-chat","system_fingerprint":"fp_eaab8d114b_prod0820_fp8_kvcache","choices":[{"index":0,"delta":{"content":" + data: {"id":"031add69-aff1-4043-adc2-77564d8c0861","object":"chat.completion.chunk","created":1778109603,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" the"},"logprobs":null,"finish_reason":null}],"usage":null} - data: {"id":"66b38a26-11ab-43aa-b964-db0d75af2c90","object":"chat.completion.chunk","created":1767213459,"model":"deepseek-chat","system_fingerprint":"fp_eaab8d114b_prod0820_fp8_kvcache","choices":[{"index":0,"delta":{"content":" + data: {"id":"031add69-aff1-4043-adc2-77564d8c0861","object":"chat.completion.chunk","created":1778109603,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" month"},"logprobs":null,"finish_reason":null}],"usage":null} - data: {"id":"66b38a26-11ab-43aa-b964-db0d75af2c90","object":"chat.completion.chunk","created":1767213459,"model":"deepseek-chat","system_fingerprint":"fp_eaab8d114b_prod0820_fp8_kvcache","choices":[{"index":0,"delta":{"content":" + data: {"id":"031add69-aff1-4043-adc2-77564d8c0861","object":"chat.completion.chunk","created":1778109603,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" is"},"logprobs":null,"finish_reason":null}],"usage":null} - data: {"id":"66b38a26-11ab-43aa-b964-db0d75af2c90","object":"chat.completion.chunk","created":1767213459,"model":"deepseek-chat","system_fingerprint":"fp_eaab8d114b_prod0820_fp8_kvcache","choices":[{"index":0,"delta":{"content":" + data: {"id":"031add69-aff1-4043-adc2-77564d8c0861","object":"chat.completion.chunk","created":1778109603,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" January"},"logprobs":null,"finish_reason":null}],"usage":null} - data: {"id":"66b38a26-11ab-43aa-b964-db0d75af2c90","object":"chat.completion.chunk","created":1767213459,"model":"deepseek-chat","system_fingerprint":"fp_eaab8d114b_prod0820_fp8_kvcache","choices":[{"index":0,"delta":{"content":".\n\n"},"logprobs":null,"finish_reason":null}],"usage":null} + data: {"id":"031add69-aff1-4043-adc2-77564d8c0861","object":"chat.completion.chunk","created":1778109603,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":"."},"logprobs":null,"finish_reason":null}],"usage":null} - data: {"id":"66b38a26-11ab-43aa-b964-db0d75af2c90","object":"chat.completion.chunk","created":1767213459,"model":"deepseek-chat","system_fingerprint":"fp_eaab8d114b_prod0820_fp8_kvcache","choices":[{"index":0,"delta":{"content":"It"},"logprobs":null,"finish_reason":null}],"usage":null} + data: {"id":"031add69-aff1-4043-adc2-77564d8c0861","object":"chat.completion.chunk","created":1778109603,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":"It","reasoning_content":null},"logprobs":null,"finish_reason":null}],"usage":null} - data: {"id":"66b38a26-11ab-43aa-b964-db0d75af2c90","object":"chat.completion.chunk","created":1767213459,"model":"deepseek-chat","system_fingerprint":"fp_eaab8d114b_prod0820_fp8_kvcache","choices":[{"index":0,"delta":{"content":" - is"},"logprobs":null,"finish_reason":null}],"usage":null} + data: {"id":"031add69-aff1-4043-adc2-77564d8c0861","object":"chat.completion.chunk","created":1778109603,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":" + is","reasoning_content":null},"logprobs":null,"finish_reason":null}],"usage":null} - data: {"id":"66b38a26-11ab-43aa-b964-db0d75af2c90","object":"chat.completion.chunk","created":1767213459,"model":"deepseek-chat","system_fingerprint":"fp_eaab8d114b_prod0820_fp8_kvcache","choices":[{"index":0,"delta":{"content":" - January"},"logprobs":null,"finish_reason":null}],"usage":null} + data: {"id":"031add69-aff1-4043-adc2-77564d8c0861","object":"chat.completion.chunk","created":1778109603,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":" + January","reasoning_content":null},"logprobs":null,"finish_reason":null}],"usage":null} - data: {"id":"66b38a26-11ab-43aa-b964-db0d75af2c90","object":"chat.completion.chunk","created":1767213459,"model":"deepseek-chat","system_fingerprint":"fp_eaab8d114b_prod0820_fp8_kvcache","choices":[{"index":0,"delta":{"content":"."},"logprobs":null,"finish_reason":null}],"usage":null} + data: {"id":"031add69-aff1-4043-adc2-77564d8c0861","object":"chat.completion.chunk","created":1778109603,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":".","reasoning_content":null},"logprobs":null,"finish_reason":null}],"usage":null} - data: {"id":"66b38a26-11ab-43aa-b964-db0d75af2c90","object":"chat.completion.chunk","created":1767213459,"model":"deepseek-chat","system_fingerprint":"fp_eaab8d114b_prod0820_fp8_kvcache","choices":[{"index":0,"delta":{"content":""},"logprobs":null,"finish_reason":"stop"}],"usage":{"prompt_tokens":404,"completion_tokens":24,"total_tokens":428,"prompt_tokens_details":{"cached_tokens":384},"prompt_cache_hit_tokens":384,"prompt_cache_miss_tokens":20}} + data: {"id":"031add69-aff1-4043-adc2-77564d8c0861","object":"chat.completion.chunk","created":1778109603,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":"","reasoning_content":null},"logprobs":null,"finish_reason":"stop"}],"usage":{"prompt_tokens":390,"completion_tokens":22,"total_tokens":412,"prompt_tokens_details":{"cached_tokens":256},"completion_tokens_details":{"reasoning_tokens":17},"prompt_cache_hit_tokens":256,"prompt_cache_miss_tokens":134}} data: [DONE] @@ -354,7 +376,7 @@ interactions: Content-Type: - text/event-stream; charset=utf-8 Date: - - Wed, 31 Dec 2025 20:37:39 GMT + - Wed, 06 May 2026 23:20:04 GMT Server: - elb Strict-Transport-Security: @@ -362,11 +384,11 @@ interactions: Transfer-Encoding: - chunked Via: - - 1.1 aa0d09de09eddb73eaba0baf7abb2f12.cloudfront.net (CloudFront) + - 1.1 e4a1b215f0728b11f6cb12177912e2ee.cloudfront.net (CloudFront) X-Amz-Cf-Id: - - WxrBvfYN9Jz5tSuIX-1M_UxMYDCVyMbjn3dH8b40JipbHiM97LIFFg== + - oVyfKofKdrzJhJ7XpAr2d06S06MsA-H-IiCh9n0E2myLzSjwcVv0kg== X-Amz-Cf-Pop: - - ORD58-P10 + - MSP50-P4 X-Cache: - Miss from cloudfront X-Content-Type-Options: @@ -378,7 +400,7 @@ interactions: vary: - origin, access-control-request-method, access-control-request-headers x-ds-trace-id: - - 720326051734b5f23c363cfa6a482684 + - b4b0ee0b97034db59934ea5977de51b7 status: code: 200 message: OK diff --git a/tests/_vcr/test_provider_deepseek/test_deepseek_tool_variations_async.yaml b/tests/_vcr/test_provider_deepseek/test_deepseek_tool_variations_async.yaml index 010cb577..0ddb1de1 100644 --- a/tests/_vcr/test_provider_deepseek/test_deepseek_tool_variations_async.yaml +++ b/tests/_vcr/test_provider_deepseek/test_deepseek_tool_variations_async.yaml @@ -2,7 +2,7 @@ interactions: - request: body: '{"messages": [{"content": "Be very terse, not even punctuation.", "role": "system"}, {"content": "What''s the current date in YYYY-MM-DD format?", "role": - "user"}], "model": "deepseek-chat", "seed": 1014, "stream": true, "stream_options": + "user"}], "model": "deepseek-v4-flash", "seed": 1014, "stream": true, "stream_options": {"include_usage": true}, "tools": [{"type": "function", "function": {"name": "get_current_date", "description": "Gets the current date", "parameters": {"properties": {}, "type": "object", "additionalProperties": false, "required": []}}}]}' @@ -10,11 +10,11 @@ interactions: Accept: - application/json Accept-Encoding: - - gzip, deflate + - gzip, deflate, zstd Connection: - keep-alive Content-Length: - - '442' + - '446' Content-Type: - application/json Host: @@ -27,16 +27,96 @@ interactions: uri: https://api.deepseek.com/chat/completions response: body: - string: 'data: {"id":"30698763-49f0-4f43-af79-fa4b02283b9e","object":"chat.completion.chunk","created":1767213461,"model":"deepseek-chat","system_fingerprint":"fp_eaab8d114b_prod0820_fp8_kvcache","choices":[{"index":0,"delta":{"role":"assistant","content":""},"logprobs":null,"finish_reason":null}],"usage":null} + string: 'data: {"id":"056a4073-fecd-4f7a-b572-61d201671b67","object":"chat.completion.chunk","created":1778109605,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"role":"assistant","content":null,"reasoning_content":""},"logprobs":null,"finish_reason":null}],"usage":null} - data: {"id":"30698763-49f0-4f43-af79-fa4b02283b9e","object":"chat.completion.chunk","created":1767213461,"model":"deepseek-chat","system_fingerprint":"fp_eaab8d114b_prod0820_fp8_kvcache","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"id":"call_00_aS7lSUY7psjXXNQbcOFOGXbf","type":"function","function":{"name":"get_current_date","arguments":""}}]},"logprobs":null,"finish_reason":null}],"usage":null} + data: {"id":"056a4073-fecd-4f7a-b572-61d201671b67","object":"chat.completion.chunk","created":1778109605,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":"The"},"logprobs":null,"finish_reason":null}],"usage":null} - data: {"id":"30698763-49f0-4f43-af79-fa4b02283b9e","object":"chat.completion.chunk","created":1767213461,"model":"deepseek-chat","system_fingerprint":"fp_eaab8d114b_prod0820_fp8_kvcache","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"{}"}}]},"logprobs":null,"finish_reason":null}],"usage":null} + data: {"id":"056a4073-fecd-4f7a-b572-61d201671b67","object":"chat.completion.chunk","created":1778109605,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + user"},"logprobs":null,"finish_reason":null}],"usage":null} - data: {"id":"30698763-49f0-4f43-af79-fa4b02283b9e","object":"chat.completion.chunk","created":1767213461,"model":"deepseek-chat","system_fingerprint":"fp_eaab8d114b_prod0820_fp8_kvcache","choices":[{"index":0,"delta":{"content":""},"logprobs":null,"finish_reason":"tool_calls"}],"usage":{"prompt_tokens":315,"completion_tokens":28,"total_tokens":343,"prompt_tokens_details":{"cached_tokens":256},"prompt_cache_hit_tokens":256,"prompt_cache_miss_tokens":59}} + data: {"id":"056a4073-fecd-4f7a-b572-61d201671b67","object":"chat.completion.chunk","created":1778109605,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + wants"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"056a4073-fecd-4f7a-b572-61d201671b67","object":"chat.completion.chunk","created":1778109605,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + the"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"056a4073-fecd-4f7a-b572-61d201671b67","object":"chat.completion.chunk","created":1778109605,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + current"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"056a4073-fecd-4f7a-b572-61d201671b67","object":"chat.completion.chunk","created":1778109605,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + date"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"056a4073-fecd-4f7a-b572-61d201671b67","object":"chat.completion.chunk","created":1778109605,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + in"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"056a4073-fecd-4f7a-b572-61d201671b67","object":"chat.completion.chunk","created":1778109605,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + Y"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"056a4073-fecd-4f7a-b572-61d201671b67","object":"chat.completion.chunk","created":1778109605,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":"YY"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"056a4073-fecd-4f7a-b572-61d201671b67","object":"chat.completion.chunk","created":1778109605,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":"Y"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"056a4073-fecd-4f7a-b572-61d201671b67","object":"chat.completion.chunk","created":1778109605,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":"-MM"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"056a4073-fecd-4f7a-b572-61d201671b67","object":"chat.completion.chunk","created":1778109605,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":"-D"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"056a4073-fecd-4f7a-b572-61d201671b67","object":"chat.completion.chunk","created":1778109605,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":"D"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"056a4073-fecd-4f7a-b572-61d201671b67","object":"chat.completion.chunk","created":1778109605,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + format"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"056a4073-fecd-4f7a-b572-61d201671b67","object":"chat.completion.chunk","created":1778109605,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":"."},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"056a4073-fecd-4f7a-b572-61d201671b67","object":"chat.completion.chunk","created":1778109605,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + Let"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"056a4073-fecd-4f7a-b572-61d201671b67","object":"chat.completion.chunk","created":1778109605,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + me"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"056a4073-fecd-4f7a-b572-61d201671b67","object":"chat.completion.chunk","created":1778109605,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + get"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"056a4073-fecd-4f7a-b572-61d201671b67","object":"chat.completion.chunk","created":1778109605,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + the"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"056a4073-fecd-4f7a-b572-61d201671b67","object":"chat.completion.chunk","created":1778109605,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + current"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"056a4073-fecd-4f7a-b572-61d201671b67","object":"chat.completion.chunk","created":1778109605,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + date"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"056a4073-fecd-4f7a-b572-61d201671b67","object":"chat.completion.chunk","created":1778109605,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":"."},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"056a4073-fecd-4f7a-b572-61d201671b67","object":"chat.completion.chunk","created":1778109605,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"id":"call_00_Goi29zurEz35bAcAgwDP4901","type":"function","function":{"name":"get_current_date","arguments":""}}]},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"056a4073-fecd-4f7a-b572-61d201671b67","object":"chat.completion.chunk","created":1778109605,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"{}"}}]},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"056a4073-fecd-4f7a-b572-61d201671b67","object":"chat.completion.chunk","created":1778109605,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":"","reasoning_content":null},"logprobs":null,"finish_reason":"tool_calls"}],"usage":{"prompt_tokens":290,"completion_tokens":51,"total_tokens":341,"prompt_tokens_details":{"cached_tokens":0},"completion_tokens_details":{"reasoning_tokens":22},"prompt_cache_hit_tokens":0,"prompt_cache_miss_tokens":290}} data: [DONE] @@ -49,7 +129,7 @@ interactions: Content-Type: - text/event-stream; charset=utf-8 Date: - - Wed, 31 Dec 2025 20:37:41 GMT + - Wed, 06 May 2026 23:20:05 GMT Server: - elb Strict-Transport-Security: @@ -57,11 +137,11 @@ interactions: Transfer-Encoding: - chunked Via: - - 1.1 940cdb96b98814bdf1b5ba0576dda2b4.cloudfront.net (CloudFront) + - 1.1 7cc224be3664680df186a12039cdc424.cloudfront.net (CloudFront) X-Amz-Cf-Id: - - QEQeDAmIdgKX-fRvKLhX6hLvTE0gUzLVQ0b0CQWSrRXO_avmvqXzdQ== + - oeif-4TRN3e7Akkm-cvvc3cQylR4W-viPfcihmZuwV7mOgDHtpSKiw== X-Amz-Cf-Pop: - - ORD56-P12 + - MSP50-P2 X-Cache: - Miss from cloudfront X-Content-Type-Options: @@ -73,7 +153,7 @@ interactions: vary: - origin, access-control-request-method, access-control-request-headers x-ds-trace-id: - - 8499a9403478449d388818bf39eac872 + - 4bf270eb3120848a1292351c69346f0d status: code: 200 message: OK @@ -81,22 +161,23 @@ interactions: body: '{"messages": [{"content": "Be very terse, not even punctuation.", "role": "system"}, {"content": "What''s the current date in YYYY-MM-DD format?", "role": "user"}, {"role": "assistant", "content": "[empty string]", "tool_calls": [{"id": - "call_00_aS7lSUY7psjXXNQbcOFOGXbf", "function": {"name": "get_current_date", - "arguments": "{}"}, "type": "function"}]}, {"content": "2024-01-01", "tool_call_id": - "call_00_aS7lSUY7psjXXNQbcOFOGXbf", "role": "tool"}], "model": "deepseek-chat", - "seed": 1014, "stream": true, "stream_options": {"include_usage": true}, "tools": - [{"type": "function", "function": {"name": "get_current_date", "description": - "Gets the current date", "parameters": {"properties": {}, "type": "object", - "additionalProperties": false, "required": []}}}]}' + "call_00_Goi29zurEz35bAcAgwDP4901", "function": {"name": "get_current_date", + "arguments": "{}"}, "type": "function"}], "reasoning_content": "The user wants + the current date in YYYY-MM-DD format. Let me get the current date."}, {"content": + "2024-01-01", "tool_call_id": "call_00_Goi29zurEz35bAcAgwDP4901", "role": "tool"}], + "model": "deepseek-v4-flash", "seed": 1014, "stream": true, "stream_options": + {"include_usage": true}, "tools": [{"type": "function", "function": {"name": + "get_current_date", "description": "Gets the current date", "parameters": {"properties": + {}, "type": "object", "additionalProperties": false, "required": []}}}]}' headers: Accept: - application/json Accept-Encoding: - - gzip, deflate + - gzip, deflate, zstd Connection: - keep-alive Content-Length: - - '710' + - '819' Content-Type: - application/json Host: @@ -109,28 +190,68 @@ interactions: uri: https://api.deepseek.com/chat/completions response: body: - string: 'data: {"id":"c620bd2d-3806-4b6e-93ed-b4208d2b3394","object":"chat.completion.chunk","created":1767213463,"model":"deepseek-chat","system_fingerprint":"fp_eaab8d114b_prod0820_fp8_kvcache","choices":[{"index":0,"delta":{"role":"assistant","content":""},"logprobs":null,"finish_reason":null}],"usage":null} + string: 'data: {"id":"54ed958c-574c-40d8-a9e6-5595affedc74","object":"chat.completion.chunk","created":1778109606,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"role":"assistant","content":null,"reasoning_content":""},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"54ed958c-574c-40d8-a9e6-5595affedc74","object":"chat.completion.chunk","created":1778109606,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":"The"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"54ed958c-574c-40d8-a9e6-5595affedc74","object":"chat.completion.chunk","created":1778109606,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + current"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"54ed958c-574c-40d8-a9e6-5595affedc74","object":"chat.completion.chunk","created":1778109606,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + date"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"54ed958c-574c-40d8-a9e6-5595affedc74","object":"chat.completion.chunk","created":1778109606,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + is"},"logprobs":null,"finish_reason":null}],"usage":null} + + data: {"id":"54ed958c-574c-40d8-a9e6-5595affedc74","object":"chat.completion.chunk","created":1778109606,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + "},"logprobs":null,"finish_reason":null}],"usage":null} - data: {"id":"c620bd2d-3806-4b6e-93ed-b4208d2b3394","object":"chat.completion.chunk","created":1767213463,"model":"deepseek-chat","system_fingerprint":"fp_eaab8d114b_prod0820_fp8_kvcache","choices":[{"index":0,"delta":{"content":"202"},"logprobs":null,"finish_reason":null}],"usage":null} + data: {"id":"54ed958c-574c-40d8-a9e6-5595affedc74","object":"chat.completion.chunk","created":1778109606,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":"202"},"logprobs":null,"finish_reason":null}],"usage":null} - data: {"id":"c620bd2d-3806-4b6e-93ed-b4208d2b3394","object":"chat.completion.chunk","created":1767213463,"model":"deepseek-chat","system_fingerprint":"fp_eaab8d114b_prod0820_fp8_kvcache","choices":[{"index":0,"delta":{"content":"4"},"logprobs":null,"finish_reason":null}],"usage":null} + data: {"id":"54ed958c-574c-40d8-a9e6-5595affedc74","object":"chat.completion.chunk","created":1778109606,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":"4"},"logprobs":null,"finish_reason":null}],"usage":null} - data: {"id":"c620bd2d-3806-4b6e-93ed-b4208d2b3394","object":"chat.completion.chunk","created":1767213463,"model":"deepseek-chat","system_fingerprint":"fp_eaab8d114b_prod0820_fp8_kvcache","choices":[{"index":0,"delta":{"content":"-"},"logprobs":null,"finish_reason":null}],"usage":null} + data: {"id":"54ed958c-574c-40d8-a9e6-5595affedc74","object":"chat.completion.chunk","created":1778109606,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":"-"},"logprobs":null,"finish_reason":null}],"usage":null} - data: {"id":"c620bd2d-3806-4b6e-93ed-b4208d2b3394","object":"chat.completion.chunk","created":1767213463,"model":"deepseek-chat","system_fingerprint":"fp_eaab8d114b_prod0820_fp8_kvcache","choices":[{"index":0,"delta":{"content":"01"},"logprobs":null,"finish_reason":null}],"usage":null} + data: {"id":"54ed958c-574c-40d8-a9e6-5595affedc74","object":"chat.completion.chunk","created":1778109606,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":"01"},"logprobs":null,"finish_reason":null}],"usage":null} - data: {"id":"c620bd2d-3806-4b6e-93ed-b4208d2b3394","object":"chat.completion.chunk","created":1767213463,"model":"deepseek-chat","system_fingerprint":"fp_eaab8d114b_prod0820_fp8_kvcache","choices":[{"index":0,"delta":{"content":"-"},"logprobs":null,"finish_reason":null}],"usage":null} + data: {"id":"54ed958c-574c-40d8-a9e6-5595affedc74","object":"chat.completion.chunk","created":1778109606,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":"-"},"logprobs":null,"finish_reason":null}],"usage":null} - data: {"id":"c620bd2d-3806-4b6e-93ed-b4208d2b3394","object":"chat.completion.chunk","created":1767213463,"model":"deepseek-chat","system_fingerprint":"fp_eaab8d114b_prod0820_fp8_kvcache","choices":[{"index":0,"delta":{"content":"01"},"logprobs":null,"finish_reason":null}],"usage":null} + data: {"id":"54ed958c-574c-40d8-a9e6-5595affedc74","object":"chat.completion.chunk","created":1778109606,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":"01"},"logprobs":null,"finish_reason":null}],"usage":null} - data: {"id":"c620bd2d-3806-4b6e-93ed-b4208d2b3394","object":"chat.completion.chunk","created":1767213463,"model":"deepseek-chat","system_fingerprint":"fp_eaab8d114b_prod0820_fp8_kvcache","choices":[{"index":0,"delta":{"content":""},"logprobs":null,"finish_reason":"stop"}],"usage":{"prompt_tokens":369,"completion_tokens":6,"total_tokens":375,"prompt_tokens_details":{"cached_tokens":320},"prompt_cache_hit_tokens":320,"prompt_cache_miss_tokens":49}} + + data: {"id":"54ed958c-574c-40d8-a9e6-5595affedc74","object":"chat.completion.chunk","created":1778109606,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":"."},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"54ed958c-574c-40d8-a9e6-5595affedc74","object":"chat.completion.chunk","created":1778109606,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":"202","reasoning_content":null},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"54ed958c-574c-40d8-a9e6-5595affedc74","object":"chat.completion.chunk","created":1778109606,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":"4","reasoning_content":null},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"54ed958c-574c-40d8-a9e6-5595affedc74","object":"chat.completion.chunk","created":1778109606,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":"-","reasoning_content":null},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"54ed958c-574c-40d8-a9e6-5595affedc74","object":"chat.completion.chunk","created":1778109606,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":"01","reasoning_content":null},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"54ed958c-574c-40d8-a9e6-5595affedc74","object":"chat.completion.chunk","created":1778109606,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":"-","reasoning_content":null},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"54ed958c-574c-40d8-a9e6-5595affedc74","object":"chat.completion.chunk","created":1778109606,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":"01","reasoning_content":null},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"54ed958c-574c-40d8-a9e6-5595affedc74","object":"chat.completion.chunk","created":1778109606,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":"","reasoning_content":null},"logprobs":null,"finish_reason":"stop"}],"usage":{"prompt_tokens":362,"completion_tokens":19,"total_tokens":381,"prompt_tokens_details":{"cached_tokens":256},"completion_tokens_details":{"reasoning_tokens":12},"prompt_cache_hit_tokens":256,"prompt_cache_miss_tokens":106}} data: [DONE] @@ -143,7 +264,7 @@ interactions: Content-Type: - text/event-stream; charset=utf-8 Date: - - Wed, 31 Dec 2025 20:37:43 GMT + - Wed, 06 May 2026 23:20:06 GMT Server: - elb Strict-Transport-Security: @@ -151,11 +272,11 @@ interactions: Transfer-Encoding: - chunked Via: - - 1.1 14ca6979b940f5fd45af2dc49a83388c.cloudfront.net (CloudFront) + - 1.1 97e8e227b90924f2a815136b7b9bd374.cloudfront.net (CloudFront) X-Amz-Cf-Id: - - WQlzLwXIUpp-51yoj5zv0Y2YYOrAK7WG0JkZhmPS2YSdtxpVjv5lnQ== + - wr47zVzgyFqcWKL1G26mheYo56Gqeijfta9dgNSpcL67BWPraNlMtQ== X-Amz-Cf-Pop: - - ORD58-P8 + - MSP50-P4 X-Cache: - Miss from cloudfront X-Content-Type-Options: @@ -167,14 +288,14 @@ interactions: vary: - origin, access-control-request-method, access-control-request-headers x-ds-trace-id: - - a9e6de111f266f4aeb1961c525e7cf40 + - 5258c08943c435ee944a6070a3b021ae status: code: 200 message: OK - request: body: '{"messages": [{"content": "Be very terse, not even punctuation.", "role": "system"}, {"content": "What''s the current date in YYYY-MM-DD format?", "role": - "user"}], "model": "deepseek-chat", "seed": 1014, "stream": true, "stream_options": + "user"}], "model": "deepseek-v4-flash", "seed": 1014, "stream": true, "stream_options": {"include_usage": true}, "tools": [{"type": "function", "function": {"name": "get_current_date2", "description": "Gets the current date", "parameters": {"properties": {}, "type": "object", "additionalProperties": false, "required": []}}}]}' @@ -182,11 +303,11 @@ interactions: Accept: - application/json Accept-Encoding: - - gzip, deflate + - gzip, deflate, zstd Connection: - keep-alive Content-Length: - - '443' + - '447' Content-Type: - application/json Host: @@ -199,16 +320,112 @@ interactions: uri: https://api.deepseek.com/chat/completions response: body: - string: 'data: {"id":"aa480cd1-2f20-404b-a5b3-e99fdf1d270c","object":"chat.completion.chunk","created":1767213465,"model":"deepseek-chat","system_fingerprint":"fp_eaab8d114b_prod0820_fp8_kvcache","choices":[{"index":0,"delta":{"role":"assistant","content":""},"logprobs":null,"finish_reason":null}],"usage":null} + string: 'data: {"id":"dd7368f2-f46e-4257-8543-9f7f4542b257","object":"chat.completion.chunk","created":1778109607,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"role":"assistant","content":null,"reasoning_content":""},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"dd7368f2-f46e-4257-8543-9f7f4542b257","object":"chat.completion.chunk","created":1778109607,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":"The"},"logprobs":null,"finish_reason":null}],"usage":null} + + data: {"id":"dd7368f2-f46e-4257-8543-9f7f4542b257","object":"chat.completion.chunk","created":1778109607,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + user"},"logprobs":null,"finish_reason":null}],"usage":null} - data: {"id":"aa480cd1-2f20-404b-a5b3-e99fdf1d270c","object":"chat.completion.chunk","created":1767213465,"model":"deepseek-chat","system_fingerprint":"fp_eaab8d114b_prod0820_fp8_kvcache","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"id":"call_00_rPpBqZlL4SAX5QSgc2OtnxOu","type":"function","function":{"name":"get_current_date2","arguments":""}}]},"logprobs":null,"finish_reason":null}],"usage":null} + data: {"id":"dd7368f2-f46e-4257-8543-9f7f4542b257","object":"chat.completion.chunk","created":1778109607,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + wants"},"logprobs":null,"finish_reason":null}],"usage":null} - data: {"id":"aa480cd1-2f20-404b-a5b3-e99fdf1d270c","object":"chat.completion.chunk","created":1767213465,"model":"deepseek-chat","system_fingerprint":"fp_eaab8d114b_prod0820_fp8_kvcache","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"{}"}}]},"logprobs":null,"finish_reason":null}],"usage":null} + data: {"id":"dd7368f2-f46e-4257-8543-9f7f4542b257","object":"chat.completion.chunk","created":1778109607,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + the"},"logprobs":null,"finish_reason":null}],"usage":null} - data: {"id":"aa480cd1-2f20-404b-a5b3-e99fdf1d270c","object":"chat.completion.chunk","created":1767213465,"model":"deepseek-chat","system_fingerprint":"fp_eaab8d114b_prod0820_fp8_kvcache","choices":[{"index":0,"delta":{"content":""},"logprobs":null,"finish_reason":"tool_calls"}],"usage":{"prompt_tokens":316,"completion_tokens":29,"total_tokens":345,"prompt_tokens_details":{"cached_tokens":256},"prompt_cache_hit_tokens":256,"prompt_cache_miss_tokens":60}} + + data: {"id":"dd7368f2-f46e-4257-8543-9f7f4542b257","object":"chat.completion.chunk","created":1778109607,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + current"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"dd7368f2-f46e-4257-8543-9f7f4542b257","object":"chat.completion.chunk","created":1778109607,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + date"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"dd7368f2-f46e-4257-8543-9f7f4542b257","object":"chat.completion.chunk","created":1778109607,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + in"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"dd7368f2-f46e-4257-8543-9f7f4542b257","object":"chat.completion.chunk","created":1778109607,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + Y"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"dd7368f2-f46e-4257-8543-9f7f4542b257","object":"chat.completion.chunk","created":1778109607,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":"YY"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"dd7368f2-f46e-4257-8543-9f7f4542b257","object":"chat.completion.chunk","created":1778109607,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":"Y"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"dd7368f2-f46e-4257-8543-9f7f4542b257","object":"chat.completion.chunk","created":1778109607,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":"-MM"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"dd7368f2-f46e-4257-8543-9f7f4542b257","object":"chat.completion.chunk","created":1778109607,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":"-D"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"dd7368f2-f46e-4257-8543-9f7f4542b257","object":"chat.completion.chunk","created":1778109607,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":"D"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"dd7368f2-f46e-4257-8543-9f7f4542b257","object":"chat.completion.chunk","created":1778109607,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + format"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"dd7368f2-f46e-4257-8543-9f7f4542b257","object":"chat.completion.chunk","created":1778109607,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":"."},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"dd7368f2-f46e-4257-8543-9f7f4542b257","object":"chat.completion.chunk","created":1778109607,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + Let"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"dd7368f2-f46e-4257-8543-9f7f4542b257","object":"chat.completion.chunk","created":1778109607,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + me"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"dd7368f2-f46e-4257-8543-9f7f4542b257","object":"chat.completion.chunk","created":1778109607,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + call"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"dd7368f2-f46e-4257-8543-9f7f4542b257","object":"chat.completion.chunk","created":1778109607,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + the"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"dd7368f2-f46e-4257-8543-9f7f4542b257","object":"chat.completion.chunk","created":1778109607,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + function"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"dd7368f2-f46e-4257-8543-9f7f4542b257","object":"chat.completion.chunk","created":1778109607,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + to"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"dd7368f2-f46e-4257-8543-9f7f4542b257","object":"chat.completion.chunk","created":1778109607,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + get"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"dd7368f2-f46e-4257-8543-9f7f4542b257","object":"chat.completion.chunk","created":1778109607,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + the"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"dd7368f2-f46e-4257-8543-9f7f4542b257","object":"chat.completion.chunk","created":1778109607,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + current"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"dd7368f2-f46e-4257-8543-9f7f4542b257","object":"chat.completion.chunk","created":1778109607,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + date"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"dd7368f2-f46e-4257-8543-9f7f4542b257","object":"chat.completion.chunk","created":1778109607,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":"."},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"dd7368f2-f46e-4257-8543-9f7f4542b257","object":"chat.completion.chunk","created":1778109607,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"id":"call_00_dTTMe84vrYVi0IrrxM172804","type":"function","function":{"name":"get_current_date2","arguments":""}}]},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"dd7368f2-f46e-4257-8543-9f7f4542b257","object":"chat.completion.chunk","created":1778109607,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"{}"}}]},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"dd7368f2-f46e-4257-8543-9f7f4542b257","object":"chat.completion.chunk","created":1778109607,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":"","reasoning_content":null},"logprobs":null,"finish_reason":"tool_calls"}],"usage":{"prompt_tokens":291,"completion_tokens":56,"total_tokens":347,"prompt_tokens_details":{"cached_tokens":0},"completion_tokens_details":{"reasoning_tokens":26},"prompt_cache_hit_tokens":0,"prompt_cache_miss_tokens":291}} data: [DONE] @@ -221,7 +438,7 @@ interactions: Content-Type: - text/event-stream; charset=utf-8 Date: - - Wed, 31 Dec 2025 20:37:45 GMT + - Wed, 06 May 2026 23:20:07 GMT Server: - elb Strict-Transport-Security: @@ -229,11 +446,11 @@ interactions: Transfer-Encoding: - chunked Via: - - 1.1 637c6cc074af01d1a5246ebd8a4d3158.cloudfront.net (CloudFront) + - 1.1 4a81e797858c0f27fe8d88b4dc2782c0.cloudfront.net (CloudFront) X-Amz-Cf-Id: - - Vl_hYai1s9FCGH45u5md02XVPM6Hwm-fS6VJiQPfXYcDHk4WAsABkw== + - FHM6IHMqQxqEIjxFAfeCbp3TcU2Mki0DW1ucXF5ptMeDNcAE80syqg== X-Amz-Cf-Pop: - - ORD58-P6 + - MSP50-P4 X-Cache: - Miss from cloudfront X-Content-Type-Options: @@ -245,7 +462,7 @@ interactions: vary: - origin, access-control-request-method, access-control-request-headers x-ds-trace-id: - - 8754774e98bcea9bfff4dc1259e6f603 + - 7cc40139d06a3af14cee4e1d0912d7f8 status: code: 200 message: OK @@ -253,22 +470,24 @@ interactions: body: '{"messages": [{"content": "Be very terse, not even punctuation.", "role": "system"}, {"content": "What''s the current date in YYYY-MM-DD format?", "role": "user"}, {"role": "assistant", "content": "[empty string]", "tool_calls": [{"id": - "call_00_rPpBqZlL4SAX5QSgc2OtnxOu", "function": {"name": "get_current_date2", - "arguments": "{}"}, "type": "function"}]}, {"content": "2024-01-01", "tool_call_id": - "call_00_rPpBqZlL4SAX5QSgc2OtnxOu", "role": "tool"}], "model": "deepseek-chat", - "seed": 1014, "stream": true, "stream_options": {"include_usage": true}, "tools": - [{"type": "function", "function": {"name": "get_current_date2", "description": - "Gets the current date", "parameters": {"properties": {}, "type": "object", - "additionalProperties": false, "required": []}}}]}' + "call_00_dTTMe84vrYVi0IrrxM172804", "function": {"name": "get_current_date2", + "arguments": "{}"}, "type": "function"}], "reasoning_content": "The user wants + the current date in YYYY-MM-DD format. Let me call the function to get the current + date."}, {"content": "2024-01-01", "tool_call_id": "call_00_dTTMe84vrYVi0IrrxM172804", + "role": "tool"}], "model": "deepseek-v4-flash", "seed": 1014, "stream": true, + "stream_options": {"include_usage": true}, "tools": [{"type": "function", "function": + {"name": "get_current_date2", "description": "Gets the current date", "parameters": + {"properties": {}, "type": "object", "additionalProperties": false, "required": + []}}}]}' headers: Accept: - application/json Accept-Encoding: - - gzip, deflate + - gzip, deflate, zstd Connection: - keep-alive Content-Length: - - '712' + - '842' Content-Type: - application/json Host: @@ -281,28 +500,68 @@ interactions: uri: https://api.deepseek.com/chat/completions response: body: - string: 'data: {"id":"77a0b1eb-4d93-4470-90b6-8ff6bfad3993","object":"chat.completion.chunk","created":1767213468,"model":"deepseek-chat","system_fingerprint":"fp_eaab8d114b_prod0820_fp8_kvcache","choices":[{"index":0,"delta":{"role":"assistant","content":""},"logprobs":null,"finish_reason":null}],"usage":null} + string: 'data: {"id":"3116ca7e-c035-4e66-b2e1-e2274b73686e","object":"chat.completion.chunk","created":1778109609,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"role":"assistant","content":null,"reasoning_content":""},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"3116ca7e-c035-4e66-b2e1-e2274b73686e","object":"chat.completion.chunk","created":1778109609,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":"The"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"3116ca7e-c035-4e66-b2e1-e2274b73686e","object":"chat.completion.chunk","created":1778109609,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + current"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"3116ca7e-c035-4e66-b2e1-e2274b73686e","object":"chat.completion.chunk","created":1778109609,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + date"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"3116ca7e-c035-4e66-b2e1-e2274b73686e","object":"chat.completion.chunk","created":1778109609,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + is"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"3116ca7e-c035-4e66-b2e1-e2274b73686e","object":"chat.completion.chunk","created":1778109609,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":" + "},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"3116ca7e-c035-4e66-b2e1-e2274b73686e","object":"chat.completion.chunk","created":1778109609,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":"202"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"3116ca7e-c035-4e66-b2e1-e2274b73686e","object":"chat.completion.chunk","created":1778109609,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":"4"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"3116ca7e-c035-4e66-b2e1-e2274b73686e","object":"chat.completion.chunk","created":1778109609,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":"-"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"3116ca7e-c035-4e66-b2e1-e2274b73686e","object":"chat.completion.chunk","created":1778109609,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":"01"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"3116ca7e-c035-4e66-b2e1-e2274b73686e","object":"chat.completion.chunk","created":1778109609,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":"-"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"3116ca7e-c035-4e66-b2e1-e2274b73686e","object":"chat.completion.chunk","created":1778109609,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":"01"},"logprobs":null,"finish_reason":null}],"usage":null} + + + data: {"id":"3116ca7e-c035-4e66-b2e1-e2274b73686e","object":"chat.completion.chunk","created":1778109609,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":null,"reasoning_content":"."},"logprobs":null,"finish_reason":null}],"usage":null} - data: {"id":"77a0b1eb-4d93-4470-90b6-8ff6bfad3993","object":"chat.completion.chunk","created":1767213468,"model":"deepseek-chat","system_fingerprint":"fp_eaab8d114b_prod0820_fp8_kvcache","choices":[{"index":0,"delta":{"content":"202"},"logprobs":null,"finish_reason":null}],"usage":null} + data: {"id":"3116ca7e-c035-4e66-b2e1-e2274b73686e","object":"chat.completion.chunk","created":1778109609,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":"202","reasoning_content":null},"logprobs":null,"finish_reason":null}],"usage":null} - data: {"id":"77a0b1eb-4d93-4470-90b6-8ff6bfad3993","object":"chat.completion.chunk","created":1767213468,"model":"deepseek-chat","system_fingerprint":"fp_eaab8d114b_prod0820_fp8_kvcache","choices":[{"index":0,"delta":{"content":"4"},"logprobs":null,"finish_reason":null}],"usage":null} + data: {"id":"3116ca7e-c035-4e66-b2e1-e2274b73686e","object":"chat.completion.chunk","created":1778109609,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":"4","reasoning_content":null},"logprobs":null,"finish_reason":null}],"usage":null} - data: {"id":"77a0b1eb-4d93-4470-90b6-8ff6bfad3993","object":"chat.completion.chunk","created":1767213468,"model":"deepseek-chat","system_fingerprint":"fp_eaab8d114b_prod0820_fp8_kvcache","choices":[{"index":0,"delta":{"content":"-"},"logprobs":null,"finish_reason":null}],"usage":null} + data: {"id":"3116ca7e-c035-4e66-b2e1-e2274b73686e","object":"chat.completion.chunk","created":1778109609,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":"-","reasoning_content":null},"logprobs":null,"finish_reason":null}],"usage":null} - data: {"id":"77a0b1eb-4d93-4470-90b6-8ff6bfad3993","object":"chat.completion.chunk","created":1767213468,"model":"deepseek-chat","system_fingerprint":"fp_eaab8d114b_prod0820_fp8_kvcache","choices":[{"index":0,"delta":{"content":"01"},"logprobs":null,"finish_reason":null}],"usage":null} + data: {"id":"3116ca7e-c035-4e66-b2e1-e2274b73686e","object":"chat.completion.chunk","created":1778109609,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":"01","reasoning_content":null},"logprobs":null,"finish_reason":null}],"usage":null} - data: {"id":"77a0b1eb-4d93-4470-90b6-8ff6bfad3993","object":"chat.completion.chunk","created":1767213468,"model":"deepseek-chat","system_fingerprint":"fp_eaab8d114b_prod0820_fp8_kvcache","choices":[{"index":0,"delta":{"content":"-"},"logprobs":null,"finish_reason":null}],"usage":null} + data: {"id":"3116ca7e-c035-4e66-b2e1-e2274b73686e","object":"chat.completion.chunk","created":1778109609,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":"-","reasoning_content":null},"logprobs":null,"finish_reason":null}],"usage":null} - data: {"id":"77a0b1eb-4d93-4470-90b6-8ff6bfad3993","object":"chat.completion.chunk","created":1767213468,"model":"deepseek-chat","system_fingerprint":"fp_eaab8d114b_prod0820_fp8_kvcache","choices":[{"index":0,"delta":{"content":"01"},"logprobs":null,"finish_reason":null}],"usage":null} + data: {"id":"3116ca7e-c035-4e66-b2e1-e2274b73686e","object":"chat.completion.chunk","created":1778109609,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":"01","reasoning_content":null},"logprobs":null,"finish_reason":null}],"usage":null} - data: {"id":"77a0b1eb-4d93-4470-90b6-8ff6bfad3993","object":"chat.completion.chunk","created":1767213468,"model":"deepseek-chat","system_fingerprint":"fp_eaab8d114b_prod0820_fp8_kvcache","choices":[{"index":0,"delta":{"content":""},"logprobs":null,"finish_reason":"stop"}],"usage":{"prompt_tokens":371,"completion_tokens":6,"total_tokens":377,"prompt_tokens_details":{"cached_tokens":320},"prompt_cache_hit_tokens":320,"prompt_cache_miss_tokens":51}} + data: {"id":"3116ca7e-c035-4e66-b2e1-e2274b73686e","object":"chat.completion.chunk","created":1778109609,"model":"deepseek-v4-flash","system_fingerprint":"fp_058df29938_prod0820_fp8_kvcache_20260402","choices":[{"index":0,"delta":{"content":"","reasoning_content":null},"logprobs":null,"finish_reason":"stop"}],"usage":{"prompt_tokens":368,"completion_tokens":19,"total_tokens":387,"prompt_tokens_details":{"cached_tokens":256},"completion_tokens_details":{"reasoning_tokens":12},"prompt_cache_hit_tokens":256,"prompt_cache_miss_tokens":112}} data: [DONE] @@ -315,7 +574,7 @@ interactions: Content-Type: - text/event-stream; charset=utf-8 Date: - - Wed, 31 Dec 2025 20:37:48 GMT + - Wed, 06 May 2026 23:20:09 GMT Server: - elb Strict-Transport-Security: @@ -323,11 +582,11 @@ interactions: Transfer-Encoding: - chunked Via: - - 1.1 70f841ede092a93ba19fe490030c1712.cloudfront.net (CloudFront) + - 1.1 660af1cfeb9eef39a7218ff26d43d2da.cloudfront.net (CloudFront) X-Amz-Cf-Id: - - FUsgQr5M3uQQUjVIkW5XAkKtJbadBn5h_bSUOUuj09AwFwOZVVgQVA== + - oxbyDrMYGZvOfH_6rvGE-F4MiBHKvw_lHvDz2GA1oFQQHvspsD8Ctw== X-Amz-Cf-Pop: - - ORD58-P4 + - MSP50-P4 X-Cache: - Miss from cloudfront X-Content-Type-Options: @@ -339,7 +598,7 @@ interactions: vary: - origin, access-control-request-method, access-control-request-headers x-ds-trace-id: - - 70d2d94c1264e7fe6e77dfb12d417636 + - 927749098fc58841f6eccdb4bb133ef0 status: code: 200 message: OK From 8289352b880ed2c579929841054fd0b332c236b7 Mon Sep 17 00:00:00 2001 From: Carson Date: Wed, 6 May 2026 19:00:38 -0500 Subject: [PATCH 3/3] docs: add changelog entries for reasoning_content support --- CHANGELOG.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0d0bb9de..52ff0bc6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,8 +9,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [UNRELEASED] +### New features + +* `ChatOpenAICompletions()` (and providers built on it like `ChatDeepSeek`, `ChatOpenRouter`, etc.) now extracts `reasoning_content` from model responses as `ContentThinking` objects. A new `preserve_thinking` parameter controls whether reasoning content is sent back to the API in multi-turn conversations; it defaults to `False` but is set to `True` for `ChatDeepSeek` (required for V4 tool-calling) and `ChatOpenRouter` (recommended for quality). (#295) + ### Improvements +* `ChatDeepSeek()` now defaults to `deepseek-v4-flash` (the deprecated `deepseek-chat` alias will be removed 2026-07-24). (#295) * Updated default models across all providers to current generation: (#292) * Anthropic: `claude-sonnet-4-6` * Bedrock: `us.anthropic.claude-sonnet-4-6`