ModelsForProvider returns static models registered for a provider by plugins.
(provider string)
| 125 | |
| 126 | // ModelsForProvider returns static models registered for a provider by plugins. |
| 127 | func (h *Host) ModelsForProvider(provider string) []ModelInfo { |
| 128 | if h == nil || h.inner == nil { |
| 129 | return nil |
| 130 | } |
| 131 | return registryModelsToPluginModels(h.inner.ModelsForProvider(provider)) |
| 132 | } |
| 133 | |
| 134 | // RefreshAuth lets plugin auth providers refresh a credential. |
| 135 | func (h *Host) RefreshAuth(ctx context.Context, auth *coreauth.Auth) (*coreauth.Auth, bool, error) { |
no test coverage detected