Skip to content

feat: wire chat completions route into API router#179

Open
jcabrero wants to merge 1 commit intofeat/rust-migrationfrom
worktree-agent-af55ef4b
Open

feat: wire chat completions route into API router#179
jcabrero wants to merge 1 commit intofeat/rust-migrationfrom
worktree-agent-af55ef4b

Conversation

@jcabrero
Copy link
Member

Summary

  • Register the chat module in crates/nilai-api/src/routes/mod.rs and merge chat::router() into private_routes() so /v1/chat/completions no longer returns 404.
  • Fix unused imports in handler.rs and stream.rs to satisfy clippy (-D warnings).

Test plan

  • cargo check --workspace passes
  • cargo clippy --workspace -- -D warnings passes
  • cargo test --workspace passes (3/3 tests)
  • E2e tests (require Docker services, skipped in this unit)

🤖 Generated with Claude Code

Register the existing chat module and merge its router into
private_routes() so /v1/chat/completions is no longer a 404.
Also fix unused imports in chat handler and stream modules
to satisfy clippy.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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