|
|
@@ -69,10 +69,10 @@ class LLMBackend:
|
|
|
chat_params["audio"] = audio
|
|
|
if modalities:
|
|
|
chat_params["modalities"] = modalities
|
|
|
- if temperature:
|
|
|
- chat_params["temperature"] = temperature
|
|
|
- if top_p and temperature is None:
|
|
|
+ if top_p:
|
|
|
chat_params["top_p"] = top_p
|
|
|
+ if temperature and top_p is None:
|
|
|
+ chat_params["temperature"] = temperature
|
|
|
if tools:
|
|
|
chat_params["tools"] = tools
|
|
|
chat_params["parallel_tool_calls"] = parallel_tool_calls
|
|
|
@@ -85,8 +85,8 @@ class LLMBackend:
|
|
|
for message in chat_params["messages"]:
|
|
|
if "content" not in message:
|
|
|
message["content"] = ""
|
|
|
- elif "content" in message and "type" in message["content"] and message["content"]["type"] == "text":
|
|
|
- message["content"] = message["content"]["text"]
|
|
|
+ #elif "content" in message and "type" in message["content"] and message["content"]["type"] == "text":
|
|
|
+ # message["content"] = message["content"]["text"]
|
|
|
|
|
|
chat_params["timeout"] = 300
|
|
|
|