Commit Graph

1270 Commits

Author SHA1 Message Date
Laisky.Cai
b5c55a03cf docs: update README to include support for Vertex Imagen3 2025-01-12 04:24:12 +00:00
Laisky.Cai
feacea0321 feat: support vertex imagen3 2025-01-12 04:18:57 +00:00
Laisky.Cai
bfe28fc1f8 fix: update README links and clean up GetAudioDuration function 2025-01-08 05:07:52 +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
Laisky.Cai
d70d5656ab Merge branch 'upstream/main' 2024-12-30 01:24:28 +00:00
JustSong
3915ce9814 chore: update ci yaml
Some checks failed
CI / Unit tests (push) Has been cancelled
CI / commit_lint (push) Has been cancelled
2024-12-27 22:01:37 +08:00
JustSong
999defc88b chore: update readme 2024-12-27 21:59:38 +08:00
JustSong
b51c47bc77
docs: update README.md 2024-12-27 21:45:51 +08:00
JustSong
4f25cde132 fix: add branch check 2024-12-27 20:41:20 +08:00
JustSong
d89e9d7e44 fix: add branch limitation and drop pull_request trigger for ci.yml 2024-12-27 20:34:04 +08: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
3e82e76b03 feat: implement automatic removal of old request cost data 2024-12-22 12:23:32 +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)
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
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
Ke Wang
95e8c16338
feat: add balance query support for DeepSeek (#1946)
* Support Balance Query for DeepSeek

* Fix
2024-12-22 19:26:33 +08:00
lihangfu
381172cb36
feat: support Redis Sentinel and Redis Cluster (#1952)
* feature: support Redis Sentinel and Redis Cluster

* chore: update implementation

---------

Co-authored-by: JustSong <quanpengsong@gmail.com>
2024-12-22 19:21:24 +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
bestlaw66
ce52f355bb
docs: add tutorial section for BT Panel installation (#1985)
* Update README.md

在国内有大部分用户都在使用宝塔面板管理服务器,因此增加使用宝塔面板部署的教程,可视化的部署方式可以帮助用户更加便捷的部署one-api

* docs: update readme

---------

Co-authored-by: JustSong <quanpengsong@gmail.com>
2024-12-22 18:55:04 +08:00
Ke Wang
cb9d0a74c9
fix: fix balance query for siliconflow (#1960) 2024-12-22 18:48:47 +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
dependabot[bot]
af3aa57bd6
chore(deps): bump golang.org/x/crypto from 0.24.0 to 0.31.0 (#1976)
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.24.0 to 0.31.0.
- [Commits](https://github.com/golang/crypto/compare/v0.24.0...v0.31.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-12-22 18:21:00 +08:00
Laisky.Cai
dc181dd7fa Merge branch 'upstream/main' 2024-12-22 02:50:40 +00:00
Laisky.Cai
00f5e25e57
Merge pull request #18 from jinjunliu/main
feat: add support for gemini-2.0-flash-thinking-exp model
2024-12-22 10:34:33 +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
42dfcd6167 docs: add Menu section to README for better navigation 2024-12-21 13:26:28 +00:00
Laisky.Cai
11cd22e9e9 fix: update README to include new Docker image and request cost details; add UserRequestCost model migration 2024-12-21 13:23:55 +00: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
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
JustSong
36c8f4f15c docs: update readme
Some checks are pending
CI / Unit tests (push) Waiting to run
CI / commit_lint (push) Waiting to run
2024-12-21 00:33:20 +08:00
JustSong
45b51ea0ee feat: update feishu oauth login 2024-12-20 23:27:00 +08:00
Laisky.Cai
524606c4ae fix: improve session handling for non-base64 encoded session secrets 2024-12-20 05:56:35 +00: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
c48a182206 chore: add CI workflows for building and pushing arm64 Docker images 2024-12-20 02:36:50 +00:00
Laisky.Cai
df57dde468 fix: handle non-base64 encoded session secret gracefully 2024-12-20 02:10:34 +00:00
Laisky.Cai
b2fcadc0bc docs: update README to include support for OpenAI O1 2024-12-19 06:05:56 +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
75e7fee400 docs: update README to include support for replicate chat models 2024-12-19 04:57:27 +00:00
Laisky.Cai
502cf3315d feat: support llm chat on replicate 2024-12-19 03:14:32 +00:00
Laisky.Cai
4c86e7c506 docs: update README to clarify project status and encourage contributions 2024-12-17 08:55:39 +00:00
Laisky.Cai
6568009732 docs: enhance README with detailed feature descriptions and bug fix section 2024-12-17 08:52:06 +00:00
Laisky.Cai
1232c000dc docs: update README to include support for gemini-2.0-flash-exp and replicate flux & remix 2024-12-16 09:35:22 +00:00