Augment system prompt with date and user location (default SF)

This commit is contained in:
Agent
2026-05-30 17:59:26 -07:00
committed by buzzert
parent 600bc3befc
commit 0bf0f95a67
10 changed files with 121 additions and 19 deletions
+2
View File
@@ -613,6 +613,7 @@ export async function runCompletion(body: {
provider: Provider;
model: string;
messages: CompletionRequestMessage[];
userLocation?: string;
}) {
return api<CompletionResponse>("/v1/chat-completions", {
method: "POST",
@@ -627,6 +628,7 @@ export async function runCompletionStream(
provider: Provider;
model: string;
messages: CompletionRequestMessage[];
userLocation?: string;
},
handlers: CompletionStreamHandlers,
options?: { signal?: AbortSignal }