Skip to content

Conversation

@echobt
Copy link
Contributor

@echobt echobt commented Feb 3, 2026

Epic: Complete Chutes API Integration

Overview

This is the umbrella PR that coordinates the complete migration from OpenRouter/litellm to the Chutes API with Kimi K2.5-TEE model support.

Child PRs (Do NOT merge this PR directly)

PR Feature Status Dependency
#7 feat: Integrate Chutes API with Kimi K2.5-TEE model Open None
#8 docs: Comprehensive documentation with Mermaid diagrams Open #7
#9 feat: Remove OpenRouter support, replace litellm with Chutes API Open #7, #8

Merge Strategy

Following git best practices for stacked PRs:

  1. Merge feat: Integrate Chutes API with Kimi K2.5-TEE model #7 first - Base Chutes API integration (independent feature)
  2. Rebase docs: Comprehensive documentation with Mermaid diagrams #8 on main - Update docs after API changes land
  3. Merge docs: Comprehensive documentation with Mermaid diagrams #8 - Documentation updates
  4. Rebase feat: Remove OpenRouter support, replace litellm with Chutes API #9 on main - Final cleanup PR rebased on latest
  5. Merge feat: Remove OpenRouter support, replace litellm with Chutes API #9 - Complete the migration
  6. Close this umbrella PR - Do NOT merge this PR, just close after children are merged

Goals

  • Integrate Chutes API with Kimi K2.5-TEE model support
  • Add comprehensive documentation with Mermaid diagrams
  • Remove OpenRouter dependency
  • Replace litellm with native httpx client
  • Security hardening (environment variables, path traversal)

Security Improvements

  • Shell tool: Allowlist-based environment variable passing
  • Path traversal protection in resolve_path()
  • API key handling improvements

Instructions for Reviewers

  1. Review child PRs individually (feat: Integrate Chutes API with Kimi K2.5-TEE model #7, docs: Comprehensive documentation with Mermaid diagrams #8, feat: Remove OpenRouter support, replace litellm with Chutes API #9)
  2. Approve and merge in order (respecting dependencies listed above)
  3. Do NOT merge this umbrella PR - Close it after all children are merged

Related PRs:

This PR follows the stacked PRs pattern for managing related changes with clear dependencies.

Documentation fixes:
- Replace all LiteLLM references with httpx client
- Update API base URL from llm.chutes.ai to api.chutes.ai
- Update environment variable from CHUTES_API_TOKEN to CHUTES_API_KEY
- Update default model from openrouter/... to deepseek/deepseek-chat
- Remove all OpenRouter references and fallback documentation

Security fixes:
- Shell tool: Use allowlist-based environment instead of passing full os.environ
  to prevent leaking sensitive environment variables (API keys, tokens, etc.)
- BaseTool.resolve_path(): Add path containment validation to prevent
  path traversal attacks outside the working directory
- utils/files.resolve_path(): Add optional containment validation

These changes ensure documentation accurately reflects the current
implementation after PR #3 replaced litellm with direct Chutes API client.
@coderabbitai
Copy link

coderabbitai bot commented Feb 3, 2026

Warning

Rate limit exceeded

@echobt has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 20 minutes and 49 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch umbrella/chutes-api-complete-integration

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@echobt echobt changed the title fix: Sync documentation with implementation and add security hardening 🚀 Epic: Complete Chutes API Integration (Umbrella PR) Feb 3, 2026
@echobt echobt changed the title 🚀 Epic: Complete Chutes API Integration (Umbrella PR) Epic: Complete Chutes API Integration (Umbrella PR) Feb 3, 2026
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