MCPcopy Index your code
hub / github.com/ChatLab/ChatLab / fetchRemoteModels

Method fetchRemoteModels

src/services/llm/fetch.ts:87–93  ·  view source on GitHub ↗
(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

Calls 1

postFunction · 0.90

Tested by

no test coverage detected