Commit Graph

188 Commits

Author SHA1 Message Date
Laisky.Cai
032f9892c8 Merge branch 'upstream/main' 2025-02-07 02:36:12 +00:00
Laisky.Cai
2ab5f8ab47 fix: update GetRequestURL to support gemini-1.5 model in versioning 2025-02-07 02:31:22 +00:00
Laisky.Cai
6ac92a008b feat: update API version handling for Azure channel in Adaptor 2025-02-07 01:36:25 +00:00
JustSong
293ba93ad6 fix: remove outdated model from ModelList and add new deepseek models 2025-02-07 00:13:57 +08:00
JustSong
e146b14d46 fix: add default API version handling and enhance error message checks for Gemini 2025-02-07 00:01:38 +08:00
JustSong
e19045f925 chore: add deepseek-reasoner 2025-02-06 23:38:29 +08:00
Laisky.Cai
b0e9573caf feat: add new Gemini 2.0 flash models to adapter and billing ratio 2025-02-06 12:57:57 +00:00
Laisky.Cai
cdacfb6787 Merge branch 'feature/gemini-2.0-flash' 2025-02-06 03:11:49 +00:00
Laisky.Cai
d70335ecea feat: support gemini-2.0-flash
- Enhance model support by adding new entries and refining checks for system instruction compatibility.
- Update logging display behavior and adjust default quotas for better user experience.
- Revamp pricing structures in the billing system to reflect current model values and deprecate outdated entries.
- Streamline code by replacing hardcoded values with configurations for maintainability.
2025-02-06 03:08:41 +00:00
Laisky.Cai
3e4708b77e feat: support gemini-2.0-flash 2025-02-06 02:34:41 +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
2250f311e1 feat: add latest version of Claude model to constants 2025-02-02 22:25:52 +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
JustSong
d7028b55fd feat: update model list in Zhipu constants for expanded options 2025-02-02 22:15:42 +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
0e19d60769 feat: extend support for o3 models and update model ratios 2025-02-01 11:44:04 +00:00
Laisky.Cai
f47c70aaa2 Merge branch 'upstream/main' 2025-01-31 10:32:35 +00: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)
Some checks are pending
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
1ea322f371 fix: update OpenAI adaptor to set default temperature and clarify model limitations 2025-01-24 13:41:00 +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
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)
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
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)
Some checks are pending
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