fixes in deepseek api call
This commit is contained in:
parent
a11f16f5fc
commit
00f4d4e861
1 changed files with 1 additions and 2 deletions
|
|
@ -41,12 +41,11 @@ class ModelChain:
|
||||||
{"role": "user", "content": user_input}
|
{"role": "user", "content": user_input}
|
||||||
],
|
],
|
||||||
max_tokens=1,
|
max_tokens=1,
|
||||||
temperature=0.7, # Added temperature
|
|
||||||
stream=False # Explicitly set stream to False
|
stream=False # Explicitly set stream to False
|
||||||
)
|
)
|
||||||
|
|
||||||
# Debug print
|
# Debug print
|
||||||
st.write("Raw response from DeepSeek:", deepseek_response)
|
st.write("Raw response by DeepSeek:", deepseek_response)
|
||||||
|
|
||||||
reasoning_content = deepseek_response.choices[0].message.reasoning_content
|
reasoning_content = deepseek_response.choices[0].message.reasoning_content
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue