Skip to content

Incorrectly recognizing OpenAI models based on API url #298

@adampolak

Description

@adampolak

The logic that sets the variable is_openai_reasoning_model in line 92 in llm/openai.py does not take into account the existence of regional APIs. For instance, I have to set https://eu.api.openai.com/v1 as the api_base in the config yaml file – because of the data residency laws – and hence OpenEvolve thinks I'm not using an OpenAI and hence passes it a wrong set of parameters (max_tokens vs max_completion_tokens).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions