Skip to content

create_multi_prompt_optimizer incompatible with LM Studio #176

Description

@Utanapishtim31

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions