LiuVaayne
cf9b5f0b92
feat: support claude and gemini in vertex ai ( #1621 )
...
* feat: support claude and gemini in vertex ai
* fix: do not show api key field in channel page when the type is VertexAI
* fix: update getToken function to include channelId in cache key
2024-07-13 14:59:28 +08:00
Ghostz
65acb94f45
fix: text filed check for 4v request ( #1634 )
2024-07-13 14:57:08 +08:00
Laisky.Cai
65022b0e3e
Merge remote-tracking branch 'origin/upstream/main'
2024-07-10 06:26:02 +00:00
zijiren
6ad169975f
fix: impl cloudflare worker ai gateway ( #1617 )
2024-07-09 22:57:06 +08:00
Qiying Wang
f636c50c84
fix: duplicate [DONE] ( #1629 )
2024-07-09 22:43:59 +08:00
Laisky.Cai
ed21634738
fix: Update Docker image configuration for improved build and security
...
Here is the commit summary:
- Update Dockerfile to use golang 1.22.5-bullseye and new dependencies.
- Upgrade dependencies, including apt-get, make, and build-essential.
- Improve Docker image build process with updated RUN commands and flags.
Note that I didn't include details from the file summaries, as per your request. The goal is to provide a high-level overview of the changes in the commit.
2024-07-09 07:03:38 +00:00
Laisky.Cai
a2a8aa741f
refactor: update Dockerfile to remove unnecessary build flags
2024-07-09 06:54:04 +00: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
Jason
e090e76c86
feat: add Novita AI as model provider ( #1609 )
2024-07-06 13:16:46 +08:00
open source
6a941748f8
feat: add initial root access token ( #1598 )
...
Signed-off-by: xiaobo <peterwillcn@gmail.com>
2024-07-06 13:15:17 +08:00
open source
46a0773580
fix: update readme docs ( #1599 )
...
Signed-off-by: xiaobo <peterwillcn@gmail.com>
2024-07-06 13:14:32 +08:00
zijiren
ffdb0b0c81
fix: use musl libc ( #1597 )
2024-07-06 13:14:07 +08:00
zijiren
efd30a40b3
feat: cloudflare support native openai api ( #1596 )
2024-07-06 13:12:30 +08:00
Qiying Wang
d7a78f3397
feat: support test specific model ( #1600 )
2024-07-05 18:05:16 +08:00
Leo Q
273be55797
feat(ui): show available models for air theme ( #1595 )
...
* feat(ui): air 主题显示可用模型
* chore: 改为全角括号
2024-07-04 08:35:41 +08:00
Leo Q
ec6ad24810
feat: support smtp without auth ( #1101 )
2024-07-03 22:23:49 +08:00
LinZeliang
c4fe57c165
feat: support one or more log file ( #1400 )
...
Co-authored-by: Laisky.Cai <github@laisky.com>
2024-07-03 20:53:29 +08:00
igophper
274fcf3d76
refactor: init db ( #1590 )
...
Co-authored-by: 江杭辉 <jianghanghui@k.app>
2024-07-03 20:50:40 +08:00
Laisky.Cai
740b8debda
Merge remote-tracking branch 'origin/upstream/main'
2024-07-03 05:19:46 +00:00
Mikey
0fc07ea558
feat: add support for Claude 3 tool use (function calling) ( #1587 )
...
* feat: add tool support for AWS & Claude
* fix: add {} for openai compatibility in streaming tool_use
2024-07-02 00:12:01 +08:00
Leo Q
1ce1e529ee
ci: skip archive, upload directly ( #1586 )
2024-07-02 00:05:47 +08:00
Laisky.Cai
c20f27ec45
Merge remote-tracking branch 'origin/upstream/main'
2024-07-01 03:09:33 +00:00
Darkside
d936817de9
docs: add related projects ( #1562 )
...
Co-authored-by: 成达 <chengda.615@bytedance.com>
2024-06-30 19:57:30 +08:00
igophper
fecaece71b
fix: fix size not support during image generation ( #1564 )
...
Fixes #1224 , #1068
2024-06-30 19:52:33 +08:00
Shi Jilin
c135d74f13
feat: support Spark4.0 Ultra ( #1575 )
...
* fix: fix SparkDesk Function Call (修复 Spark Pro/Max函数调用只会返回普通对话回答而不是Function Call回答的问题
* feat: support Spark4.0 Ultra
2024-06-30 19:38:02 +08:00
lihangfu
d0369b114f
feat: support spark4.0 ultra ( #1569 )
...
* feat: 支持v3最新协议的腾讯混元(#1452)
* feat: 支持Spark4.0 Ultra
---------
Co-authored-by: lihangfu <hfli8@iflytek.com>
2024-06-30 19:37:07 +08:00
zijiren
b21b3b5b46
refactor: abusing goroutines and channel ( #1561 )
...
* refactor: abusing goroutines
* fix: trim data prefix
* refactor: move functions to render package
* refactor: add back trim & flush
---------
Co-authored-by: JustSong <quanpengsong@gmail.com>
2024-06-30 18:36:33 +08:00
shaoyun
ae1cd29f94
feat: added support for Claude Sonnet 3.5 ( #1567 )
2024-06-30 16:25:25 +08:00
dependabot[bot]
f25aaf7752
chore(deps): bump golang.org/x/image from 0.16.0 to 0.18.0 ( #1568 )
...
Bumps [golang.org/x/image](https://github.com/golang/image ) from 0.16.0 to 0.18.0.
- [Commits](https://github.com/golang/image/compare/v0.16.0...v0.18.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/image
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-06-30 16:21:48 +08:00
JustSong
b70a07e814
fix: fix ci
2024-06-30 16:19:49 +08:00
igophper
34cb147a74
refactor: replace hardcoded string with ctxkey constant ( #1579 )
...
Co-authored-by: 江杭辉 <jianghanghui@k.app>
2024-06-30 16:13:43 +08:00
Leo Q
8cc1ee6360
ci: use codecov to upload coverage report ( #1583 )
2024-06-30 16:12:16 +08:00
Ghostz
5a58426859
fix minimax empty log ( #1560 )
2024-06-30 16:09:16 +08:00
Laisky.Cai
4fd0b247d2
chore: decrease token quota in ConsumeToken function
...
This commit modifies the ConsumeToken function in the token.go file to decrease the token quota by the specified amount. It replaces the previous code that directly updated the quota values with a call to the DecreaseTokenQuota function from the model package. This change improves code clarity and maintainability.
Closes #123
2024-06-25 06:15:07 +00:00
Laisky.Cai
671039f050
fix: Update AddUsedQuota data type in consumeTokenRequest struct
2024-06-25 06:08:33 +00:00
Laisky.Cai
078be37e87
chore: Update consumeTokenRequest struct in token.go for better clarity
2024-06-24 08:20:49 +00:00
Laisky.Cai
4eade81869
chore: add endpoint for consuming tokens
...
This commit adds a new endpoint `/token/consume` to the API router, allowing users to consume tokens from another source. It includes changes to the `token.go` file in the `controller` package.
2024-06-24 07:58:14 +00:00
Laisky.Cai
a8cc96bf4a
chore: update token.go to record consumption log
2024-06-24 06:14:58 +00:00
Laisky.Cai
1c2e8f046b
chore: refactor CI workflow and add linting
...
Refactor the CI workflow to improve code organization and readability. Also, add a new linting workflow to ensure code quality. This commit includes changes to the `.github/workflows/ci.yml` and `.github/workflows/lint.yml` files.
Closes #123
2024-06-24 06:10:31 +00:00
Laisky.Cai
1d82e509aa
chore: refactor updateTokenDto struct in token.go for better clarity
2024-06-24 06:06:57 +00:00
Laisky.Cai
0e35db82d5
chore: Update token.go to allow admin to add or subtract used quota
2024-06-24 05:52:23 +00:00
Laisky.Cai
0164cdbcf2
Merge remote-tracking branch 'origin/upstream/main'
2024-06-24 01:46:01 +00:00
JustSong
254b9777c0
feat: support load env variables from .env file
2024-06-23 15:37:11 +08:00
JustSong
114c44c6e7
ci: fix ci.yml
2024-06-23 15:17:58 +08:00
JustSong
a3c7e15aed
fix: fix ut
2024-06-23 15:14:39 +08:00
JustSong
3777517f64
chore: add ut
2024-06-23 14:28:55 +08:00
JustSong
9fc5f427dc
chore: add commit lint and rename yml
2024-06-23 14:01:57 +08:00
JustSong
864a467886
chore: rename go.yml to unit-testing.yml
2024-06-23 13:57:19 +08:00
JustSong
ed78b5340b
fix: fix go.yml
2024-06-23 13:53:30 +08:00