mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-09 21:29:11 +00:00
Fix identifying deepseek r1 model to process its thinking tokens
This commit is contained in:
@@ -325,7 +325,7 @@ async def chat_completion_with_backoff(
|
|||||||
elif (
|
elif (
|
||||||
model_name.startswith("deepseek-chat")
|
model_name.startswith("deepseek-chat")
|
||||||
or model_name.startswith("deepseek-reasoner")
|
or model_name.startswith("deepseek-reasoner")
|
||||||
or "deepseek-r1" in model_name
|
or "deepseek-r1" in model_name.lower()
|
||||||
):
|
):
|
||||||
# Official Deepseek models and some inference APIs like vLLM return structured thinking output.
|
# Official Deepseek models and some inference APIs like vLLM return structured thinking output.
|
||||||
# Others like DeepInfra return it in response stream.
|
# Others like DeepInfra return it in response stream.
|
||||||
|
|||||||
Reference in New Issue
Block a user