Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
QuantumNous
/
new-api
Public
Notifications
You must be signed in to change notification settings
Fork
11.6k
Star
48.5k
Code
Issues
738
Pull requests
605
Discussions
Actions
Security and quality
15
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Security and quality
Insights
refactor: Introduce pre-consume quota and unify relay handlers
- #1594
#1594
Merged
Calcium-Ion
merged 12 commits into
alpha
QuantumNous/new-api:alpha
from
refactor_relay
QuantumNous/new-api:refactor_relay
Copy head branch name to clipboard
Aug 15, 2025
Conversation
Commits
12
(12)
Checks
Files changed
Merged
refactor: Introduce pre-consume quota and unify relay handlers
#1594
Calcium-Ion
merged 12 commits into
alpha
QuantumNous/new-api:alpha
from
refactor_relay
QuantumNous/new-api:refactor_relay
Copy head branch name to clipboard
Commits
Commits on Aug 14, 2025
refactor: Introduce pre-consume quota and unify relay handlers
Show description for e2037ad
Calcium-Ion
committed
e2037ad
View commit details
Copy full SHA for e2037ad
Browse repository at this point
refactor: centralize logging and update resource initialization
Show description for 6748b00
Calcium-Ion
committed
6748b00
View commit details
Copy full SHA for 6748b00
Browse repository at this point
refactor: enhance quota handling and logging for pre-consume operations
Calcium-Ion
committed
89caccd
View commit details
Copy full SHA for 89caccd
Browse repository at this point
refactor: improve channel base URL handling and enhance RelayInfo logging
Calcium-Ion
committed
7f1f368
View commit details
Copy full SHA for 7f1f368
Browse repository at this point
Commits on Aug 15, 2025
refactor: enhance error handling and masking for model not found scenarios
Calcium-Ion
committed
44e9b02
View commit details
Copy full SHA for 44e9b02
Browse repository at this point
refactor: add email masking function and enhance RelayInfo logging
Show description for 03fc89d
Calcium-Ion
committed
03fc89d
View commit details
Copy full SHA for 03fc89d
Browse repository at this point
refactor: improve request type validation and enhance sensitive information masking
Calcium-Ion
committed
5fe1ce8
View commit details
Copy full SHA for 5fe1ce8
Browse repository at this point
refactor: update token type handling and improve token counting logic
Calcium-Ion
committed
2f25e44
View commit details
Copy full SHA for 2f25e44
Browse repository at this point
Merge branch 'alpha' into refactor_relay
Show description for edeb479
Calcium-Ion
committed
edeb479
View commit details
Copy full SHA for edeb479
Browse repository at this point
refactor: simplify domain masking logic by removing URL check
Calcium-Ion
committed
067be37
View commit details
Copy full SHA for 067be37
Browse repository at this point
refactor: enhance logging messages for user quota handling in pre-consume logic
Calcium-Ion
committed
cc4f73d
View commit details
Copy full SHA for cc4f73d
Browse repository at this point
refactor: improve logging for channel operations with detailed context
Calcium-Ion
committed
1d4850e
View commit details
Copy full SHA for 1d4850e
Browse repository at this point
You can’t perform that action at this time.