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

Add anthropic:messages and replicate:mistral as default providers to web ui #562

Merged
merged 1 commit into from
Mar 17, 2024

Conversation

matt-hendrick
Copy link
Contributor

The replicate mistral config options mirror their API defaults (listed here).

The expected format for the anthropic messages ID (anthropic:messages:claude...) didn't quite work with the pre-existing method of generating label text, which assumed that the second result from splitting on : would be the appropriate descriptive label text. I added an if check to handle that specific case, but let me know if you'd prefer an alternate implementation there (or if there is anything else you'd prefer done differently).

@typpo
Copy link
Collaborator

typpo commented Mar 17, 2024

Nice change, thank you Matt!

@typpo typpo merged commit 47e23e6 into promptfoo:main Mar 17, 2024
9 checks passed
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

2 participants