CaIon
f5b409d74f
feat: refactor token estimation logic
...
- Introduced new OpenAI text models in `common/model.go`.
- Added `IsOpenAITextModel` function to check for OpenAI text models.
- Refactored token estimation methods across various channels to use estimated prompt tokens instead of direct prompt token counts.
- Updated related functions and structures to accommodate the new token estimation approach, enhancing overall token management.
2025-12-02 21:34:39 +08:00
Seefs
0885597427
feat: embedding param override && internal params
2025-11-22 18:27:17 +08:00
Seefs
e1c7a4f41f
format: package name -> github.com/QuantumNous/new-api ( #2017 )
2025-10-11 15:30:09 +08:00
Seefs
0e9ad4a15f
fix: missing field & field control
2025-10-02 00:14:35 +08:00
CaIon
b5d3e87ea2
Merge branch 'alpha'
2025-09-19 14:20:15 +08:00
creamlike1024
11cf70e60d
fix: openai responses api 未统计图像生成调用计费
2025-09-16 12:47:59 +08:00
Xyfacai
63f94e7669
fix: 非openai 渠道使用 SystemPrompt 设置会panic
2025-09-15 19:38:31 +08:00
CaIon
6451158680
Revert "feat: gemini-2.5-flash-image-preview 文本和图片输出计费"
...
This reverts commit e732c58426 .
2025-09-13 12:53:28 +08:00
Xyfacai
fcdfd027cd
fix: openai 格式请求 claude 没计费 create cache token
2025-09-10 15:30:23 +08:00
creamlike1024
e732c58426
feat: gemini-2.5-flash-image-preview 文本和图片输出计费
2025-08-27 21:30:52 +08:00
CaIon
33d601db82
fix: update error types for upstream errors and JSON marshal failure
2025-08-26 16:26:56 +08:00
CaIon
94536be9be
fix: enhance error handling for invalid request types in relay handlers
2025-08-23 13:34:56 +08:00
CaIon
2c6a9245ee
refactor: rename relay-text.go to compatible_handler.go for clarity
2025-08-23 13:13:57 +08:00