Laisky.Cai
acd9cc0db5
Merge branch 'upstream/main'
2025-02-01 13:17:28 +00: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
JustSong
ea0721d525
feat: update log content format
2025-01-31 18:15:43 +08:00
Laisky.Cai
d5fa98f2e0
fix: translate error messages and comments to English for consistency
2025-01-27 03:34:27 +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
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
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
a9604fd59c
Merge branch 'upstream/main'
2024-12-22 12:13:47 +00: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
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
502cf3315d
feat: support llm chat on replicate
2024-12-19 03:14:32 +00:00
Laisky.Cai
f72c715e4c
feat: support image inpainting for flux-fill on replicate
2024-12-16 09:12:24 +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
1f103202a6
fix: refactor postConsumeQuota function to return quota and update user request cost handling
2024-11-22 03:12:09 +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
Laisky.Cai
4c96688e7c
Merge remote-tracking branch 'origin/upstream/main'
2024-07-23 01:14:23 +00:00
Laisky.Cai
c936198ac8
feat: add Proxy channel type and relay mode ( #1678 )
...
Add the Proxy channel type and relay mode to support proxying requests to custom upstream services.
2024-07-22 22:51:19 +08:00
igophper
39383e5532
fix: support embedding models for doubao ( #1662 )
...
Fixes #1594
2024-07-22 22:38:50 +08:00
Laisky.Cai
f9417d32e1
Merge remote-tracking branch 'origin/upstream/main'
2024-07-09 06:28:06 +00:00
Qiying Wang
720fe2dfeb
feat: refactor AwsClaude to Aws to support both llama3 and claude ( #1601 )
...
* feat: refactor AwsClaude to Aws to support both llama3 and claude
* fix: aws llama3 ratio
2024-07-06 13:19:41 +08:00
Laisky.Cai
c20f27ec45
Merge remote-tracking branch 'origin/upstream/main'
2024-07-01 03:09:33 +00:00
igophper
fecaece71b
fix: fix size not support during image generation ( #1564 )
...
Fixes #1224 , #1068
2024-06-30 19:52:33 +08:00
Laisky.Cai
c524e60d9f
Merge remote-tracking branch 'origin/upstream/main'
2024-05-29 06:12:37 +00:00
JustSong
ceea4c6d4a
feat: support user content download proxy & relay proxy now
2024-05-29 01:14:00 +08:00
Mo
332c8db0b3
fix: add prefixes to image models to solve the problem of duplicate models ( #1469 )
...
* Add prefixes to image models to solve the problem of duplicate models
* Fix the issue that response_format is not set, causing the b64_json parameter to be ignored.
2024-05-28 01:32:57 +08:00
Laisky.Cai
7f0238e64c
Merge remote-tracking branch 'origin/upstream/main'
2024-05-04 00:54:10 +00:00
JustSong
1f76c80553
fix: fix aws claude panic ( #1384 )
2024-04-29 22:49:06 +08:00
Laisky.Cai
ca23dd9a97
Merge commit '1c2654320e5b6268b13b6efca40ce37a523d032b'
2024-04-28 01:53:31 +00:00
plusye
1c2654320e
fix: fix getPreConsumedQuota ( #1312 )
2024-04-27 16:07:06 +08:00
JustSong
007906216d
feat: support DeepL's model ( close #1126 )
2024-04-27 13:37:22 +08:00
JustSong
9026ec7510
feat: support cloudflare now
2024-04-26 23:05:48 +08:00
Laisky.Cai
425059f5c6
feat: support openai images edits api
2024-04-25 03:02:20 +00:00
Laisky.Cai
84a6817314
feat: able to fetch every request's cost
2024-04-23 00:58:25 +00:00
Laisky.Cai
7047d9605e
Merge commit '3d149fedf45472eff92910324974c762fc37dad6'
2024-04-21 15:05:13 +00:00
JustSong
3d149fedf4
chore: do not hardcode context key
2024-04-21 19:43:23 +08:00
Laisky.Cai
c735b9b4d3
Merge commit '2369025842b828ac38f4427fd1ebab8d03b1fe7f'
2024-04-20 01:07:29 +00:00