Function
testCredential
(input: {
wireShape: WireShape
baseUrl?: string
apiKey: string
model: string
authMode?: 'x-api-key' | 'bearer'
})
Source from the content-addressed store, hash-verified
| 63 | }, |
| 64 | |
| 65 | async testCredential(input: { |
| 66 | wireShape: WireShape |
| 67 | baseUrl?: string |
| 68 | apiKey: string |
| 69 | model: string |
| 70 | authMode?: 'x-api-key' | 'bearer' |
| 71 | }): Promise<{ ok: boolean; response?: string; error?: string }> { |
| 72 | const res = await fetch('/api/config/credentials/test', { method: 'POST', headers, body: JSON.stringify(input) }) |
| 73 | return res.json() |
| 74 | }, |
| 75 | |
| 76 | // ============ Default Workspace Credentials (per-agent) ============ |
| 77 | |
Callers
nothing calls this directly
Tested by
no test coverage detected