fix: adding assistantName config

This commit is contained in:
ajspig 2026-03-31 15:10:09 -04:00
parent c660ac2a60
commit 6886bfe88d
1 changed files with 2 additions and 0 deletions

View File

@ -3,6 +3,7 @@ import { Honcho } from "@honcho-ai/sdk";
export interface HonchoConfig {
apiKey: string;
userName: string;
assistantName: string;
baseUrl: string;
workspaceId: string;
}
@ -35,6 +36,7 @@ export function parseConfig(request: Request): HonchoConfig {
return {
apiKey,
userName,
assistantName: request.headers.get("X-Honcho-Assistant-Name")?.trim() || "Assistant",
baseUrl: "https://api.honcho.dev",
workspaceId: request.headers.get("X-Honcho-Workspace-ID")?.trim() || "default",
};