When calling create_multi_prompt_optimizer() with a local model running on LM Studio, the invokation fails with the error message {"error":"Invalid tool_choice type: 'object'. Supported string values: none, auto, required"}.
This occurs in /prompts/optimization.py during the two calls to create_extractor().
LM Studio does not accept tool names for the field 'tool_choice', but since there is only one tool defined in the field 'tools', using tool_choice='required' is equivalent and compatible with LM Studio.
When calling create_multi_prompt_optimizer() with a local model running on LM Studio, the invokation fails with the error message {"error":"Invalid tool_choice type: 'object'. Supported string values: none, auto, required"}.
This occurs in /prompts/optimization.py during the two calls to create_extractor().
LM Studio does not accept tool names for the field 'tool_choice', but since there is only one tool defined in the field 'tools', using tool_choice='required' is equivalent and compatible with LM Studio.