feat(blog): route fo-blog LLM to Mac Studio via WireGuard
Blog auto-discovery + generation now use BLOG_OLLAMA_URL (-> Mac Studio 192.168.178.213:11434 over the Erik<->home WireGuard tunnel), falling back to OLLAMA_URL. Search/embeddings stay on Erik-local OLLAMA_URL (nomic-embed-text). Fixes blog model not-found after OLLAMA_URL was repointed to Erik-local for the search fix.
This commit is contained in:
parent
172ec324f2
commit
3577668cf3
@ -14,7 +14,7 @@
|
|||||||
import { existsSync, readFileSync, writeFileSync } from "fs";
|
import { existsSync, readFileSync, writeFileSync } from "fs";
|
||||||
import { join } from "path";
|
import { join } from "path";
|
||||||
|
|
||||||
const OLLAMA_URL = process.env.OLLAMA_URL || "http://localhost:11434";
|
const OLLAMA_URL = process.env.BLOG_OLLAMA_URL || process.env.OLLAMA_URL || "http://localhost:11434";
|
||||||
const ANTHROPIC_API_KEY = process.env.ANTHROPIC_API_KEY || "";
|
const ANTHROPIC_API_KEY = process.env.ANTHROPIC_API_KEY || "";
|
||||||
const ANTHROPIC_MODEL = process.env.ANTHROPIC_MODEL || "claude-sonnet-4-20250514";
|
const ANTHROPIC_MODEL = process.env.ANTHROPIC_MODEL || "claude-sonnet-4-20250514";
|
||||||
const CLAUDE_BRIDGE_URL = process.env.CLAUDE_BRIDGE_URL || "http://localhost:3250";
|
const CLAUDE_BRIDGE_URL = process.env.CLAUDE_BRIDGE_URL || "http://localhost:3250";
|
||||||
|
|||||||
@ -2217,7 +2217,7 @@ blogRouter.post("/llm/reset-queue", (_req: Request, res: Response) => {
|
|||||||
blogRouter.get("/llm/model-info", async (_req: Request, res: Response) => {
|
blogRouter.get("/llm/model-info", async (_req: Request, res: Response) => {
|
||||||
try {
|
try {
|
||||||
const settings = getLlmProvider();
|
const settings = getLlmProvider();
|
||||||
const ollamaUrl = process.env.OLLAMA_URL || "http://localhost:11434";
|
const ollamaUrl = process.env.BLOG_OLLAMA_URL || process.env.OLLAMA_URL || "http://localhost:11434";
|
||||||
|
|
||||||
// Only meaningful for fo-blog Ollama models
|
// Only meaningful for fo-blog Ollama models
|
||||||
const modelName = settings.ollamaModel || "";
|
const modelName = settings.ollamaModel || "";
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user