David Zhuang
5cf23d8698
feat: add Google Gemini Pro support ( #826 )
...
* fest: Add Google Gemini Pro, fix #810
* fest: Add tooling to Gemini; Add OpenAI-like system prompt to Gemini
* refactor: removing unused if statement
* fest: Add dummy model message for system message in gemini model
* chore: update implementation
---------
Co-authored-by: JustSong <songquanpeng@foxmail.com>
2023-12-17 12:48:32 +08:00
JustSong
379074f7d0
feat: support plugin for ali channel ( close #797 )
2023-12-10 17:22:52 +08:00
Tillman Bailee
a3f80a3392
feat: enable channel when test succeed ( #771 )
...
* 增加功能: 渠道 - 测试所有通道; 设置 - 运营设置 - 监控设置 - 成功时自动启用通道
* refactor: update implementation
---------
Co-authored-by: liyujie <29959257@qq.com>
Co-authored-by: JustSong <songquanpeng@foxmail.com>
2023-12-03 20:10:57 +08:00
JustSong
9889377f0e
feat: support claude-2.x ( close #736 )
2023-11-24 21:39:44 +08:00
Baksi
7c4505bdfc
fix: numeric sorting in tables ( #695 )
...
* Update sorting method for id
* Update sorting method for id (token)
* Update sorting method for id (redemptions)
* Update sorting method for id (channel)
* chore: use same logic for all tables
---------
Co-authored-by: JustSong <songquanpeng@foxmail.com>
2023-11-10 21:20:05 +08:00
papersnake
c70c614018
feat: support chatglm_turbo ( #648 )
...
* feat: support chatglm_turbo
* fix: remove characterglm
2023-11-05 17:59:38 +08:00
JustSong
63fafba112
feat: support ERNIE-Bot-4 ( close #608 )
2023-10-22 18:48:35 +08:00
JustSong
824444244b
feat: able to delete all disabled channels
2023-10-14 17:25:48 +08:00
JustSong
fbe9985f57
chore: show prompt to let the user know
2023-10-14 16:32:01 +08:00
阿鹏
fa41ca9805
fix: fix url not passing ( #562 )
...
解决令牌页面聊天按钮丢失url参数的问题
2023-10-14 12:45:00 +08:00
Mikey
e338de45b6
fix: 404 Component is missing ( #592 )
...
* fix: 404 Component is missing
* chore: update 404 page style
---------
Co-authored-by: JustSong <songquanpeng@foxmail.com>
2023-10-14 12:42:07 +08:00
JustSong
b4b4acc288
feat: support Tencent's model ( close #519 )
2023-10-03 14:19:03 +08:00
JustSong
d663de3e3a
chore: delete 360's 360GPT_S2_V9.4
2023-10-03 12:52:45 +08:00
JustSong
8d34b7a77e
feat: able to delete all manually disabled channels ( close #539 )
2023-10-02 13:06:27 +08:00
JustSong
f0fc991b44
chore: remind user to change default password ( close #516 )
2023-09-29 18:07:20 +08:00
JustSong
fd98463611
chore: update ali's model name
2023-09-23 22:57:59 +08:00
JustSong
1d258cc898
fix: add default value for base url
2023-09-18 22:49:05 +08:00
JustSong
159b9e3369
fix: fix unable to set zero value for base url & model mapping
2023-09-18 22:07:17 +08:00
Xyfacai
ecf8a6d875
feat: supprt channel priority now & record channel id in log ( #484 )
...
* feat: 支持设置渠道优先级 & 日志中显示使用的渠道ID
* fix: 设置渠道优先级未更新 ability
* chore: update implementation
---------
Co-authored-by: Xiangyuan Liu <xiangyuan.liu@ui.com>
Co-authored-by: JustSong <songquanpeng@foxmail.com>
Co-authored-by: JustSong <39998050+songquanpeng@users.noreply.github.com>
2023-09-17 19:18:16 +08:00
JustSong
12ef9679a7
fix: fix url not passing when using custom chat_link
2023-09-17 17:19:12 +08:00
JustSong
328aa68255
feat: able to delete logs now ( close #486 )
2023-09-17 17:09:56 +08:00
JustSong
0d50ad4b2b
chore: update channel test prompt
2023-09-17 11:34:06 +08:00
JustSong
39ae8075e4
fix: fix oauth2 state not checking
2023-09-15 00:24:20 +08:00
igophper
d0a0e871e1
fix: support ali's embedding model ( #481 , close #469 )
...
* feat:支持阿里的 embedding 模型
* fix: add to model list
---------
Co-authored-by: JustSong <songquanpeng@foxmail.com>
Co-authored-by: JustSong <39998050+songquanpeng@users.noreply.github.com>
2023-09-03 22:12:35 +08:00
JustSong
276163affd
fix: press enter to submit custom model name
2023-09-03 21:40:58 +08:00
JustSong
7e575abb95
feat: add channel type FastGPT
2023-09-03 15:50:49 +08:00
JustSong
04acdb1ccb
feat: support aiproxy's library
2023-09-03 12:51:59 +08:00
JustSong
f0d5e102a3
fix: fix log table use created_at as key instead of id
...
Co-authored-by: 13714733197 <13714733197@163.com>
2023-08-30 21:43:01 +08:00
JustSong
56b5007379
feat: supper OpenRouter now ( close #333 , close #340 )
2023-08-27 16:16:45 +08:00
JustSong
5ee24e8acf
feat: support 360's models ( close #331 , close #461 )
...
feat: support 360's models (close #331 , close #461 )
2023-08-26 13:36:20 +08:00
滔哥
7e058bfb9b
feat: support xunfei's v2 api ( #442 , close #440 )
...
* 兼容讯飞v2接口
* Revert "兼容讯飞v2接口"
This reverts commit 21f05d1294
.
* fix: fix implementation
---------
Co-authored-by: JustSong <songquanpeng@foxmail.com>
Co-authored-by: JustSong <39998050+songquanpeng@users.noreply.github.com>
2023-08-19 17:50:34 +08:00
Benny
1b56becfaa
feat: show total quota consumption only when user click ( #448 )
...
* feat: add toggleable visibility for total quota using an eye icon
* chore: update implementation
---------
Co-authored-by: JustSong <songquanpeng@foxmail.com>
2023-08-19 17:08:50 +08:00
igophper
4ef5e2020c
fix: fix baidu's embedding api ( #398 )
...
* fix:judge baidu embeddings input type
* chore: add back update all channels balance
* chore: update default configuration for sql connection
---------
Co-authored-by: JustSong <songquanpeng@foxmail.com>
2023-08-13 00:45:04 +08:00
igophper
af20063a8d
feat: able to refresh baidu access token automatically ( #400 , close #401 )
...
* feat:baidu channel support apiKey and secretKey
添加百度文心渠道时支持填写secretKey|apiKey或者accessToken,支持自动刷新accessToken
* fix
* fix
* fix
* chore: update implementation
---------
Co-authored-by: JustSong <songquanpeng@foxmail.com>
Co-authored-by: JustSong <39998050+songquanpeng@users.noreply.github.com>
2023-08-12 23:41:44 +08:00
JustSong
e42119b73d
chore: use unknown as placeholder
2023-08-12 14:18:04 +08:00
Yolo°
c58f710227
feat: improve frontend ( #387 )
...
* fork
* fork
* chore: update style
---------
Co-authored-by: JustSong <songquanpeng@foxmail.com>
2023-08-12 10:49:30 +08:00
JustSong
7422b0d051
chore: update prompt
2023-08-06 22:07:31 +08:00
Yolo°
5a62357c93
feat: add chat button for each token ( #363 )
...
* fork
* fork
* chore: update style
---------
Co-authored-by: JustSong <songquanpeng@foxmail.com>
2023-08-06 22:02:58 +08:00
JustSong
b464e2907a
chore: update domain
2023-08-06 18:14:13 +08:00
Miniers
1dfa190e79
feat: able to copy scheme of ama, opencat & chatgpt next web ( #343 )
...
* Token Adds Option to Quickly Copy AMA and OpenCat URL Scheme
* feat: add ChatGPT Next Web
---------
Co-authored-by: JustSong <songquanpeng@foxmail.com>
2023-08-06 13:56:59 +08:00
ckt
3fca6ff534
feat: support email domain whitelist ( #337 )
...
* feat: support email domain restriction
* fix(SMTPToken): disable password auto complete
* chore: update implementation
---------
Co-authored-by: JustSong <songquanpeng@foxmail.com>
2023-07-30 12:44:41 +08:00
JustSong
b7d0616ae0
chore: update title for xunfei
2023-07-29 22:09:10 +08:00
JustSong
ce9c8024a6
chore: update prompt for xunfei
2023-07-29 22:05:15 +08:00
JustSong
8a866078b2
feat: support xunfei's llm ( close #206 )
2023-07-29 21:55:57 +08:00
JustSong
b8cb86c2c1
chore: adjust ui
2023-07-29 19:32:06 +08:00
JustSong
50dec03ff3
fix: fix model mapping cannot be deleted
2023-07-29 19:16:42 +08:00
JustSong
f31d400b6f
chore: automatically add related models when switch type
2023-07-29 12:24:23 +08:00
JustSong
e92da7928b
feat: support ali's llm ( close #326 )
2023-07-28 23:45:08 +08:00
JustSong
4ab3211c0e
fix: fix blank screen after refresh
2023-07-23 17:59:30 +08:00
ckt
2fcd6852e0
feat: able to delete account by self ( #294 )
...
* feat: support account deletion
* chore: update style
---------
Co-authored-by: JustSong <songquanpeng@foxmail.com>
2023-07-23 13:37:32 +08:00
Yolo°
9b4d1964d4
chore: optimize frontend ( #293 )
...
* main
* chore: update style
---------
Co-authored-by: JustSong <songquanpeng@foxmail.com>
2023-07-23 13:25:28 +08:00
JustSong
806bf8241c
chore: update prompts of channel config page
2023-07-23 12:46:41 +08:00
JustSong
ce93c9b6b2
chore: adjust channel config page
2023-07-23 12:20:42 +08:00
JustSong
26c6719ea3
feat: support zhipu's ChatGLM ( close #289 )
2023-07-23 11:51:44 +08:00
JustSong
8f721d67a5
feat: support Google PaLM2 ( close #105 )
2023-07-23 00:32:47 +08:00
JustSong
fcc1e2d568
chore: add notice for baidu
2023-07-22 23:27:04 +08:00
JustSong
9a1db61675
feat: support baidu's models now ( close #286 )
2023-07-22 23:24:09 +08:00
JustSong
3c940113ab
fix: fix model editing now working properly ( close #288 )
2023-07-22 18:56:36 +08:00
JustSong
2ff15baf66
feat: support claude now ( close #150 )
2023-07-22 16:18:03 +08:00
JustSong
35cfebee12
feat: retry on failed ( close #112 )
2023-07-15 19:06:51 +08:00
JustSong
f61d326721
revert: do not enable turnstile check on login
2023-07-15 16:06:01 +08:00
JustSong
74b06b643a
Merge branch 'main' of github.com:songquanpeng/one-api
2023-07-15 13:52:26 +08:00
JustSong
ccf7709e23
feat: support custom model now ( close #276 )
2023-07-15 13:51:46 +08:00
ckt
d592e2c8b8
feat: add turnstile for login form ( #263 )
2023-07-15 12:41:21 +08:00
mrhaoji
ea73201b6f
fix: restore display_name/username that deleted before ( #268 )
...
which happend in commit # 3bab5b4
2023-07-12 22:43:54 +08:00
JustSong
701aaba191
feat: able to approximate token ( close #207 )
2023-07-04 19:54:13 +08:00
mrhaoji
3bab5b48bf
chore: remove email in UsersTable to make room for other fields ( #246 )
...
* chore: remove email in UsersTable to make room for others
* fix: fix not working properly
---------
Co-authored-by: JustSong <songquanpeng@foxmail.com>
2023-07-04 18:57:44 +08:00
JustSong
f3bccee3b5
chore: update channel add & edit page
2023-07-04 18:40:36 +08:00
Cross Fire
d383302e8a
feat: support balance query for CloseAI ( #240 )
...
* 增加CloseAI余额查询功能
* 去除debug代码
* fix: bug fix
* docs: update README
---------
Co-authored-by: sudongyang <sudongyang@xiaomi.com>
Co-authored-by: JustSong <songquanpeng@foxmail.com>
2023-07-03 20:43:42 +08:00
JustSong
c90c0ecef4
chore: set the default token quota to 1$
2023-07-02 16:45:42 +08:00
JustSong
9ec6506c32
fix: fix refresh not working properly ( close #229 )
2023-07-02 15:55:49 +08:00
Alone88
b1b3651e84
feat: support channel type AIGC2D ( #220 )
...
* feat: add AIGC2D Channel
* chore: remove console logging & update balance rendering
---------
Co-authored-by: Alone88 <im@aloen88.cn>
Co-authored-by: JustSong <songquanpeng@foxmail.com>
2023-06-29 21:34:17 +08:00
JustSong
bddbf57104
fix: fix AutomaticDisableChannelEnabled option not ignored ( close #217 )
2023-06-29 15:54:12 +08:00
mrhaoji
a326ac4b28
chore: more hints in model mapping textarea ( #205 )
...
* chore: more hints in model mapping textarea
* fix: fix variable not defined
---------
Co-authored-by: JustSong <songquanpeng@foxmail.com>
2023-06-28 12:56:01 +08:00
JustSong
0941e294bf
feat: support model remap now
2023-06-27 13:42:45 +08:00
mrhaoji
6f05128368
chore: show equivalent amount next to remaining quota in the user editing page ( #198 )
2023-06-25 11:54:05 +08:00
quzard
f2ba0c0300
fix: fix log sorting ( #195 )
2023-06-24 21:34:20 +08:00
JustSong
f5c1fcd3c3
fix: do not reuse state variable directly
2023-06-24 19:45:18 +08:00
JustSong
5fdf670a19
fix: reset page number after query
2023-06-24 19:32:46 +08:00
JustSong
3ce982d8ee
feat: able to query token with admin user
2023-06-24 19:13:33 +08:00
JustSong
a515f9284e
chore: adjust table width
2023-06-24 15:42:16 +08:00
JustSong
cccf5e4a07
feat: able to query logs now ( close #144 )
2023-06-24 15:28:11 +08:00
JustSong
9ac5410d06
feat: show used quota in token table
2023-06-23 21:42:31 +08:00
JustSong
7edc2b5376
feat: able to display token billing stat via billing api ( close #186 )
2023-06-23 20:14:53 +08:00
JustSong
d4869dfad2
chore: use notice to show password ( #107 )
2023-06-23 10:42:47 +08:00
JustSong
ad1049b0cf
feat: support search channels by key ( close #185 )
2023-06-22 21:19:43 +08:00
JustSong
d0c454c78e
chore: able to clear all models now
2023-06-22 20:53:21 +08:00
JustSong
fe135fd508
chore: update base url setting
2023-06-22 20:49:55 +08:00
quzard
1f3b3ca7ae
fix: fix channel table's sorting problem ( #188 )
2023-06-21 23:42:55 +08:00
JustSong
6536a7be62
fix: do not show dollar balance if not enabled
2023-06-21 15:45:30 +08:00
JustSong
1b5c628e66
chore: update prompt
2023-06-21 00:20:48 +08:00
JustSong
e398f470a1
feat: support custom base url for channels
2023-06-20 22:32:56 +08:00
JustSong
b179c2f208
feat: able to display quota in dollar
2023-06-20 20:09:17 +08:00
JustSong
868d9a87d2
chore: update description
2023-06-19 16:04:35 +08:00
JustSong
5c18c559c3
chore: make the user unable to search token by id
2023-06-19 10:04:38 +08:00
JustSong
75545a1f47
refactor: make operation settings separated from system settings
2023-06-19 09:53:56 +08:00
JustSong
72ea805f84
chore: hide token id for user
2023-06-19 09:13:38 +08:00
JustSong
d97640374c
feat: able to add chat page link now ( close #70 )
2023-06-17 23:51:56 +08:00
JustSong
8e805e23bc
chore: update prompt
2023-06-17 19:33:25 +08:00
JustSong
bcbfacc04a
fix: reduce the table size ( close #174 )
2023-06-17 19:23:25 +08:00
JustSong
c5837c3bb7
feat: support aff now ( close #75 )
2023-06-17 18:12:58 +08:00
JustSong
a909972313
fix: limit the length of email
2023-06-17 15:44:04 +08:00
Kidultx
a43b1e2add
feat: support API2GPT platform ( #173 )
...
* support API2GPT platform
* chore: update balance renderer
---------
Co-authored-by: JustSong <songquanpeng@foxmail.com>
2023-06-17 15:20:51 +08:00
JustSong
d79289ccdd
fix: fix footer not updated asap
2023-06-17 11:03:01 +08:00
Joe
b7d71b4f0a
feat: support update AIProxy balance ( #171 )
...
* Add: support update AIProxy balance
* fix auth header
* chore: update balance renderer
---------
Co-authored-by: JustSong <songquanpeng@foxmail.com>
2023-06-17 10:08:04 +08:00
JustSong
760183a970
feat: record used quota & request count ( close #102 , #165 )
2023-06-16 15:20:06 +08:00
JustSong
593e1926e9
feat: able to disable quota consumption recording ( close #156 )
2023-06-15 16:32:16 +08:00
JustSong
d6dbaff3c2
fix: fix file not committed
2023-06-14 12:52:56 +08:00
JustSong
7f9577a386
feat: now one channel can belong to multiple groups ( close #153 )
2023-06-14 12:14:08 +08:00
JustSong
8b2ef666ef
fix: fix OpenAI-SB balance not correct
2023-06-12 09:40:49 +08:00
quzard
47ca449e32
feat: add support for updating balance of channel typpe OpenAI-SB ( #146 , close #125 )
...
* Add support for updating channel balance in OpenAISB
* fix: handel error
---------
Co-authored-by: JustSong <songquanpeng@foxmail.com>
2023-06-11 21:04:41 +08:00
JustSong
39481eb6c0
chore: add trailing slash for API calling
2023-06-11 16:33:40 +08:00
JustSong
596446dba4
feat: able to set group ratio now ( close #62 , close #142 )
2023-06-11 11:08:16 +08:00
JustSong
64db39320a
feat: now able to check all user's log
2023-06-10 20:40:23 +08:00
JustSong
d29c273073
chore: add more log types
2023-06-10 16:31:40 +08:00
JustSong
74f508e847
feat: now user can check its topup & consume history ( close #78 , close #95 )
2023-06-10 16:04:04 +08:00
JustSong
8901f03864
feat: support set proxy for channel OpenAI ( close #139 )
2023-06-09 18:30:01 +08:00
JustSong
521ede2469
fix: able to manage root user now
2023-06-08 09:28:06 +08:00
JustSong
2c53424db8
feat: able to manage group now
2023-06-08 09:26:54 +08:00
JustSong
2ad22e1425
feat: support group now ( close #17 , close #72 , close #85 , close #104 , close #136 )
...
Co-authored-by: quzard <1191890118@qq.com>
2023-06-07 23:26:00 +08:00
JustSong
2847a08852
feat: the format of key is now constant with that of OpenAI
2023-06-03 10:53:25 +08:00
JustSong
2f44aaa645
chore: update config prompt ( close #133 )
2023-06-01 18:15:53 +08:00
JustSong
25eab0b224
style: fix UI related problems
2023-05-22 22:41:39 +08:00
JustSong
34bce5b464
style: add positive attribute to submit buttons ( close #113 )
2023-05-22 22:30:11 +08:00
JustSong
171b818504
feat: support channel remain quota query ( close #79 )
2023-05-21 16:09:54 +08:00
JustSong
b92ec5e54c
fix: show bind options only available ( close #65 )
2023-05-21 11:22:28 +08:00
JustSong
1cc7c20183
chore: prompt user if redemption code not input
2023-05-21 10:32:47 +08:00
JustSong
2eee97e9b6
style: add comma to quota stat
2023-05-21 10:15:30 +08:00
JustSong
61e682ca47
feat: able to manage user's quota now
2023-05-21 10:01:02 +08:00
JustSong
cfd587117e
feat: support channel AI Proxy now
2023-05-20 17:24:56 +08:00
JustSong
ef9dca28f5
chore: set default value for Azure's api version if not set
2023-05-19 22:13:29 +08:00
JustSong
3711f4a741
feat: support channel ai.ls now ( close #99 )
2023-05-19 11:07:17 +08:00
JustSong
e8da98139f
fix: limit the shown text's length ( close #80 )
2023-05-16 21:33:59 +08:00
JustSong
519cb030f7
chore: update input label
2023-05-16 16:23:07 +08:00
JustSong
69cf1de7bd
feat: disable operations for root user ( close #76 )
2023-05-16 15:38:03 +08:00
JustSong
4d6172a242
feat: able to set pre consumed quota now
2023-05-16 13:57:01 +08:00
JustSong
a9ea1d9d10
fix: fix topup page now showing
2023-05-16 12:09:33 +08:00
JustSong
d1e9b86f05
chore: update prompt
2023-05-16 11:58:26 +08:00
JustSong
01abed0a30
refactor: bind quota to account instead of token ( close #64 , #31 )
2023-05-16 11:26:09 +08:00
JustSong
7c56a36a1c
feat: show users' remaining quota in user management page ( close #46 )
2023-05-16 11:08:41 +08:00
JustSong
c48327ff91
fix: fix option update logic not working properly
2023-05-16 10:04:39 +08:00
JustSong
a5406c6963
fix: fix tab icon & title not changed ( close #69 )
2023-05-15 21:15:21 +08:00
JustSong
a1f61384c5
feat: automatically disable channel when error occurred ( #59 )
2023-05-15 17:34:09 +08:00
JustSong
44ebae1559
feat: add refresh button
2023-05-15 16:20:01 +08:00
JustSong
68e53d3e10
chore: only show two digits
2023-05-15 12:56:28 +08:00
JustSong
d267211ee7
feat: able to test all enabled channels ( #59 )
2023-05-15 12:36:55 +08:00
JustSong
225176aae9
feat: save response time & test time ( #59 )
2023-05-15 11:35:38 +08:00
JustSong
443a22b75d
feat: able to test channels now ( #59 )
2023-05-15 10:48:52 +08:00
JustSong
b44f0519a0
feat: double check before deletion
2023-05-15 10:41:48 +08:00
JustSong
926951ee03
feat: able to customize system name & logo now
2023-05-14 19:29:02 +08:00