feat(config): add ASK_MODEL env var and update docs assistant endpoint to SRS API

This commit is contained in:
Prad Nukala committed 2026-09-30 15:31:56 -04:00
1 parent d7fbe88eb8
commit 82fe05b225
4 files changed
+14 -18

No files matched your search

+5 -8
View File
@@ -1,5 +1,4 @@
import { defineConfig } from "blume";
import { openrouter } from "blume/ai";
import type { StandardSchema } from "blume/core/standard-schema.ts";
import { custom, filesystem } from "blume/sources";
import { githubReleasesSource } from "blume/sources/github-releases.ts";
@@ -135,16 +134,14 @@ export default defineConfig({
structuredData: true,
x: { handle: "@prdlk" },
},
// The assistant's `/api/ask` route runs on demand and reads
// OPENROUTER_API_KEY at request time (`getSecret`), so it needs a server
// runtime holding that secret — a static host cannot answer it.
// Blume's own assistant route is server-rendered (it reads the provider key
// per request), which a static Pages build cannot ship. The SRS Worker
// answers instead (apps/api/src/ask.ts: OpenRouter, grounded on this site's
// llms-full.txt, which `agents.llmsTxt` publishes).
ai: {
assistant: {
enabled: true,
provider: openrouter({
model: "qwen/qwen3.8-27b:free",
reasoning: "none",
}),
endpoint: "https://srs-api.prdlk.workers.dev/ask",
},
},
agents: {