fixes in deepseek api call

This commit is contained in:
Madhu 2025-01-28 23:58:42 +05:30
parent a11f16f5fc
commit 00f4d4e861

View file

@ -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