Skip to content

Provide the LLM client to the chat-completions route - #107

Merged
its-janghoon merged 1 commit into
developfrom
hotfix/chat-completion-llmclient
Oct 15, 2026
Merged

its-janghoon merged 1 commit into
developfrom
hotfix/chat-completion-llmclient

Conversation

@its-janghoon

Copy link
Copy Markdown
Member

Summary

POST /v1/chat/completions on the shared daemon (v0.6.4) answers 500 Service not found: @redrob/LLMClient for every request, with or without tools, any model. The route calls the model directly (no session), so it needs llmClient in the route tree; both route trees listed httpClient but not llmClient, and the layer compiler exposes only group members to handlers.

Found while wiring Redrob Grow's agent planner to the daemon: 915/915 cycles fell back to rules with this error.

Changes

  • packages/server/src/routes.ts: add llmClient to applicationServices
  • packages/redrob/src/server/routes/instance/httpapi/server.ts: add llmClient to the app group
  • packages/redrob/test/server/chat-completion-route.test.ts: drives the production route tree; fails on develop with the 500, passes with the fix

Tested

  • bun test test/server/chat-completion-route.test.ts test/server/httpapi-cors.test.ts: 6 pass
  • bun run typecheck in packages/server and packages/redrob: clean

/v1/chat/completions calls the model directly, with no session in between, so it needs
@redrob/LLMClient in the route tree itself. Both route trees (packages/server routes and the
daemon's httpapi server) listed httpClient but not llmClient, and the layer compiler only exposes
group members to handlers. Every call to the OpenAI-compatible route on v0.6.4 therefore died with
a 500 "Service not found: @redrob/LLMClient" before a provider was chosen, for every app on the
shared daemon.

Adds the node to both groups and a route-level regression test that drives the production tree
and asserts the request reaches the model layer.
@its-janghoon
its-janghoon merged commit e03b130 into develop Oct 15, 2026
32 of 33 checks passed
@its-janghoon
its-janghoon deleted the hotfix/chat-completion-llmclient branch October 15, 2026 03:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant