fix: guard completed API with message id (#23184)

This commit is contained in:
Shirasawa authored and GitHub committed 2026-04-01 05:39:34 -05:00
1 parent 16e6cb458f
commit d7a5a903a6
3 files changed
+17 -2

No files matched your search

+5 -2
View File
@@ -161,9 +161,12 @@ export const getModels = async (
type ChatCompletedForm = {
model: string;
messages: string[];
messages: Record<string, unknown>[];
chat_id: string;
session_id: string;
session_id: string | undefined;
id: string;
filter_ids?: string[];
model_item?: unknown;
};
export const chatCompleted = async (token: string, body: ChatCompletedForm) => {