We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a04f57e commit 4b1c58bCopy full SHA for 4b1c58b
eval_protocol/quickstart/svg_agent/vercel_svg_server/api/init.py
@@ -45,8 +45,8 @@ def do_POST(self):
45
46
# Prepare completion arguments
47
completion_kwargs = {
48
- "model": req.model,
49
"messages": req.messages,
+ **req.completion_params,
50
}
51
52
# Add tools if present
@@ -70,7 +70,7 @@ def do_POST(self):
70
# Create OpenAI client
71
client = OpenAI(base_url=req.model_base_url, api_key=api_key)
72
73
- logger.info(f"Sending completion request to model {req.model}")
+ logger.info(f"Sending completion request to model {req.completion_params.get('model')}")
74
75
# Make the model call
76
completion = client.chat.completions.create(**completion_kwargs)
0 commit comments