(config: {
type: string
provider_name?: string
api_key?: string
base_url?: string
endpoint_type?: string
model: string
})
| 24 | } |
| 25 | |
| 26 | export async function testConnection(config: { |
| 27 | type: string |
| 28 | provider_name?: string |
| 29 | api_key?: string |
| 30 | base_url?: string |
| 31 | endpoint_type?: string |
| 32 | model: string |
| 33 | }): Promise<{ |
| 34 | success: boolean |
| 35 | message?: string |
| 36 | error?: AppError | string |
| 37 | error_message?: string |
| 38 | }> { |
| 39 | const response = await axios.post(`${API_BASE_URL}/config/test`, config) |
| 40 | return response.data |
| 41 | } |
no test coverage detected