Skip to content

Commit

Permalink
fix: enable tool format for deepseek provider
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikBjare committed Jan 21, 2025
1 parent 254d1b6 commit 7fda8bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gptme/llm/llm_openai.py
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ def _spec2tool(spec: ToolSpec, model: ModelMeta) -> "ChatCompletionToolParam":
)
description = description[:1024]

if model.provider in ["openai", "azure", "openrouter", "local"]:
if model.provider in ["openai", "azure", "openrouter", "deepseek", "local"]:
return {
"type": "function",
"function": {
Expand Down

0 comments on commit 7fda8bd

Please sign in to comment.