Skip to content

How to use an Anthropic model for evals without unsetting OPENAI_API_KEY? #136

@holdenmatt

Description

@holdenmatt

I wanted to use an Anthropic Claude model for all my evals, but a mix of openai/anthropic models for my generation tasks.

But I couldn't find a way to do this.

If I use Claude for both the generation and eval models it works using my local ANTHROPIC_API_KEY, but only if I don't have an OPENAI_API_KEY set. But if I unset this, then I can't use openai for generation tasks or elsewhere in my app.

Not sure what the best solution is, but it seems odd that you'd need to unset OPENAI_API_KEY to use a different eval model?

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