Commit Graph

63 Commits

Author SHA1 Message Date
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
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
Shenghang Tsai
402fcf7f79
feat: add SiliconFlow (#1717)
* Add SiliconFlow

* Update README.md

* Update README.md

* Update channel.constants.js

* Update ChannelConstants.js

* Update channel.constants.js

* Update ChannelConstants.js

* Update compatible.go

* Update README.md
2024-08-06 23:42:25 +08:00
Laisky.Cai
4c96688e7c Merge remote-tracking branch 'origin/upstream/main' 2024-07-23 01:14:23 +00:00
TAKO
296ab013b8
feat: support gpt-4o mini (#1665)
* feat: support gpt-4o mini

* feat: fix gpt-4o mini image price
2024-07-22 22:44:08 +08:00
Laisky.Cai
9dbaaefe3f Merge remote-tracking branch 'origin/upstream/main' 2024-07-13 13:45:33 +00:00
Ghostz
65acb94f45
fix: text filed check for 4v request (#1634) 2024-07-13 14:57:08 +08:00
Laisky.Cai
65022b0e3e Merge remote-tracking branch 'origin/upstream/main' 2024-07-10 06:26:02 +00:00
Qiying Wang
f636c50c84
fix: duplicate [DONE] (#1629) 2024-07-09 22:43:59 +08:00
Laisky.Cai
f9417d32e1 Merge remote-tracking branch 'origin/upstream/main' 2024-07-09 06:28:06 +00:00
Jason
e090e76c86
feat: add Novita AI as model provider (#1609) 2024-07-06 13:16:46 +08:00
Laisky.Cai
c20f27ec45 Merge remote-tracking branch 'origin/upstream/main' 2024-07-01 03:09:33 +00:00
zijiren
b21b3b5b46
refactor: abusing goroutines and channel (#1561)
* refactor: abusing goroutines

* fix: trim data prefix

* refactor: move functions to render package

* refactor: add back trim & flush

---------

Co-authored-by: JustSong <quanpengsong@gmail.com>
2024-06-30 18:36:33 +08:00
Ghostz
5a58426859
fix minimax empty log (#1560) 2024-06-30 16:09:16 +08:00
Laisky.Cai
91ec8b92f0 Merge remote-tracking branch 'origin/upstream/main' 2024-06-09 13:39:05 +00:00
取梦为饮
98669d5d48
feat: add support for bytedance's doubao (#1438)
* 增加豆包大模型支持

* chore: update channel options & add prompt

---------

Co-authored-by: 康龙彪 <longbiao.kang@i-tudou.com>
Co-authored-by: JustSong <songquanpeng@foxmail.com>
2024-06-08 13:26:26 +08:00
Laisky.Cai
c524e60d9f Merge remote-tracking branch 'origin/upstream/main' 2024-05-29 06:12:37 +00:00
Dafei Zhao
a9211d66f6
fix: fix gpt-4o token encoding (#1446) 2024-05-28 01:26:07 +08:00
Laisky.Cai
f56a469199 Merge remote-tracking branch 'origin/upstream/main' 2024-05-25 13:20:54 +00:00
Qiying Wang
2457d00afb
feat: support gpt-4o (#1431) 2024-05-21 01:14:22 +08:00
Laisky.Cai
7f0238e64c Merge remote-tracking branch 'origin/upstream/main' 2024-05-04 00:54:10 +00:00
JustSong
71f4403fd5 feat: add together.ai support (#1298) 2024-04-30 02:16:53 +08:00
JustSong
7e027d2bd0 fix: fix minimax prompt & completion tokens is empty (#1391) 2024-04-29 22:35:47 +08:00
JustSong
30f373b623 fix: fix usage is empty (close #1391) 2024-04-29 22:29:13 +08:00
Laisky.Cai
ca23dd9a97 Merge commit '1c2654320e5b6268b13b6efca40ce37a523d032b' 2024-04-28 01:53:31 +00:00