Skip to content

Commit 8d23742

Browse files
committed
fix: testConfig返回类型补充llm和embedding字段
Co-Authored-By: Rayner Zeng <1361209507@qq.com>
1 parent 8a56886 commit 8d23742

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

client/src/lib/api.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,13 @@ export const api = {
268268
}>("/config", { method: "POST", body: JSON.stringify(data) }),
269269

270270
testConfig: () =>
271-
request<{ connected: boolean; response?: string; error?: string }>(
271+
request<{
272+
connected: boolean;
273+
response?: string;
274+
error?: string;
275+
llm: { connected: boolean; response?: string; error?: string };
276+
embedding: { connected: boolean; error?: string };
277+
}>(
272278
"/config/test",
273279
{ method: "POST" },
274280
),

0 commit comments

Comments
 (0)