Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add label field to provider options #563

Merged
merged 2 commits into from
Mar 17, 2024
Merged

Conversation

typpo
Copy link
Collaborator

@typpo typpo commented Mar 17, 2024

Right now when you want to change the label on a provider, you have to use this funky construction with a map:

providers:
  - openai:gpt-3.5-turbo-0613:
      id: openai-gpt-3.5-turbo-lowtemp
      config:
        temperature: 0

This change adds a label field, which allows you to use the regular list of objects

  - id: openai:gpt-3.5-turbo-0613
    label: openai-gpt-3.5-turbo-lowtemp
    config:
      temperature: 0

Eventually I'd like to get rid of support for the map, because it's unnecessary and inconsistent.

Related to #511

@typpo typpo merged commit 5efb6fe into main Mar 17, 2024
18 checks passed
@typpo typpo deleted the provider-label-simple branch March 17, 2024 16:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant