diff --git a/apps/desktop/layer/renderer/src/modules/ai-chat/store/chat-core/chat-actions.ts b/apps/desktop/layer/renderer/src/modules/ai-chat/store/chat-core/chat-actions.ts index 535219dfa..1bb6e7c9d 100644 --- a/apps/desktop/layer/renderer/src/modules/ai-chat/store/chat-core/chat-actions.ts +++ b/apps/desktop/layer/renderer/src/modules/ai-chat/store/chat-core/chat-actions.ts @@ -1,4 +1,6 @@ import { autoBindThis } from "@follow/utils/bind-this" +import { createDesktopAPIHeaders } from "@follow/utils/headers" +import PKG from "@pkg" import type { ChatRequestOptions, ChatStatus } from "ai" import { merge } from "es-toolkit/compat" import { nanoid } from "nanoid" @@ -217,6 +219,7 @@ export class ChatSliceActions { const finalOptions = merge( { body: { scene: this.get().scene }, + headers: createDesktopAPIHeaders({ version: PKG.version }), }, options, )