JustSong
bf2e26a48f
feat: support claude-3 ( close #1080 , close #1094 )
2024-03-09 01:12:47 +08:00
JustSong
2df877a352
feat: switch priority when retry ( close #1048 )
2024-03-03 22:14:07 +08:00
JustSong
9d8967f7d3
feat: support Mistral's models now ( close #1051 )
2024-03-03 21:46:45 +08:00
JustSong
de18d6fe16
refactor: refactor image relay ( close #1068 )
2024-03-03 19:30:11 +08:00
JustSong
1d0b7fb5ae
feat: support chatglm-4 ( close #1045 , close #952 , close #952 , close #943 )
2024-03-02 03:05:25 +08:00
JustSong
f9490bb72e
fix: able to use updated default ratio
2024-03-02 01:32:04 +08:00
JustSong
df1fd9aa81
feat: support minimax's models now ( close #354 )
2024-03-02 01:24:28 +08:00
JustSong
614c2e0442
feat: support baichuan's models now ( close #1057 )
2024-03-02 00:55:48 +08:00
JustSong
b747cdbc6f
fix: fix getAndValidateTextRequest failed: unexpected end of JSON input ( close #1043 )
2024-02-26 22:52:16 +08:00
JustSong
565ea58e68
feat: built in retry supported ( close #1036 , close #770 )
2024-02-25 19:01:49 +08:00
JustSong
d0e415893b
fix: fix SparkDesk model name
2024-02-18 17:16:11 +08:00
JustSong
f598b9df87
feat: add new SparkDesk models
2024-02-18 17:02:36 +08:00
JustSong
2acc2f5017
feat: support moonshot now ( close #804 )
2024-02-18 16:17:19 +08:00
JustSong
9383b638a6
feat: add ChatPro & ChatStd for tencent ( #1010 )
2024-02-18 14:40:01 +08:00
JustSong
de9a58ca0b
refactor: use config field to save config
2024-02-18 02:22:50 +08:00
JustSong
1aa374ccfb
refactor: use adaptor to do relay & test
2024-02-18 00:15:31 +08:00
Laisky.Cai
d548a01c59
feat: Handle errors, validate model names, and calculate quota usage ( #978 )
...
- Improved error handling in various modules for better stability and responsiveness.
- Optimized code in several files for improved efficiency and readability.
- Enhanced user experience by providing more detailed error responses in the controller.
- Strengthened security by ignoring sensitive files in `.gitignore`.
2024-02-12 21:35:40 +08:00
JustSong
2cd1a78203
chore: update module name
2024-01-28 19:38:58 +08:00
JustSong
ea407f0054
feat: able to set completion ration now ( close #968 )
2024-01-28 16:45:54 +08:00
Benny
26e2e646cb
feat: sync models with OpenAI ( #971 )
...
* add new 0125 chat models and embedding-3 models
* refine the step of manually deploying
* add gpt-4-turbo-preview
2024-01-28 16:09:21 +08:00
JustSong
2d760d4a01
refactor: refactor relay part ( #957 )
...
* refactor: refactor relay part
* refactor: refactor config part
2024-01-21 23:21:42 +08:00
JustSong
eed9f5fdf0
refactor: refactor relay part ( #935 )
2024-01-14 19:21:03 +08:00
JustSong
903aaeded0
chore: revert change
2024-01-07 18:47:39 +08:00
JustSong
bdd4be562d
chore: add theme validation
2024-01-07 18:44:26 +08:00
JustSong
aa03c89133
feat: able to add more UI theme ( #860 )
2024-01-01 18:55:03 +08:00
JustSong
cb5a3df616
fix: fix pr error ( #888 )
2024-01-01 17:40:10 +08:00
Laisky.Cai
7772064d87
fix: support base64 encoded image_url ( #872 )
...
- Add support for base64 encoded image in OpenAI's image_url
Co-authored-by: JustSong <39998050+songquanpeng@users.noreply.github.com>
2024-01-01 17:38:35 +08:00
Tailen
498dea2dbb
feat: add support for davinci-002 and babbage-002 ( #888 )
2024-01-01 17:06:17 +08:00
Zhanliang Liu
c725cc8842
fix: base 64 encoded format support of gemini-pro-vision for field image_url/url ( #878 )
2024-01-01 17:00:23 +08:00
Tisfeng
af8908db54
feat: able to change gemini safety setting ( #867 )
...
* perf: adjust gemini safety settings, set BLOCK_NONE by default
* feat: able to adjust by env variable
---------
Co-authored-by: JustSong <songquanpeng@foxmail.com>
2024-01-01 16:42:19 +08:00
JustSong
1c8922153d
feat: support gemini-vision-pro
2023-12-24 18:54:32 +08:00
moondie
ee9e746520
feat: update ali stream implementation & enable internet search ( #856 )
...
* Update relay-ali.go: 改进stream模式,添加联网搜索能力
通义千问支持stream的增量模式,不需要每次去掉上次的前缀;实测qwen-max联网模式效果不错,添加了联网模式。如果别的模型有问题可以改为单独给qwen-max开放
* 删除"stream参数"
刚发现原来阿里api没有这个参数,上次误加了。
* refactor: only enable search when specified
* fix: remove custom suffix when get model ratio
---------
Co-authored-by: JustSong <songquanpeng@foxmail.com>
2023-12-24 16:17:21 +08:00
Buer
a763681c2e
fix: fix base64 image parse error ( #858 )
2023-12-24 15:35:56 +08:00
JustSong
b7fcb319da
chore: check if SESSION_SECRET equals to random_string
2023-12-20 22:50:50 +08:00
Oliver Lee
0fe26cc4bd
feat: update ali relay implementation ( #830 )
...
* 修改通译千问最新接口:1.删除history参数,改用官方推荐的messages参数 2.整理messages参数顺序,补充必要上下文信息 3.用autogen调试测试通过
* chore: update impl
---------
Co-authored-by: JustSong <songquanpeng@foxmail.com>
2023-12-17 19:43:23 +08:00
Calcium-Ion
7d6a169669
feat: able to set sqlite busy_timeout ( #818 )
...
* add sqlite busy_timeout=3000
* chore: update impl
---------
Co-authored-by: JustSong <songquanpeng@foxmail.com>
2023-12-17 19:17:00 +08:00
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
Qiying Wang
4c5feee0b6
feat: add image counter for gpt-4 vision ( #795 )
2023-12-10 19:39:46 +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
Tillman Bailee
923e24534b
fix: add Date header for email ( #742 )
...
* 修复自建邮箱发送错误: INVALID HEADER Missing required header field: "Date"
* chore: fix style
---------
Co-authored-by: liyujie <29959257@qq.com>
Co-authored-by: JustSong <39998050+songquanpeng@users.noreply.github.com>
Co-authored-by: JustSong <songquanpeng@foxmail.com>
2023-11-24 20:56:53 +08:00
ShinChven ✨
b4d67ca614
fix: add Message-ID header for email ( #732 )
...
* feat: Add Message-ID to email headers to comply with RFC 5322
- Extract domain from SMTPFrom
- Generate a unique Message-ID
- Add Message-ID to email headers
* chore: check slice length
---------
Co-authored-by: JustSong <songquanpeng@foxmail.com>
2023-11-24 20:52:59 +08:00
Ian Li
969f539777
fix: skip JSON deserialization when accessing transcriptions and translations ( #718 )
...
* fix: Skip JSON deserialization when accessing transcriptions and translations.
* chore: update impl
---------
Co-authored-by: JustSong <songquanpeng@foxmail.com>
2023-11-19 16:11:39 +08:00
ckt1031
ddcaf95f5f
feat: support tts model ( #713 )
...
* Added support for Text-to-Speech models and
endpoints
* chore: update impl
---------
Co-authored-by: JustSong <songquanpeng@foxmail.com>
2023-11-17 21:18:51 +08:00
ckt1031
1d15157f7d
feat: keep sync with dall-e updates ( #679 )
...
* Updated ImageRequest struct and OpenAIModels,
added new Dall-E models and size ratios
* Fixed suspect `or`
* Refactored size ratio calculation in
relayImageHelper function
* Updated the format of resolution keys in
DalleSizeRatios map
* Added error handling for unsupported image size in
relayImageHelper function
* Added validation for number of generated images
and defined image generation ratios
* Refactored variable name from
DalleGenerationImageAmountRatios to
DalleGenerationImageAmounts
* Added validation for prompt length in
relayImageHelper function
* Updated model validation and removed size not
supported error in relayImageHelper function
* Refactored image size and model validation in
relayImageHelper function
* chore: discard binary file
* chore: update impl
---------
Co-authored-by: cktsun1031 <65409152+cktsun1031@users.noreply.github.com>
Co-authored-by: JustSong <songquanpeng@foxmail.com>
2023-11-17 20:03:16 +08:00
Mikey
9d43ec57d8
feat: sync pricing for new 1106 models ( #696 )
...
* feat: sync pricing for new 1106 models
* chore: change ratio after 2023-12-11
---------
Co-authored-by: JustSong <songquanpeng@foxmail.com>
2023-11-10 21:08:23 +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
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
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
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
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
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
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
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