Laisky.Cai
ff963e819f
feat: update image model ratios and adjust quota calculations for billing
2025-03-16 13:07:36 +00:00
Laisky.Cai
4bdc2835bd
feat: update model list and add new model ratios for billing calculations
2025-03-16 12:50:06 +00:00
Laisky.Cai
3bf121aae8
fix: add warning log for model ratios below threshold
2025-03-16 07:48:55 +00:00
Laisky.Cai
400ee3aa24
Enhance logging and error handling in processing logic
...
- Enhance logging by including requested image counts for improved tracking.
- Implement user quota validation before processing image requests.
- Improve error handling for model validation and JSON unmarshalling in billing processes.
2025-03-16 07:47:59 +00:00
Laisky.Cai
fa794e7bd5
feat: update model lists and adjust quota calculation logic
...
⚠️ breaking change warning: for image models, the model ratio represents the quota cost per image
2025-03-16 02:01:44 +00:00
Laisky.Cai
f3300f08e2
fix: update model ratios and add completion ratio calculations
2025-03-14 03:07:58 +00:00
Laisky.Cai
2f32545ab0
Merge branch 'patch/openai-search'
2025-03-13 10:02:22 +00:00
Laisky.Cai
ad63c9e66f
fix: update cost calculation to use QuotaPerUsd for search context sizes
2025-03-13 09:50:35 +00:00
Laisky.Cai
82225818e3
fix: update cost calculation to use QuotaPerUsd for search context sizes
2025-03-13 09:17:59 +00:00
Laisky.Cai
413fcde382
feat: support openai websearch models
2025-03-13 03:46:15 +00:00
Laisky.Cai
eb5e7efdd7
feat: support openai websearch models
2025-03-13 03:37:38 +00:00
Laisky.Cai
a20f57a923
fix: update .gitignore and improve model handling in various adapters and billing ratios
...
closes #37
2025-03-13 01:47:41 +00:00
Laisky.Cai
13f49fa4b9
feat: add JSON serialization and update completion ratio handling with mutex synchronization
2025-03-03 05:37:38 +00:00
Laisky.Cai
fc828e407b
feat: add support for gpt-4.5-preview model and update billing ratios
2025-03-03 03:52:09 +00:00
Laisky.Cai
95527d76ef
feat: update model list and pricing for Claude 3.7 versions
2025-02-25 03:02:24 +00:00
Laisky.Cai
9b56485857
feat: update model list and pricing for Claude 3.7 versions
2025-02-25 01:27:07 +00:00
Laisky.Cai
8c77218480
feat: update billing ratios for DeepSeek models
2025-02-19 08:47:09 +00:00
Laisky.Cai
2a5908586d
Merge branch 'upstream/main'
2025-02-16 13:18:50 +00:00
longkeyy
7ac553541b
feat: update openrouter models and price 20250213 ( #2084 )
CI / Unit tests (push) Has been cancelled
CI / commit_lint (push) Has been cancelled
2025-02-16 18:01:59 +08:00
longkeyy
a5c517c27a
feat: update ali models and price 20250213 ( #2086 )
2025-02-16 18:01:24 +08:00
Laisky.Cai
fef7ae048b
feat: support gemini-2.0-flash ( #2055 )
...
* 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.
* feat: add new Gemini 2.0 flash models to adapter and billing ratio
* fix: update GetRequestURL to support gemini-1.5 model in versioning
2025-02-12 00:34:25 +08:00
Laisky.Cai
33f3400c12
fix: update Prompt type in GeneralOpenAIRequest and adjust related logic in ConvertCompletionsRequest
2025-02-10 02:11:53 +00:00
Laisky.Cai
4fb8501833
Merge branch 'upstream/main'
2025-02-09 03:49:59 +00:00
longkeyy
3e3b8230ac
fix: add read/write locks for ModelRatio and GroupRatio to prevent concurrent map read/write issues ( #2067 )
CI / Unit tests (push) Waiting to run
CI / commit_lint (push) Waiting to run
2025-02-09 11:02:45 +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
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
lyj
e43f758623
Update model.go ( #1963 )
2025-02-02 22:24:31 +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
Jeremy JIANG
36a03f465b
feat: update Zhipu model prices ( #2020 )
2025-02-02 22:06:07 +08:00
Laisky.Cai
0e19d60769
feat: extend support for o3 models and update model ratios
2025-02-01 11:44:04 +00: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
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
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
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
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
73a928f970
fix: update comments for o1 model handling
2025-01-05 02:42:37 +00: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
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
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