Skip to content
Open
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: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ ASSEMBLYAI_AGENT_URL=wss://agents.assemblyai.com/v1/realtime
ASSEMBLYAI_VOICE=ivy

# ── You.com (research) ─────────────────────────────────────────────
YOU_API_KEY=XXXXXXXXXXXXXXXXXXXXXXXX
YDC_API_KEY=XXXXXXXXXXXXXXXXXXXXXXXX
YOU_BASE_URL=https://api.you.com/v1

# ── Anthropic (LLM used by the Mastra workflow: plan + synthesize) ─
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Required environment variables on **both** the web service and the workflow serv
|---|---|---|
| `DATABASE_URL` | Postgres connection string. | Render auto-injects from the `ravendr-db` Blueprint. Set it manually for local dev. |
| `ANTHROPIC_API_KEY` | Used by every Mastra agent. | https://console.anthropic.com |
| `YOU_API_KEY` | Used by `search_branch`. | https://you.com/platform |
| `YDC_API_KEY` | Used by `search_branch`. | https://you.com/platform |
| `ASSEMBLYAI_API_KEY` | Used by `voice_session`. | https://www.assemblyai.com/app |
| `ANTHROPIC_MODEL` | Override the LLM (default `claude-sonnet-4-20250514`). | Optional. |
| `RENDER_API_KEY` | Web service only. Used to dispatch and cancel Workflow runs. | https://dashboard.render.com/settings/api-keys |
Expand Down
2 changes: 1 addition & 1 deletion render.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ previews:
envVarGroups:
- name: ravendr-shared
envVars:
- key: YOU_API_KEY
- key: YDC_API_KEY
displayName: You.com API key
description: "From https://you.com/platform"
sensitive: true
Expand Down
2 changes: 1 addition & 1 deletion src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const BaseSchema = z.object({

DATABASE_URL: z.string().url(),

YOU_API_KEY: z.string().min(1),
YDC_API_KEY: z.string().min(1),
YOU_BASE_URL: z.string().url().default("https://api.you.com/v1"),

// Mastra's model router reads ANTHROPIC_API_KEY directly from env.
Expand Down
2 changes: 1 addition & 1 deletion src/render/tasks/youcom/search-branch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export const search_branch = task(
await events.start();

const research = createYouComResearch({
apiKey: config.YOU_API_KEY,
apiKey: config.YDC_API_KEY,
baseUrl: config.YOU_BASE_URL,
});

Expand Down