CaIon
|
f5b409d74f
feat: refactor token estimation logic
|
3 ماه پیش |
Seefs
|
e1c7a4f41f
format: package name -> github.com/QuantumNous/new-api (#2017)
|
5 ماه پیش |
RedwindA
|
2200bb9166
fix(openai): add nil checks for web_search streaming to prevent panic
|
5 ماه پیش |
creamlike1024
|
11cf70e60d
fix: openai responses api 未统计图像生成调用计费
|
5 ماه پیش |
HynoR
|
a77a88308a
fix: enhance tool usage parsing with additional nil checks and error logging
|
6 ماه پیش |
HynoR
|
c0187d50ff
fix: add error handling for missing built-in tools and validate response in stream handler
|
6 ماه پیش |
CaIon
|
621d2b0b6a
refactor: replace json.Marshal with common.Marshal for consistency and error handling
|
6 ماه پیش |
CaIon
|
eef73e3699
fix: update PromptTokens assignment logic in relay_responses
|
6 ماه پیش |
CaIon
|
e23f01f8d5
fix: Invalid type for 'input[x].summary': expected an array of objects, but got null instead
|
6 ماه پیش |
CaIon
|
c834694992
fix: update token usage calculation
|
7 ماه پیش |
CaIon
|
d646a922ee
refactor: set prompt tokens when not provided in usage
|
7 ماه پیش |
CaIon
|
726f1632b0
refactor: ensure graceful closure of response body in relay responses
|
7 ماه پیش |
CaIon
|
e2037ad756
refactor: Introduce pre-consume quota and unify relay handlers
|
7 ماه پیش |
CaIon
|
865bb7aad8
Revert "feat: update Usage struct to support dynamic token handling with ceil function #1503"
|
7 ماه پیش |
CaIon
|
71c39c9893
feat: update Usage struct to support dynamic token handling with ceil function #1503
|
7 ماه پیش |
creamlike1024
|
a746309a8e
fix: responses 流 cache token 未计费
|
7 ماه پیش |
creamlike1024
|
edbe18b157
fix: responses cache token 未计费
|
7 ماه پیش |
CaIon
|
ce031f7d15
refactor: update error handling to support dynamic error types
|
7 ماه پیش |
CaIon
|
0cd93d67ff
fix: auto ban
|
7 ماه پیش |
Xyfacai
|
c674c3561a
fix(response): tools 需要处理的参数很少 使用 map
|
7 ماه پیش |
CaIon
|
98952198bb
refactor: Introduce standardized API error
|
8 ماه پیش |
CaIon
|
6b9237f868
🐛 fix: refactor JSON unmarshalling across multiple handlers to use UnmarshalJson and UnmarshalJsonStr for consistency
|
8 ماه پیش |
CaIon
|
1f4cf07b63
🐛 fix: refactor response body handling in multiple relay handlers to utilize IOCopyBytesGracefully
|
8 ماه پیش |
CaIon
|
3002659f47
✨ feat: add CloseResponseBodyGracefully function to handle HTTP response body closure
|
8 ماه پیش |
CaIon
|
a9e5d99ea3
refactor: token counter logic
|
8 ماه پیش |
creamlike1024
|
459c277c94
feat: 添加 built in tools 计费
|
10 ماه پیش |
CaIon
|
18b3300ff1
feat: implement OpenAI responses handling and streaming support with built-in tool tracking
|
10 ماه پیش |