Commit Graph

105 Commits

Author SHA1 Message Date
Laisky.Cai
580fec6359 feat: implement image editing request handling and response conversion for Imagen API 2025-03-16 14:21:38 +00:00
Laisky.Cai
2f32545ab0 Merge branch 'patch/openai-search' 2025-03-13 10:02:22 +00:00
Laisky.Cai
6708eed8a0 fix: refactor cost calculation logic for web-search tools and improve quota handling 2025-03-13 09:52:13 +00:00
Laisky.Cai
ad63c9e66f fix: update cost calculation to use QuotaPerUsd for search context sizes 2025-03-13 09:50:35 +00:00
Laisky.Cai
2f34798aa9 fix: refactor cost calculation logic for web-search tools and improve quota handling 2025-03-13 09:33:03 +00:00
Laisky.Cai
82225818e3 fix: update cost calculation to use QuotaPerUsd for search context sizes 2025-03-13 09:17:59 +00:00
Laisky.Cai
76e8199026 fix: add support for OpenAI web search models in documentation and request handling 2025-03-13 08:23:07 +00:00
Laisky.Cai
bbf6b77411 fix: add support for OpenAI web search models in documentation and request handling 2025-03-13 08:22:04 +00:00
Laisky.Cai
413fcde382 feat: support openai websearch models 2025-03-13 03:46:15 +00:00
Laisky.Cai
eb5e7efdd7 feat: support openai websearch models 2025-03-13 03:37:38 +00:00
Laisky.Cai
388f0ef6aa docs: update README for clarity and fix translation issues; improve token update descriptions 2025-03-09 12:50:52 +00:00
Laisky.Cai
fc828e407b feat: add support for gpt-4.5-preview model and update billing ratios 2025-03-03 03:52:09 +00:00
Laisky.Cai
f6cfe7cd4f feat: enhance error handling and reasoning mechanisms across middleware
- Improve error handling across multiple middleware and adapter components, ensuring consistent error response formats in JSON.
- Enhance the functionality of request conversion functions by including context parameters and robust error wrapping.
- Introduce new features related to reasoning content in the messaging model, providing better customization and explanations in the documentation.
2025-02-26 05:38:21 +00:00
Laisky.Cai
07d9a8e144
Merge pull request #30 from qistchan/fix-2109
Fix 2109
2025-02-26 09:02:24 +08:00
Laisky.Cai
c2a0318e7b
Merge pull request #29 from qistchan/fix-#1982
fix: resolve "bufio.Scanner: token too long" error by increasing buff…
2025-02-25 09:21:39 +08:00
QistChan
1ac79a8126 fix: Improve OpenAI stream data parsing 2025-02-24 01:45:24 +00:00
QistChan
706aa7233b
fix: resolve "bufio.Scanner: token too long" error by increasing buffer size 2025-02-24 01:59:54 +08:00
Laisky.Cai
7ec33793b7 feat: add OpenrouterProviderSort configuration for provider sorting 2025-02-20 01:51:45 +00:00
Laisky.Cai
647718f3e6 feat: add OpenrouterProviderSort configuration for provider sorting 2025-02-20 01:51:19 +00:00
Laisky.Cai
1a6812182b fix: improve reasoning token counting in OpenAI adaptor 2025-02-19 09:13:24 +00:00
Laisky.Cai
04da1b7861 fix: improve reasoning token counting in OpenAI adaptor 2025-02-19 09:13:17 +00:00
Laisky.Cai
5ba60433d7 feat: enhance reasoning token handling in OpenAI adaptor 2025-02-19 08:10:19 +00:00
Laisky.Cai
a45a3d6241 feat: enhance reasoning token handling in OpenAI adaptor 2025-02-19 08:10:04 +00:00
Laisky.Cai
480f248a3d feat: support OpenRouter reasoning 2025-02-19 01:20:14 +00:00
Laisky.Cai
a5f5e85c44 feat: support OpenRouter reasoning 2025-02-19 01:11:46 +00:00
Laisky.Cai
2a5908586d Merge branch 'upstream/main' 2025-02-16 13:18:50 +00:00
JustSong
3f421c4f04 feat: support Gemini openai compatible api 2025-02-16 17:59:39 +08:00
JustSong
cafd0a0327 feat: add OpenAI compatible channel (close #2091) 2025-02-16 17:38:06 +08:00
JustSong
53da209134 feat: add AliBailian adaptor and update channel options 2025-02-12 00:15:43 +08:00
JustSong
eb96aa635e feat: update OpenRouter channel name and add model list for OpenRouter adaptor 2025-02-11 00:20:55 +08:00
JustSong
57c1367ec8 feat: add Xunfei V2 channel support and update related configurations 2025-02-09 18:31:54 +08:00
JustSong
dd65b997dd feat: add Baidu V2 channel support and improve model handling 2025-02-09 12:37:26 +08:00
Laisky.Cai
6ac92a008b feat: update API version handling for Azure channel in Adaptor 2025-02-07 01:36:25 +00:00
Laisky.Cai
aa30c37e3c Merge branch 'upstream/main' 2025-02-03 12:25:00 +00:00
Laisky.Cai
9dd86e8a15 fix: add warning for ENFORCE_INCLUDE_USAGE in stream mode 2025-02-03 12:08:17 +00:00
JustSong
c81ee68dd0 feat: improve error logging for token encoder initialization with offline usage guidance 2025-02-02 17:24:23 +08:00
Laisky.Cai
2ba2503874 Merge branch 'patch/o3-mini' 2025-02-01 13:26:59 +00:00
Laisky.Cai
790e1e9f5b feat: extend support for o3 models and update model ratios 2025-02-01 13:25:47 +00:00
Laisky.Cai
0e19d60769 feat: extend support for o3 models and update model ratios 2025-02-01 11:44:04 +00:00
Laisky.Cai
303ab407d0 fix: update repository links 2025-01-26 12:29:20 +00:00
Laisky.Cai
92a21f64eb fix: correct audio token accumulation in CountTokenMessages function 2025-01-26 12:22:50 +00:00
Laisky.Cai
2d1fcb46a7 fix: change GetAudioTokens to return float64 and update related functions 2025-01-26 12:17:31 +00:00
Laisky.Cai
a46b94d4c5 feat: only allow gpt-audio stream mode when EnforceIncludeUsage is true 2025-01-26 08:21:51 +00:00
Laisky.Cai
1ea322f371 fix: update OpenAI adaptor to set default temperature and clarify model limitations 2025-01-24 13:41:00 +00:00
Laisky.Cai
bdb695895f fix: enhance token usage calculations and improve logging in OpenAI handler 2025-01-14 13:37:00 +00:00
Laisky.Cai
9730ac3bb5 feat: support gpt-4o-audio 2025-01-14 06:38:07 +00:00
Laisky.Cai
feacea0321 feat: support vertex imagen3 2025-01-12 04:18:57 +00:00
Laisky.Cai
e17017eb4a fix: implement audio duration retrieval and add tests 2025-01-08 03:55:02 +00:00
Laisky.Cai
73a928f970 fix: update comments for o1 model handling 2025-01-05 02:42:37 +00:00
Qiying Wang
a858292b54
feat: support gpt-4o-2024-11-20 (#1941)
Some checks failed
CI / Unit tests (push) Has been cancelled
CI / commit_lint (push) Has been cancelled
2024-12-22 19:49:50 +08:00