Laisky.Cai
a9310deb65
feat: add support for new Gemini model version 'gemini-2.0-flash-thinking-exp-01-21'
2025-01-22 03:27:22 +00:00
Laisky.Cai
13b1b165bd
refactor: update UI text and error messages to English for better accessibility
2025-01-19 12:59:58 +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
ddcd1295ff
Merge pull request #20 from mxdlzg/system_instruction_feature
...
System instruction feature
2025-01-06 16:12:26 +08:00
Laisky.Cai
73a928f970
fix: update comments for o1 model handling
2025-01-05 02:42:37 +00:00
mxdlzg
ad56898d5a
feat: use SystemInstructions and remove gemini dummy message
2024-12-23 14:44:39 +08:00
mxdlzg
ba50a137ea
feat: add tool choice configuration and update steam handling in Gemini
...
update ToolConfig to use pointer type in ChatRequest
2024-12-23 14:44:25 +08:00
Laisky.Cai
a9604fd59c
Merge branch 'upstream/main'
2024-12-22 12:13:47 +00:00
Qiying Wang
a858292b54
feat: support gpt-4o-2024-11-20 ( #1941 )
CI / Unit tests (push) Has been cancelled
CI / commit_lint (push) Has been cancelled
2024-12-22 19:49:50 +08:00
ZhangTianrong
59eae186a3
fix: remove the duplicate claude-3-5-haiku-20241022
in Anthropic's base model list ( #1957 )
...
* Update constants.go
Remove the duplicate `claude-3-5-haiku-20241022` causing issue 1928
* fix: fix syntax error
---------
Co-authored-by: JustSong <quanpengsong@gmail.com>
2024-12-22 18:58:29 +08:00
Wei Tingjiang
49ffb1c60d
feat: enhance response handling to support gemini-2.0-thinking ( #1995 )
2024-12-22 18:25:44 +08:00
longkeyy
2f16649896
feat: update qwen model and price ( #1966 )
2024-12-22 18:22:57 +08:00
Laisky.Cai
dc181dd7fa
Merge branch 'upstream/main'
2024-12-22 02:50:40 +00:00
Laisky.Cai
cf04ab9564
fix: update default version handling for Gemini models and improve billing ratio formatting
2024-12-22 02:32:46 +00:00
Jinjun Liu
c4afcc8337
feat: add support for gemini-2.0-flash-thinking-exp model
2024-12-21 19:46:35 -06:00
Laisky.Cai
e9f117ff72
feat: add gemini-2.0-flash-exp and fix race condition in processChannelRelayError ( #1983 )
...
CI / Unit tests (push) Waiting to run
CI / commit_lint (push) Waiting to run
Co-authored-by: JustSong <39998050+songquanpeng@users.noreply.github.com>
2024-12-21 20:32:30 +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
7851933cdf
test: enhance image editing tests with custom FileHeader and PNG encoding
2024-12-20 02:45:27 +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
79bd053a0a
Merge branch 'feature/replicate-remix'
2024-12-16 09:28:53 +00:00
Laisky.Cai
f72c715e4c
feat: support image inpainting for flux-fill on replicate
2024-12-16 09:12:24 +00:00
Laisky.Cai
61d5f0eccf
fix: update request URL formatting in Adaptor for proper query string handling
2024-12-15 02:16:56 +00:00
Laisky.Cai
33493aa8b3
fix: resolve race condition in processChannelRelayError and update API version handling for gemini-2.0-flash-exp
2024-12-15 02:06:35 +00:00
Laisky.Cai
c76ac9043d
feat: add support for gemini-2.0-flash-exp model in constants and billing ratio
2024-12-14 01:10:48 +00:00
Laisky.Cai
36e99cf6ec
fix: update image request handling to always return one image and improve error logging
2024-11-28 09:15:40 +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
d097011cd5
feat: improve error handling and update billing model with latest ratio
2024-11-20 02:11:16 +00:00
Laisky.Cai
082cfbe574
Merge remote-tracking branch 'origin/upstream/main'
2024-11-20 02:09:28 +00:00
lihangfu
2b2dc2c733
fix: update Spark Lite's domain to lite ( #1896 )
2024-11-09 23:55:55 +08:00
wanthigh
c368232f50
fix: changeoptional field to pointer type ( #1907 )
...
* fix:修复在渠道配置中设置模型重定向时,temperature为0被忽略的问题
* fix: set optional fields to pointer type
---------
Co-authored-by: JustSong <songquanpeng@foxmail.com>
2024-11-09 23:31:46 +08:00
Laisky.Cai
cbfc983dc3
feat: add new claude models ( #1910 )
...
* feat: Add new models to ModelList in constants.go
* feat: update model lists and mappings for Claude 3.5 versions
---------
Co-authored-by: JustSong <39998050+songquanpeng@users.noreply.github.com>
2024-11-09 22:48:54 +08:00
Ryo Shen
8ec092ba44
feat: add support for xAI ( #1915 )
CI / Unit tests (push) Has been cancelled
CI / commit_lint (push) Has been cancelled
2024-11-07 23:52:38 +08:00
shaoyun
b0b88a79ff
feat: added support for Claude 3.5 Haiku ( #1912 )
2024-11-07 23:51:17 +08:00
Laisky.Cai
62a8ea9967
feat: Update model lists and mappings for Claude 3.5 versions
2024-11-05 00:50:18 +00:00
Laisky.Cai
12be7700b9
feat: Add new models to ModelList in constants.go
2024-10-31 13:14:58 +00:00
Laisky.Cai
2e5e6faad7
Merge remote-tracking branch 'origin/upstream/main'
2024-10-29 01:15:54 +00:00
Laisky.Cai
8160de80ef
feat: Add new model to AwsModelIDMap
...
Add the "claude-3-5-sonnet-20241022" model to the AwsModelIDMap in the main.go file.
2024-10-28 01:12:13 +00:00
JustSong
f75a17f8eb
feat: always return usage in stream mode
2024-10-27 17:58:44 +08:00
Wei Tingjiang
6f13a3bb3c
feat: update Gemini adaptor to support custom response format ( #1892 )
2024-10-27 17:10:50 +08:00