MCPcopy
hub / github.com/OpenBMB/UltraRAG / testAiConnection

Function testAiConnection

ui/frontend/src/shared/api/ai.ts:17–26  ·  view source on GitHub ↗
(payload: AiConnectionPayload)

Source from the content-addressed store, hash-verified

15};
16
17export async function testAiConnection(payload: AiConnectionPayload): Promise<{
18 success: boolean;
19 model?: string;
20 error?: string;
21}> {
22 return httpRequest<{ success: boolean; model?: string; error?: string }>("/api/ai/test", {
23 method: "POST",
24 body: payload,
25 });
26}
27
28export async function chatWithAi(payload: AiChatPayload): Promise<{
29 content?: string;

Callers 1

saveAndTestAiSettingsFunction · 0.90

Calls 1

httpRequestFunction · 0.90

Tested by

no test coverage detected