Method
validateApiKey
(
provider: string,
apiKey: string,
baseUrl?: string,
model?: string,
apiFormat?: string,
configId?: string
)
Source from the content-addressed store, hash-verified
| 67 | } |
| 68 | |
| 69 | async validateApiKey( |
| 70 | provider: string, |
| 71 | apiKey: string, |
| 72 | baseUrl?: string, |
| 73 | model?: string, |
| 74 | apiFormat?: string, |
| 75 | configId?: string |
| 76 | ) { |
| 77 | return post<{ success: boolean; error?: string }>('/ai/llm/validate-key', { |
| 78 | provider, |
| 79 | apiKey, |
| 80 | baseUrl, |
| 81 | model, |
| 82 | apiFormat, |
| 83 | configId, |
| 84 | }) |
| 85 | } |
| 86 | |
| 87 | async fetchRemoteModels(provider: string, apiKey: string, baseUrl?: string, apiFormat?: string, configId?: string) { |
| 88 | return post<{ |
Callers
nothing calls this directly
Tested by
no test coverage detected