-
Notifications
You must be signed in to change notification settings - Fork 6.9k
Load models from static file #8153
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
Conversation
| pub async fn refresh_available_models(&self, config: &Config) -> CoreResult<()> { | ||
| if !config.features.enabled(Feature::RemoteModels) { | ||
| if !config.features.enabled(Feature::RemoteModels) | ||
| || self.auth_manager.get_auth_mode() == Some(AuthMode::ApiKey) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we test the change first behind the feature?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd say let's get more feedback
| } | ||
|
|
||
| #[test] | ||
| fn bundled_models_json_roundtrips() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
check that it actually roundtrips, deserialize/serialize check the same content. You'll catch fields that we missed that way.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
okay
…o static-fallback
…o static-fallback
Uh oh!
There was an error while loading. Please reload this page.