JustSong
2250f311e1
feat: add latest version of Claude model to constants
2025-02-02 22:25:52 +08:00
lyj
e43f758623
Update model.go ( #1963 )
2025-02-02 22:24:31 +08:00
jiz4oh
ea3331b79a
fix: remove duplicated model ( #2012 )
...
the model `llama-3.2-11b-vision-preview` was declared at 3915ce9814/relay/adaptor/groq/constants.go (L11)
2025-02-02 22:21:30 +08:00
Jeremy JIANG
7a97ddc03c
fix: fix hunyuan paramete & update price ( #2019 )
...
* fix: omit null TopP and Temperature fields in request body
* feat: update Hunyuan model ratios
2025-02-02 22:20:38 +08:00
JustSong
d7028b55fd
feat: update model list in Zhipu constants for expanded options
2025-02-02 22:15:42 +08:00
Jeremy JIANG
36a03f465b
feat: update Zhipu model prices ( #2020 )
2025-02-02 22:06:07 +08: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
acd9cc0db5
Merge branch 'upstream/main'
2025-02-01 13:17:28 +00:00
Laisky.Cai
0e19d60769
feat: extend support for o3 models and update model ratios
2025-02-01 11:44:04 +00:00
JustSong
4f68f3e1b3
chore: update log content
2025-01-31 20:16:56 +08:00
JustSong
0bab887b2d
chore: update log content
2025-01-31 20:15:04 +08:00
JustSong
dc470ce82e
feat: show stream & elapsed time in log detail
2025-01-31 19:34:22 +08:00
Laisky.Cai
f47c70aaa2
Merge branch 'upstream/main'
2025-01-31 10:32:35 +00:00
JustSong
ea0721d525
feat: update log content format
2025-01-31 18:15:43 +08:00
Fennng
09911a301d
feat: support hunyuan-embedding ( #2035 )
...
* feat: support hunyuan-embedding
* chore: improve implementation
---------
Co-authored-by: LUO Feng <luofeng@flowpp.com>
Co-authored-by: JustSong <quanpengsong@gmail.com>
2025-01-31 16:48:02 +08:00
Laisky.Cai
d88e07fd9a
feat: add deepseek-reasoner & gemini-2.0-flash-thinking-exp-01-21 ( #2045 )
...
CI / Unit tests (push) Waiting to run
CI / commit_lint (push) Waiting to run
* feat: add MILLI_USD constant and update pricing for deepseek services
* feat: add support for new Gemini model version 'gemini-2.0-flash-thinking-exp-01-21'
2025-01-31 15:15:59 +08:00
Laisky.Cai
e49bb64ea0
fix: remove deprecated gemini model references and update pricing ratios
2025-01-28 04:01:46 +00:00
Laisky.Cai
d5fa98f2e0
fix: translate error messages and comments to English for consistency
2025-01-27 03:34:27 +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
5e351bc02a
fix: whisper model billing
...
- Refactor model name handling across multiple controllers to improve clarity and maintainability.
- Enhance error logging and handling for better debugging and request processing robustness.
- Update pricing models in accordance with new calculations, ensuring accuracy in the billing logic.
2025-01-26 08:02:55 +00:00
Laisky.Cai
f1db73405e
fix: make ImagePrompt optional in the model definition
...
- Update `ImagePrompt` field to be optional in the replication model.
- Improve data handling by adding `omitempty` tag for flexibility.
2025-01-26 06:26:29 +00:00
Laisky.Cai
e265335fc5
feat: add ReasoningEffort field to GeneralOpenAIRequest and ReasoningContent to Message struct
2025-01-26 06:24:39 +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
531f832d1e
refactor: update variable names and improve code readability; add Makefile for linting and installation
2025-01-23 03:32:41 +00:00
Laisky.Cai
66d4936241
feat: add MILLI_USD constant and update pricing for deepseek services
2025-01-22 09:39:25 +00:00
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
21041ec7ac
Merge branch 'main' into pr/Laisky/25
2025-01-17 07:45:29 +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
c1a0471e73
feat: add audio processing helper functions and update Dockerfile
...
inspired by https://github.com/Laisky/one-api/pull/21
2025-01-08 02:35:38 +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
Yuwei Ba
ff589b5e4a
chore: update model mapping implementation for audio ( #1932 )
...
* fixed model mapping
* chore: update implementation
---------
Co-authored-by: JustSong <quanpengsong@gmail.com>
2024-12-22 19:33:11 +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
3cb1b4fd35
fix: enhance request body handling for OpenAI API type in RelayTextHelper
2024-11-27 06:38:24 +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
1f103202a6
fix: refactor postConsumeQuota function to return quota and update user request cost handling
2024-11-22 03:12:09 +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
JustSong
6ab87f8a08
feat: add warning in log when system prompt is reset
CI / Unit tests (push) Has been cancelled
CI / commit_lint (push) Has been cancelled
2024-11-10 17:18:46 +08:00
JustSong
6eb0770a89
feat: support set system prompt for channel ( close #1920 )
2024-11-10 14:53:34 +08:00
JustSong
92cd46d64f
feat: able to use ENFORCE_INCLUDE_USAGE to enforce include usage in response
CI / Unit tests (push) Waiting to run
CI / commit_lint (push) Waiting to run
2024-11-10 00:36:08 +08:00
lihangfu
2b2dc2c733
fix: update Spark Lite's domain to lite ( #1896 )
2024-11-09 23:55:55 +08:00
JustSong
a3d7df7f89
feat: update GeneralOpenAIRequest
2024-11-09 23:43:08 +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
shaoyun
f092eed1db
feat: add support for Claude Sonnet 3.5 v2 ( #1888 )
2024-10-27 17:10:02 +08:00
longkeyy
629378691b
feat: update groq model and price ( #1864 )
2024-10-27 17:07:24 +08:00
Pan, Wen-Ming
a4d6e7a886
feat: add Vertex AI gemini-1.5-pro-002 and gemini-1.5-flash-002 ( #1854 )
2024-10-27 17:04:41 +08:00
lihangfu
e32cb0b844
feat: support SparkDesk-v3.5-32K ( #1832 )
...
Co-authored-by: lihangfu <hfli8@iflytek.com>
2024-10-27 17:02:54 +08:00
Laisky.Cai
b048cad5a6
fix: update model list in vertexai/claude/adapter.go
...
The commit updates the model list in the `vertexai/claude/adapter.go` file. It adds a new model, `claude-3-5-sonnet-v2@20241022`, to the list. This change ensures that the latest model is included in the list.
2024-10-23 13:28:26 +00:00
Laisky.Cai
ce57b2e1e1
fix: update Go base image version and reorder model list in constants
2024-09-25 09:55:57 +00: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
lihangfu
32f90a79a8
feat: support SparkDesk-v3.1-128K ( #1732 )
...
* feat: 支持SparkDesk-v3.1-128K以及hunyuan-vision
* feat: 支持SparkDesk-v3.1-128K以及hunyuan-vision
---------
Co-authored-by: lihangfu <hfli8@iflytek.com>
2024-09-22 16:29:09 +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
forrestlinfeng
c9ac670ba1
feat: update stepfun models ( #1740 )
...
Co-authored-by: chenlinfeng <chenlinfeng@step.ai>
2024-09-21 22:48:46 +08:00