POST /api/personas/generate posted to /api/anthropic/v1/messages, a route that does not exist, with no session token and a port built from address().toString(), so the URL did not even parse. It also pinned claude-sonnet-4-6, which needs an Anthropic key. The route now calls the built-in proxy through self-request.ts, reads the OpenAI-format reply, and picks the model from the user's default with the same fallback chat uses, so a local Ollama model works too. An end-to-end test with localhost trust off checks the generated persona comes back.
3.0 KiB
3.0 KiB