fix: remove completion_args from agent conversation request

Mistral rejects completion_args when agent_id is set. The agent's
own configuration (set in Mistral UI) controls response format.
This commit is contained in:
2026-03-05 21:37:37 +01:00
parent 209efe5309
commit 41876cd698

View File

@@ -59,9 +59,6 @@ func (c *Client) Pass1(ctx context.Context, prompt string) (PassResult, error) {
AgentID: c.agentSimple,
Inputs: conversation.TextInputs(prompt),
Store: &storeFalse,
CompletionArgs: &conversation.CompletionArgs{
ResponseFormat: &chat.ResponseFormat{Type: "text"},
},
})
if err != nil {
return PassResult{}, fmt.Errorf("pass1 conversation: %w", err)