CaIon
701a28d0da
fix: fix relay openai panic
2024-01-10 19:26:11 +08:00
CaIon
aca8d25372
feat: able to change gemini safety setting
2024-01-10 13:56:10 +08:00
CaIon
fb95216b5a
chore: delete model price log
2024-01-09 12:11:09 +08:00
CaIon
e2d994d73a
fix: 修复mj固定价格设置无效的问题
2024-01-07 23:40:06 +08:00
CaIon
bf8794d257
feat: 新增数据看板
2024-01-07 18:31:14 +08:00
Calcium-Ion
290fed3841
Merge pull request #41 from Calcium-Ion/optimize/mj
...
optimize: MJ 部分调整、优化
2024-01-03 22:45:23 +08:00
Hao Mei
afbd585048
feat: add support for davinci-002 and babbage-002
2024-01-03 20:19:00 +08:00
Xyfacai
5c747dfee2
optimize: MJ 部分调整、优化
...
MJ
增加simple-change、list接口,
变换和重试操作区别出来,价格与绘图一样
优化图片返回
2024-01-01 22:46:05 +08:00
CaIon
bdd611fd33
feat: 加入渠道加权随机功能
2023-12-27 19:00:47 +08:00
CaIon
14592f9758
support gemini-pro-vision
2023-12-27 16:32:54 +08:00
CaIon
b9d040cf52
fix VERSION
2023-12-21 23:11:52 +08:00
CaIon
3475643257
支持设置模型按次计费
2023-12-21 20:14:04 +08:00
CaIon
e057c0e42e
添加gemini支持
2023-12-18 23:46:05 +08:00
CaIon
0fdd4fc6e3
美化绘画IU
2023-12-14 15:16:51 +08:00
CaIon
6463e0539f
Warning when SESSION_SECRET is 'random_string'
2023-12-14 11:10:14 +08:00
liyujie
cdcbebce6d
fix: add Date header for email
2023-12-13 16:51:19 +08:00
CaIon
a29e3765f4
修复gpts无法设置倍率的问题
2023-12-13 00:29:53 +08:00
CaIon
4b93f185bb
添加gpt-4-1106-vision-preview模型
2023-12-12 16:41:37 +08:00
CaIon
1a7a10c3d4
fix gpt-4-1106-preview count image token
2023-12-08 12:54:29 +08:00
CaIon
6e744bd1a3
修改错误提示
2023-12-01 01:29:13 +08:00
Xyfacai
08c9f77267
optimize: high cpu
2023-11-23 21:40:17 +08:00
CaIon
3808ae8dca
add sqlite busy_timeout=5000
2023-11-23 03:48:30 +08:00
CaIon
9d191c10a9
添加pprof性能分析
2023-11-21 18:11:07 +08:00
CaIon
57d0fc3021
support base64 image
2023-11-19 18:59:35 +08:00
CaIon
773e48ed6f
修复语音系列模型计费bug
2023-11-16 01:44:15 +08:00
CaIon
63cd3f05f2
support tts
2023-11-15 21:05:14 +08:00
CaIon
d09807af09
添加mj渠道
2023-11-12 23:32:22 +08:00
CaIon
5b2d898b36
更新模型倍率
2023-11-11 02:31:07 +08:00
CaIon
6fbe1fe087
更新模型倍率
2023-11-11 01:55:29 +08:00
CaIon
46930bc890
完全移除近似估算token功能
2023-11-11 01:55:19 +08:00
Calcium-Ion
7688e9f9dd
Merge branch 'songquanpeng:main' into main
2023-10-30 16:12:09 +08:00
JustSong
89d458b9cf
feat: able to set RELAY_TIMEOUT
2023-10-22 20:39:49 +08:00
JustSong
63fafba112
feat: support ERNIE-Bot-4 ( close #608 )
2023-10-22 18:48:35 +08:00
Bryan
a398f35968
fix: fix postgresql support ( #606 )
...
* fix postgresql support
fixes #517
* fix: fix pg support
* chore: delete useless code
---------
Co-authored-by: JustSong <songquanpeng@foxmail.com>
2023-10-22 18:38:29 +08:00
CaIon
fc2ef52366
Merge remote-tracking branch 'origin/main'
...
# Conflicts:
# README.md
# go.mod
# go.sum
# model/log.go
# web/src/App.js
# web/src/components/ChannelsTable.js
2023-10-16 17:31:26 +08:00
CaIon
a4e269262b
feat: 新增充值分组倍率设置
2023-10-11 14:58:09 +08:00
JustSong
b4b4acc288
feat: support Tencent's model ( close #519 )
2023-10-03 14:19:03 +08:00
JustSong
a85ecace2e
chore: delete 360's 360GPT_S2_V9.4
2023-10-03 12:51:53 +08:00
JustSong
8d34b7a77e
feat: able to delete all manually disabled channels ( close #539 )
2023-10-02 13:06:27 +08:00
JustSong
f9b748c2ca
chore: add MEMORY_CACHE_ENABLED env variable
2023-09-29 11:38:27 +08:00
CaIon
3d55548c92
Merge remote-tracking branch 'origin/main'
...
# Conflicts:
# model/log.go
2023-09-24 12:34:29 +08:00
JustSong
fd98463611
chore: update ali's model name
2023-09-23 22:57:59 +08:00
JustSong
f5a1cd3463
feat: add support for gpt-3.5-turbo-instruct ( close #545 )
2023-09-23 22:37:11 +08:00
CaIon
985e26fd1b
Merge remote-tracking branch 'origin/main'
...
# Conflicts:
# controller/log.go
# controller/relay-audio.go
# controller/relay-image.go
# controller/relay-text.go
# controller/relay.go
# middleware/distributor.go
# model/log.go
# web/src/components/OperationSetting.js
2023-09-17 20:59:12 +08:00
JustSong
4335f005a6
feat: create new log file when too many logs recorded
2023-09-17 16:35:30 +08:00
JustSong
42451d9d02
refactor: update logging related logic
2023-09-17 15:39:46 +08:00
CaIon
01a66ff33c
修复充值bug
2023-09-09 05:04:49 +08:00
CaIon
9c08d78349
Merge remote-tracking branch 'origin/main'
...
# Conflicts:
# controller/relay.go
# main.go
# middleware/distributor.go
2023-09-09 03:15:55 +08:00
CaIon
9ab4f7a271
移除不必要的功能
2023-09-09 03:11:42 +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
bd6fe1e93c
feat: able to config rate limit ( close #477 )
2023-09-03 21:56:37 +08:00
JustSong
7e575abb95
feat: add channel type FastGPT
2023-09-03 15:50:49 +08:00
JustSong
c3dc315e75
feat: add batch update support ( close #414 )
2023-09-03 14:58:20 +08:00
JustSong
04acdb1ccb
feat: support aiproxy's library
2023-09-03 12:51:59 +08:00
JustSong
56b5007379
feat: supper OpenRouter now ( close #333 , close #340 )
2023-08-27 16:16:45 +08:00
JustSong
d09d317459
feat: supper whisper now ( close #197 )
2023-08-27 15:28:23 +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
CaIon
c0f0201f5f
Merge remote-tracking branch 'origin/main'
...
# Conflicts:
# controller/relay-text.go
# go.mod
# web/src/components/PersonalSetting.js
# web/src/components/TokensTable.js
# web/src/pages/Home/index.js
2023-08-25 00:51:02 +08:00
Benny
23b1c63538
fix: claude model ratio ( #449 )
...
* fix: Claude model ratio
* chore: update implementation
---------
Co-authored-by: JustSong <songquanpeng@foxmail.com>
2023-08-19 16:58:34 +08:00
JustSong
86c2627c24
fix: update cache immediately after cache get
...
Co-authored-by: chikasaki <1347283135@qq.com>
Co-authored-by: Cruel <157922018@qq.com>
2023-08-16 23:40:50 +08:00
CaIon
8f2119e410
add epay
2023-08-14 22:16:32 +08:00
JustSong
7bddc73b96
perf: flush response after response handled ( close #364 )
2023-08-12 18:10:15 +08:00
JustSong
466005de07
fix: set connection limits for database
2023-08-12 10:05:25 +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
8a866078b2
feat: support xunfei's llm ( close #206 )
2023-07-29 21:55:57 +08:00
JustSong
130e6bfd83
feat: support baidu's embedding model ( close #324 )
2023-07-29 12:15:07 +08:00
JustSong
e92da7928b
feat: support ali's llm ( close #326 )
2023-07-28 23:45:08 +08:00
JustSong
4eea096654
chore: do not hardcode cache time ( close #302 )
2023-07-23 19:26:37 +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
9a1db61675
feat: support baidu's models now ( close #286 )
2023-07-22 23:24:09 +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
ckt
b520b54625
feat: initial support of Dall-E ( #148 , #266 )
...
* feat: initial support of Dall-E
* fix: fix N not timed
---------
Co-authored-by: JustSong <songquanpeng@foxmail.com>
Co-authored-by: JustSong <39998050+songquanpeng@users.noreply.github.com>
2023-07-15 12:30:06 +08:00
JustSong
701aaba191
feat: able to approximate token ( close #207 )
2023-07-04 19:54:13 +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
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
51f19470bc
fix: fix wrong env var name
2023-06-27 23:34:23 +08:00
JustSong
7adac1c09c
chore: update default ratio for text-embedding-ada-002
2023-06-25 12:07:42 +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
4463224f04
feat: support automatic channel testing & balance updates ( close #11 , close #59 )
2023-06-22 22:01:03 +08:00
JustSong
b090e50f72
chore: use NODE_TYPE to determine node type
2023-06-22 20:39:17 +08:00
JustSong
28fb4d76af
fix: disable redis on master node
2023-06-22 20:12:43 +08:00
JustSong
00151a0124
chore: format logs
2023-06-22 10:59:01 +08:00
JustSong
b86de464b5
chore: print more logs
2023-06-22 01:12:28 +08:00
JustSong
567916bd80
fix: only master node can migrate database
2023-06-22 00:52:27 +08:00
JustSong
b179c2f208
feat: able to display quota in dollar
2023-06-20 20:09:17 +08:00
JustSong
3d76a974d1
feat: use cache to avoid database access ( #158 )
2023-06-20 19:09:49 +08:00
JustSong
24a4b323eb
chore: set the fallback model ratio to 30
2023-06-18 22:28:28 +08:00
JustSong
d97640374c
feat: able to add chat page link now ( close #70 )
2023-06-17 23:51:56 +08:00
JustSong
c5837c3bb7
feat: support aff now ( close #75 )
2023-06-17 18:12:58 +08:00
JustSong
eb70b84665
chore: update api endpoint for CloseAI
2023-06-17 15:54:14 +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
593e1926e9
feat: able to disable quota consumption recording ( close #156 )
2023-06-15 16:32:16 +08:00
JustSong
38668e7331
chore: update gpt3.5 completion ratio
2023-06-14 09:41:06 +08:00
JustSong
323f3d263a
feat: add new released models
2023-06-14 09:12:14 +08:00
JustSong
955d5f8707
fix: fix group list not correct ( close #147 )
2023-06-12 09:11:48 +08:00
JustSong
596446dba4
feat: able to set group ratio now ( close #62 , close #142 )
2023-06-11 11:08:16 +08:00
JustSong
4339f45f74
feat: support /v1/moderations now ( close #117 )
2023-06-11 09:37:36 +08:00
JustSong
45e9fd66e7
feat: able to check topup history & consumption history ( #78 , #95 )
2023-06-09 16:59:00 +08:00
JustSong
4b6adaec0b
feat: support /v1/completions ( close #115 )
2023-06-08 14:54:02 +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
bcca0cc0bc
feat: PaLM support is WIP ( #105 )
2023-05-21 14:26:59 +08:00
JustSong
cfd587117e
feat: support channel AI Proxy now
2023-05-20 17:24:56 +08:00
JustSong
3711f4a741
feat: support channel ai.ls now ( close #99 )
2023-05-19 11:07:17 +08:00
JustSong
7201bd1c97
fix: update api2d's base url ( #83 )
2023-05-17 18:47:25 +08:00
JustSong
4d6172a242
feat: able to set pre consumed quota now
2023-05-16 13:57:01 +08:00
JustSong
01abed0a30
refactor: bind quota to account instead of token ( close #64 , #31 )
2023-05-16 11:26:09 +08:00
JustSong
c48327ff91
fix: fix option update logic not working properly
2023-05-16 10:04:39 +08:00
JustSong
a1f61384c5
feat: automatically disable channel when error occurred ( #59 )
2023-05-15 17:34:09 +08:00
JustSong
926951ee03
feat: able to customize system name & logo now
2023-05-14 19:29:02 +08:00
JustSong
e123c66bc7
fix: fix SMTPFrom not updated in some cases ( close #34 )
2023-05-13 22:04:36 +08:00
JustSong
9edc82bde0
fix: fix garbled email subject ( #34 )
2023-05-13 21:41:52 +08:00
JustSong
46e77389a4
fix: support smtp server with port 465
2023-05-13 18:57:27 +08:00
JustSong
f5f4e6fbc6
feat: able to configure smtp from now ( close #34 )
2023-05-13 18:33:41 +08:00
JustSong
5798fdac50
refactor: rename file to conform to standards
2023-05-13 15:43:55 +08:00
JustSong
3710688efd
refactor: use built in smtp library ( close #34 )
2023-05-13 15:30:09 +08:00
JustSong
5c694a1503
feat: now supports custom smtp port
2023-05-12 11:44:38 +08:00
JustSong
9edc54ca69
fix: fix the default ratio for text-embedding-ada-002
2023-05-11 22:43:39 +08:00
JustSong
d9db16e999
feat: able to configure ratio for more models now ( close #53 )
2023-05-11 20:59:35 +08:00
JustSong
d93cb8f645
feat: able to configure ratio for different models ( close #26 )
2023-04-28 19:16:37 +08:00
JustSong
480e789cd8
feat: support configuring ratio when estimating token number in stream mode
2023-04-28 17:25:05 +08:00
JustSong
f97c2b4c22
feat: able to set top up link now
2023-04-27 16:32:21 +08:00
JustSong
fd149c242f
fix: remove rate limit for relay api
2023-04-26 21:50:09 +08:00
JustSong
b9cc5dfa3f
feat: able to set initial quota for new user ( close #22 )
2023-04-26 21:40:56 +08:00
JustSong
9e2f2383b9
feat: now user can top up via redemption code ( close #9 )
2023-04-26 17:02:26 +08:00
JustSong
69ee87c57f
fix: fully support stream mode now ( close #3 )
2023-04-25 21:50:57 +08:00
JustSong
918ba60802
feat: able to set the token's expiration time and number of uses
2023-04-24 20:52:40 +08:00
JustSong
c0bb2338de
Temporary set rate limit to 60k
2023-04-24 11:18:05 +08:00
JustSong
b3be4d8f85
Support custom channel now
2023-04-23 20:35:49 +08:00
JustSong
b86e1dec64
Fix "HTTP decompression failed"
2023-04-23 19:19:43 +08:00
JustSong
852af57c03
Relay done but not working
2023-04-23 18:24:11 +08:00
JustSong
9fc375c604
Able to manage channels now
2023-04-23 15:42:23 +08:00
JustSong
63da6dc6a0
Able to manage token now
2023-04-23 12:43:10 +08:00
JustSong
5e8c22fbf6
Update system log
2023-04-22 22:15:48 +08:00
JustSong
6164829239
Channel API done without verification
2023-04-22 22:02:59 +08:00
JustSong
539eac217f
Rename to One API
2023-04-22 21:14:09 +08:00
JustSong
ab1f8a2bf4
Initial commit
2023-04-22 20:39:27 +08:00