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

fix: improve performance for checking for configured model providers #828

Merged

Conversation

thedadams
Copy link
Contributor

This change simplifies the process for checking for configured model providers. When listing model providers, instead of making a call to reveal each credential, this change will make one call to list credentials.

A side effect is that empty environment variables are not treated as "configured" while there were not previously. Care is taken to remove empty environment variables from the credential before saving it.

@thedadams thedadams force-pushed the better-model-provider-checks branch from 9ca1b5c to e798ac2 Compare December 10, 2024 14:07
This change simplifies the process for checking for configured model
providers. When listing model providers, instead of making a call to
reveal each credential, this change will make one call to list
credentials.

A side effect is that empty environment variables are not treated as
"configured" while there were not previously. Care is taken to remove
empty environment variables from the credential before saving it.

Signed-off-by: Donnie Adams <[email protected]>
@thedadams thedadams force-pushed the better-model-provider-checks branch from e798ac2 to d841401 Compare December 10, 2024 14:08
@thedadams thedadams merged commit f6d8aba into obot-platform:main Dec 10, 2024
@thedadams thedadams deleted the better-model-provider-checks branch December 10, 2024 14:15
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.

1 participant