Skip to content

feat(api): add support for agent passthrough api and its config - #4433

Merged
wsxiaoys merged 6 commits into
nextfrom
feat/passthrough-api
Feb 9, 2026
Merged

feat(api): add support for agent passthrough api and its config#4433
wsxiaoys merged 6 commits into
nextfrom
feat/passthrough-api

Conversation

@zwpaper

@zwpaper zwpaper commented Feb 3, 2026

Copy link
Copy Markdown
Member
[[endpoints]]
name = "oai"
api_route = "https://api.openai.com"
timeout = 5000
user_quota = { 
  requests_per_minute = 30 
}
headers = {
  Authorization = "Bearer xxx"
}
metadata = {
  pochi = {
    use_case = "chat",
    provider = "openai",
    models = [
      "gpt-5",
      "gpt-5.2"
    ]
  }
}

@zwpaper
zwpaper requested a review from wsxiaoys February 3, 2026 07:30
@codecov

codecov Bot commented Feb 3, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 6.31579% with 89 lines in your changes missing coverage. Please review.
✅ Project coverage is 54.31%. Comparing base (e19008a) to head (72b7753).

Files with missing lines Patch % Lines
crates/tabby/src/routes/agent.rs 0.00% 64 Missing ⚠️
crates/tabby/src/serve.rs 0.00% 13 Missing ⚠️
ee/tabby-webserver/src/service/mod.rs 0.00% 11 Missing ⚠️
ee/tabby-schema/src/schema/mod.rs 0.00% 1 Missing ⚠️

❌ Your patch check has failed because the patch coverage (6.31%) is below the target coverage (75.00%). You can increase the patch coverage or adjust the target coverage.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4433      +/-   ##
==========================================
- Coverage   54.35%   54.31%   -0.05%     
==========================================
  Files         227      228       +1     
  Lines       27121    27017     -104     
==========================================
- Hits        14741    14673      -68     
+ Misses      12380    12344      -36     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Comment thread crates/tabby-common/src/config.rs Outdated
@zwpaper
zwpaper changed the base branch from main to next February 9, 2026 04:26
@zwpaper
zwpaper marked this pull request as ready for review February 9, 2026 04:26
@zwpaper
zwpaper requested a review from wsxiaoys February 9, 2026 04:26
@zwpaper
zwpaper force-pushed the feat/passthrough-api branch from 51b58b2 to 1dd2465 Compare February 9, 2026 04:56
@wsxiaoys
wsxiaoys merged commit 5796877 into next Feb 9, 2026
2 checks passed
@wsxiaoys
wsxiaoys deleted the feat/passthrough-api branch February 9, 2026 05:41
gunakarchalla pushed a commit to gunakarchalla/tabby that referenced this pull request May 19, 2026
…yML#4433)

* feat(api): add support for agent passthrough api and its config

# Conflicts:
#	crates/tabby-common/src/config.rs

* feat(api): use endpoint as passthrough api

* feat(api): add list endpoints

* chore(config): use only endpoint concept

* chore: make fix

* fix(config): update endpoint metadata to use serde_json::Value

🤖 Generated with [Pochi](https://getpochi.com) | [Task](https://app.getpochi.com/share/p-128e982484394b4a98d78b8412955adf)

Co-Authored-By: Pochi <noreply@getpochi.com>

---------

Co-authored-by: Pochi <noreply@getpochi.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.

2 participants