Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions apps/web/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ CRON_SECRET= # openssl rand -hex 32 -note: cron disabled if not set

NEXT_PUBLIC_BYPASS_PREMIUM_CHECKS=true
LOG_ZOD_ERRORS=true
# WEBHOOK_URL=

# =============================================================================
# LLM Configuration - Uncomment ONE provider block
Expand All @@ -58,6 +59,7 @@ LOG_ZOD_ERRORS=true
# ECONOMY_LLM_PROVIDER=openai
# ECONOMY_LLM_MODEL=gpt-5-mini
# OPENAI_API_KEY=
# OPENAI_ZERO_DATA_RETENTION=

# --- Google Vertex ---
# DEFAULT_LLM_PROVIDER=google
Expand Down
5 changes: 3 additions & 2 deletions apps/web/utils/llms/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,11 @@ function selectModel(
// When Zero Data Retention is enabled, set store: false to avoid
// "Items are not persisted for Zero Data Retention organizations" errors
// See: https://github.com/vercel/ai/issues/10060
const baseOptions = providerOptions ?? {};
const openAiProviderOptions = env.OPENAI_ZERO_DATA_RETENTION
? {
...providerOptions,
openai: { ...providerOptions?.openai, store: false },
...baseOptions,
openai: { ...(baseOptions.openai ?? {}), store: false },
}
: providerOptions;
return {
Expand Down
5 changes: 1 addition & 4 deletions apps/web/utils/outlook/watch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@ import { env } from "@/env";
import { withOutlookRetry } from "@/utils/outlook/retry";

export async function watchOutlook(client: Client) {
const base =
env.NODE_ENV === "development"
? env.WEBHOOK_URL || env.NEXT_PUBLIC_BASE_URL
: env.NEXT_PUBLIC_BASE_URL;
const base = env.WEBHOOK_URL || env.NEXT_PUBLIC_BASE_URL;

// must be https
const notificationUrl = new URL("/api/outlook/webhook", base);
Expand Down
1 change: 1 addition & 0 deletions turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"OPENROUTER_BACKUP_MODEL",

"OPENAI_API_KEY",
"OPENAI_ZERO_DATA_RETENTION",
"ANTHROPIC_API_KEY",
"BEDROCK_ACCESS_KEY",
"BEDROCK_SECRET_KEY",
Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2.21.36
v2.21.37
Loading