Skip to content

Add Deepseek provider - #33

Merged
Revantark merged 9 commits into
mainfrom
deepseek
Oct 6, 2026
Merged

Revantark merged 9 commits into
mainfrom
deepseek

Conversation

@Revantark

Copy link
Copy Markdown
Owner

No description provided.

DeepSeek requires reasoning_content round-tripped when the request
carries tools. Keep reasoning on the LLM message; codecs decide whether
to serialize it. The canonical wire format still never sends it.
Chat-completions API with a DeepSeek codec: maps reasoning effort to
DeepSeek's thinking toggle and reasoning_effort, round-trips
reasoning_content when tools are present (required by the API), and maps
prompt_cache_hit_tokens to cached_tokens. Model catalog comes from
GET /models.

Authenticated via DEEPSEEK_API_KEY; key validation and catalog fetch
both use /models.
It was hardcoded to None and never set; the never-re-sent guarantee is
structural now. The response-side StreamDelta field stays, since providers
return reasoning details in responses. The canonical test now asserts no
reasoning key of any shape is re-sent.
@Revantark
Revantark merged commit abd23ba into main Oct 6, 2026
6 checks passed
@Revantark
Revantark deleted the deepseek branch October 6, 2026 08:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant