Method
fetchRemoteModels
(provider: string, apiKey: string, baseUrl?: string, apiFormat?: string, configId?: string)
Source from the content-addressed store, hash-verified
| 85 | } |
| 86 | |
| 87 | async fetchRemoteModels(provider: string, apiKey: string, baseUrl?: string, apiFormat?: string, configId?: string) { |
| 88 | return post<{ |
| 89 | success: boolean |
| 90 | models?: Array<{ id: string; name: string; ownedBy?: string; contextWindow?: number }> |
| 91 | error?: string |
| 92 | }>('/ai/llm/remote-models', { provider, apiKey, baseUrl, apiFormat, configId }) |
| 93 | } |
| 94 | |
| 95 | async addCustomProvider(input: CustomProviderInput) { |
| 96 | return post<ProviderRegistryItem>('/ai/llm/custom-providers', input) |
Callers
nothing calls this directly
Tested by
no test coverage detected