Commit Graph

86 Commits

Author SHA1 Message Date
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
706aa7233b
fix: resolve "bufio.Scanner: token too long" error by increasing buffer size 2025-02-24 01:59:54 +08:00
Laisky.Cai
647718f3e6 feat: add OpenrouterProviderSort configuration for provider sorting 2025-02-20 01:51:19 +00:00
Laisky.Cai
04da1b7861 fix: improve reasoning token counting in OpenAI adaptor 2025-02-19 09:13:17 +00:00
Laisky.Cai
a45a3d6241 feat: enhance reasoning token handling in OpenAI adaptor 2025-02-19 08:10:04 +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
Laisky.Cai
6bb5247bd6
feat: add support for new OpenAI models and update billing ratios (#1990) 2024-12-21 20:28:51 +08:00
Laisky.Cai
305ce14fe3
feat: support replicate chat models (#1989)
* feat: add Replicate adaptor and integrate into channel and API types

* feat: support llm chat on replicate
2024-12-21 14:41:19 +08:00
Laisky.Cai
09bfd61f2e refactor: replace Laisky/errors with pkg/errors for improved error handling 2024-12-20 03:06:09 +00:00
Laisky.Cai
40f5cd3af0 feat: add support for new OpenAI models and update billing ratios 2024-12-19 05:55:21 +00:00
Laisky.Cai
502cf3315d feat: support llm chat on replicate 2024-12-19 03:14:32 +00:00
Laisky.Cai
ae7117beee feat: add Replicate adaptor and integrate into channel and API types 2024-11-28 09:04:02 +00:00
Laisky.Cai
79257420a8 fix: update request handling to enforce usage inclusion and remove unused import 2024-11-27 06:25:15 +00:00
Laisky.Cai
988a054178 fix: remove unused slices import from adaptor.go 2024-11-27 06:16:53 +00:00
Laisky.Cai
5449190b8e fix: implement handling for o1-mini and o1-preview models to disable system prompt and max_tokens 2024-11-27 06:11:34 +00:00
Laisky.Cai
95fda50365 feat: add o1-mini model to the ModelList in constants 2024-11-27 06:00:55 +00:00
Laisky.Cai
05c73c6fc3 feat: add new models and update pricing for o1-preview and o1-mini in constants and ratios 2024-11-27 06:00:17 +00:00
Laisky.Cai
082cfbe574 Merge remote-tracking branch 'origin/upstream/main' 2024-11-20 02:09:28 +00:00
Ryo Shen
8ec092ba44
feat: add support for xAI (#1915)
Some checks failed
CI / Unit tests (push) Has been cancelled
CI / commit_lint (push) Has been cancelled
2024-11-07 23:52:38 +08:00
Laisky.Cai
2e5e6faad7 Merge remote-tracking branch 'origin/upstream/main' 2024-10-29 01:15:54 +00:00
JustSong
f75a17f8eb feat: always return usage in stream mode 2024-10-27 17:58:44 +08:00
Laisky.Cai
3f905ea0a4 Merge branch 'upstream/main' 2024-09-25 09:22:57 +00:00
byte911
88acc5a614 fix: return the usage info if not null (#1792)
Usage is missing.
2024-09-22 16:41:10 +08:00
TAKO
649ecbf29c
feat: support new openai models (4o 0806, chatgpt-4o-latest) (#1721)
* feat: support new model gpt-4o-2024-08-06

* feat: support new model chatgpt-4o-latest
2024-09-21 23:01:19 +08:00
Laisky.Cai
4e3782d524 Merge remote-tracking branch 'origin/upstream/main' 2024-08-08 01:51:13 +00:00