MCPcopy
hub / github.com/HisMax/RedInk / testConnection

Function testConnection

frontend/src/api/config.ts:26–41  ·  view source on GitHub ↗
(config: {
  type: string
  provider_name?: string
  api_key?: string
  base_url?: string
  endpoint_type?: string
  model: string
})

Source from the content-addressed store, hash-verified

24}
25
26export 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}

Callers 4

testTextConnectionFunction · 0.90
testTextProviderInListFunction · 0.90
testImageConnectionFunction · 0.90
testImageProviderInListFunction · 0.90

Calls 1

postMethod · 0.80

Tested by

no test coverage detected