Commit Graph

124 Commits

Author SHA1 Message Date
Yanyutin753
d7690d843a feat support 2024-03-11 15:37:42 +08:00
Clivia
5306ac1b14 修改coze开头的模型,使用url传image_url 2024-03-11 14:51:45 +08:00
Clivia
fbfc70e2bf feat 传url直接上传速度更快 2024-03-11 14:09:18 +08:00
Yanyutin753
a25a8ed812 feat moonshot in nextweb 2024-03-11 12:13:42 +08:00
Clivia
16bf0e5366 Update openai.ts 2024-03-11 00:28:02 +08:00
Clivia
0f9372717e feat update url 2024-03-11 00:18:24 +08:00
Clivia
e52eb5580b 优化上传链接 2024-03-10 23:47:21 +08:00
Clivia
3dddad317e feat moonshot-v1-vision 2024-03-10 23:39:35 +08:00
Clivia
da333f8f20 feat moonshot-vision 2024-03-10 23:10:22 +08:00
Yanyutin753
7fd9653e7c feat send base64 or url 2024-03-07 23:33:32 +08:00
Clivia
6b95e7cdea 优化接受gpts模型,并支持上传文件 2024-03-03 08:12:31 +00:00
Clivia
f19a7bc242 feat use MIME to replace mimeTypeMap 2024-02-29 08:23:21 +00:00
Clivia
4fee67240c feat 更新调用mime库 2024-02-29 16:12:14 +08:00
Clivia
8fe047641f fix 切换传url的后缀大小写问题 2024-02-28 00:34:32 +08:00
Clivia
afacb3c427 新增环境变量base64 2024-02-27 13:25:33 +08:00
Clivia
662569f63e 优化ip加端口模式 2024-02-27 08:33:11 +08:00
Yanyutin753
5e0202dec5 Update openai.ts 2024-02-27 00:24:30 +08:00
Yanyutin753
d28469a1bf 新增变量NEXT_PUBLIC_ENABLE_BASE64 2024-02-27 00:22:15 +08:00
Clivia
2aed290c32 Update openai.ts 2024-02-26 23:43:57 +08:00
Clivia
74678ece61 修改适配url替代base64 2024-02-26 23:23:12 +08:00
Clivia
e9d942dda1 fix google.ts 2024-02-19 23:03:58 +08:00
Clivia
c1c45eb46e 修改通用MIME 2024-02-15 13:55:36 +08:00
Clivia
cd1db9c609 Merge branch 'Hk-Gosuto:main' into main 2024-02-13 00:43:12 +08:00
Hk-Gosuto
fee45f7b23 fix: gemini 2024-02-09 13:00:21 +08:00
Hk-Gosuto
0ed7402494 fix: fix build 2024-02-09 08:47:56 +08:00
Hk-Gosuto
b56d2e6b4f Merge remote-tracking branch 'upstream/main' 2024-02-09 08:23:26 +08:00
Clivia
f6afa671ed 适配上传不同类型的文件,适配gpt-4-all,支持包含vision字段的模型,自动打开上传文件按钮 2024-02-08 02:30:45 +00:00
fred-bf
d74f636558 Fix/gemini app endpoint (#4017)
* fix: support custom api endpoint

* fix: attach api key to google gemini
2024-02-07 13:46:52 +08:00
fred-bf
b8f0822214 fix: support custom api endpoint (#4016) 2024-02-07 13:40:30 +08:00
fred-bf
bca74241e6 fix: fix gemini issue when using app (#4013)
* chore: update path

* fix: fix google auth logic

* fix: not using header authorization for google api

* chore: revert to allow stream
2024-02-07 13:17:11 +08:00
Hk-Gosuto
296df592e0 feat: support local storage 2024-01-05 19:29:14 +08:00
Hk-Gosuto
a2b4792d34 Merge remote-tracking branch 'upstream/main' 2024-01-02 09:32:09 +08:00
Fred Liang
9eaf492d5b chore: low the google safety setting to avoid unexpected blocking 2023-12-31 19:49:22 +08:00
Fred Liang
a80502f7db fix: fix gemini pro streaming api duplicated issue (#3721)
* fix: streaming duplicated issue

* chore: remove debug logs

* chore: add types defination
2023-12-31 19:08:16 +08:00
Hk-Gosuto
98b5ace66e fix: gemini authentication error 2023-12-30 11:37:39 +08:00
Hk-Gosuto
6c71c83af7 fix: gemini 2023-12-29 17:59:49 +08:00
Hk-Gosuto
78bc819742 fix: fix gemini stream output 2023-12-29 14:10:51 +08:00
Fred Liang
9e86aa0901 feat: support streaming for Gemini Pro (#3688)
* feat: support streaming for Gemini Pro

* feat: display texts smoothly

* chore: remove comments
2023-12-29 13:53:26 +08:00
Rocky
7595918055 Update api.ts to set proper header "Accept"
So it can work fine for some GPT forward service.
2023-12-29 13:52:01 +08:00
Fred Liang
5cf58d9446 feat: support streaming for Gemini Pro (#3688)
* feat: support streaming for Gemini Pro

* feat: display texts smoothly

* chore: remove comments
2023-12-29 03:42:45 +08:00
Hk-Gosuto
3782c48008 feat: compatible old openai message 2023-12-27 13:06:20 +08:00
Yifei Zhang
c03abdac42 Merge pull request #3570 from Rocky0102/main 2023-12-27 01:24:44 +08:00
Hk-Gosuto
e60c0f009b fix: upload image error 2023-12-26 12:42:37 +08:00
Hk-Gosuto
24de1bb77a fix: support azure 2023-12-25 19:34:30 +08:00
Hk-Gosuto
fa2e046285 Merge remote 2023-12-25 12:40:09 +08:00
Hk-Gosuto
da29a94714 Merge remote-tracking branch 'upstream/main' 2023-12-25 12:39:24 +08:00
Fred Liang
199f29e63c chore: auto concat messages 2023-12-25 04:33:47 +08:00
Fred Liang
7c3dfb7bae feat: support custom gemini pro params 2023-12-24 17:24:04 +08:00
Fred Liang
75057f9a91 chroe: support error reason for gemini pro 2023-12-24 04:32:25 +08:00
Fred Liang
ae19a0dc5f chroe: update model name 2023-12-24 04:22:12 +08:00