Commit Graph

1889 Commits

Author SHA1 Message Date
glay 12d38aa4b2
Update app/utils/aws.ts
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2024-12-09 14:43:52 +08:00
glay 2a9f7d72fc
Update app/client/platforms/bedrock.ts
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2024-12-09 14:26:37 +08:00
glay 372a327522
Update app/utils/aws.ts
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2024-12-09 10:22:08 +08:00
glay 50a241b715
Update app/utils/aws.ts
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2024-12-09 10:18:15 +08:00
glay 44a1cf6d6e
Update app/client/platforms/bedrock.ts
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2024-12-09 10:03:06 +08:00
glay a0886875e1 Enhance encryption security with additional safeguards. 2024-12-09 00:03:10 +08:00
glay 93337b2b92
Update app/client/platforms/bedrock.ts
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2024-12-08 23:58:05 +08:00
glay 4b2f447474 Enhance encryption security with additional safeguards. 2024-12-08 23:52:31 +08:00
glay 7830b37a90 Enhance encryption security with additional safeguards. 2024-12-08 23:49:59 +08:00
glay fb3437ca01
Update app/client/platforms/bedrock.ts
增加友好提示

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2024-12-08 23:47:16 +08:00
glay f5ae086d3c Enhance encryption security with additional safeguards. 2024-12-08 23:28:59 +08:00
glay 26b9fa97cd 优化代码 2024-12-08 08:47:46 +08:00
glay 603415f9e1 Enhance log security 2024-12-08 08:33:45 +08:00
glay 5ac651ad8e Enhance encryption security 2024-12-07 20:34:05 +08:00
glay ad49cd0454 优化bedrock工具类,以更安全的处理流式消息的边界值 2024-12-07 17:54:12 +08:00
glay 57dc44a54f 增加bedrock最新nova模型,优化后台代码 2024-12-07 16:49:26 +08:00
glay 4254fd34f9 增加bedrock最新nova模型,包括image解析的支持 2024-12-07 14:20:59 +08:00
glay 0c55850641 优化bedrock流式消息处理的缓冲机制,简化app和后台api调用逻辑判断和处理 2024-12-07 12:18:15 +08:00
glay a75b9f7fbe
Merge branch 'ChatGPTNextWeb:main' into main 2024-12-04 08:22:36 +08:00
code-october 1a678cb4d8 fix model leak issue 2024-11-29 15:47:28 +00:00
frostime 759a09a76c 🎨 style(setting): Place custom-model's input a seperated row. 2024-11-27 13:11:18 +08:00
glay d9d2a27d8f modify the BEDROCK_BASE_URL to use the region from the access store 2024-11-26 16:19:54 +08:00
glay 471b17831a modify the BEDROCK_BASE_URL to use the region from the access stor 2024-11-26 16:18:46 +08:00
glay 8ce2cf5c3b Remove detailed error error message. 2024-11-26 11:57:49 +08:00
glay 9c648e5b64 Remove detailed error error message. 2024-11-26 11:46:16 +08:00
glay b39b3f7a5e Remove detailed error logging in decryption function. 2024-11-26 11:41:56 +08:00
glay 448babd27f 完善mistral tool use功能 2024-11-26 10:10:34 +08:00
glay e6633753a4 完善mistral tool use功能 和llama3消息格式问题 2024-11-25 20:08:21 +08:00
glay 15d0600642
Merge branch 'ChatGPTNextWeb:main' into main 2024-11-25 19:02:50 +08:00
Dogtiti 2623a92763
Merge pull request #5850 from code-october/fix-o1
Fix o1
2024-11-25 12:31:36 +08:00
glay 9a473048b1 去掉Debug日志打印 2024-11-25 09:51:46 +08:00
glay 2fe848ecf3 去掉Debug日志打印 2024-11-25 09:51:02 +08:00
glay 0abfd279e4 完善bedrock中文翻译 2024-11-25 09:20:22 +08:00
glay 5bd7e28f82 去掉Debug日志打印 2024-11-25 09:12:30 +08:00
glay 6f7a635030 完善llama和mistral模型的推理功能 2024-11-24 23:54:04 +08:00
glay 2ccdd1706a 优化前后端代码,将公共方法抽取到util类,修改客户端加密方式 2024-11-24 15:37:49 +08:00
glay a19ba6933a
Merge branch 'ChatGPTNextWeb:main' into main 2024-11-24 11:52:37 +08:00
glay 513cf1b206 完善llama和mistral模型的推理功能 2024-11-23 18:23:20 +08:00
glay 238eb70986 完善mistral模型的推理结果 2024-11-23 16:27:19 +08:00
glay a6337e9f23 完善总结功能的代码逻辑 2024-11-23 15:13:52 +08:00
glay ff88421904 修改密钥加密逻辑 2024-11-23 13:52:14 +08:00
glay a85db21e1f 优化代码,修改方法命名错误 2024-11-23 12:09:45 +08:00
glay b0c1ccd0a0 优化和重构代码,增加前端可以设置加密配置数据的密钥 2024-11-22 22:03:42 +08:00
code-october b7acb89096 update new model for gpt-4o and gemini-exp 2024-11-22 09:48:50 +00:00
glay bd68df1d9b 修改: app/api/bedrock.ts
修改:     app/client/platforms/bedrock.ts
	修改:     app/constant.ts
2024-11-22 06:33:39 +08:00
code-october ef24d3e633 use stream when request o1 2024-11-21 03:46:10 +00:00
code-october 23350c842b fix o1 in disableGPT4 2024-11-21 03:45:07 +00:00
glay f60c237b16 去掉sdk的引入,客户端也能直连 2024-11-20 15:25:36 +08:00
glay 9d3f1d2529 remove document function,only keep the bedrock service provider 2024-11-18 16:12:03 +08:00
glay dfeb9e7f27
Merge branch 'ChatGPTNextWeb:main' into main 2024-11-17 08:53:59 +08:00
Dogtiti a2adfbbd32
Merge pull request #5821 from Sherlocksuper/scroll
feat: support more user-friendly scrolling
2024-11-16 15:24:46 +08:00
opchips e56216549e fix: 代码块嵌入小代码块时渲染错误 2024-11-15 11:56:26 +08:00
Sherlock 19facc7c85 feat: support mort user-friendly scrolling 2024-11-14 21:31:45 +08:00
glay b2d5e0e309
Merge branch 'ChatGPTNextWeb:main' into main 2024-11-13 19:42:15 +08:00
glay 225ad30898 修改: app/api/bedrock.ts
修改:     app/components/ui-lib.tsx
2024-11-13 18:37:47 +08:00
Lloyd Zhou b08ce5630c
Merge pull request #5819 from ConnectAI-E/fix-gemini-summary
Fix gemini summary
2024-11-13 15:17:44 +08:00
DDMeaqua b41c012d27 chore: shouldStream 2024-11-13 15:12:46 +08:00
Lloyd Zhou a392daab71
Merge pull request #5816 from ConnectAI-E/feature/artifacts-svg
artifacts support svg
2024-11-13 14:58:33 +08:00
DDMeaqua 0628ddfc6f chore: update 2024-11-13 14:27:41 +08:00
DDMeaqua 7eda14f138 fix: [#5308] gemini对话总结 2024-11-13 14:24:44 +08:00
glay 6bc1612720 修改: app/locales/cn.ts
修改:     app/locales/en.ts
	修改:     yarn.lock
2024-11-13 12:33:59 +08:00
glay 24261d20b3
Consider adding more Bedrock-specific configurations 2024-11-13 08:18:20 +08:00
glay 1b5a81c7ad
Add AWS secret key validation. 2024-11-13 08:10:10 +08:00
glay 70f066c15f
Add AWS region validation and improve code style. 2024-11-13 08:08:01 +08:00
glay bfa433919f
Add AWS access key validation. 2024-11-13 07:57:51 +08:00
glay afb0752d5d
Merge branch 'ChatGPTNextWeb:main' into main 2024-11-13 07:52:30 +08:00
opchips 9a86c42c95 update 2024-11-12 16:33:55 +08:00
LovelyGuYiMeng 8d66fedb1f
Update visionKeywords 2024-11-12 14:28:11 +08:00
Dogtiti 1d14a991ee fix: use current session id to trigger rerender 2024-11-11 20:30:59 +08:00
glay 09e4f95272
Merge branch 'main' into main 2024-11-11 15:55:20 +08:00
Lloyd Zhou 289aeec8af
Merge pull request #5786 from ConnectAI-E/feature/realtime-chat
Feature/realtime chat
2024-11-11 13:19:26 +08:00
lloydzhou 7d71da938f remove close-24 svg 2024-11-11 13:15:09 +08:00
Lloyd Zhou f8f6954115
Merge pull request #5779 from ConnectAI-E/feature/model/claude35haiku
add claude35haiku & not support vision
2024-11-11 13:13:09 +08:00
JingSyue 18a6571883
Update proxy.ts
Update proxy.ts
2024-11-11 12:59:29 +08:00
JingSyue 2b0f2e5f9d fix: built-in plugin dalle3 error #5787 2024-11-10 10:28:25 +08:00
Dogtiti 4629b39c29 chore: comment context history 2024-11-09 16:22:01 +08:00
Dogtiti d33e772fa5 feat: voice print 2024-11-08 22:39:17 +08:00
Dogtiti 89136fba32 feat: voice print 2024-11-08 22:18:39 +08:00
Dogtiti 8b4ca133fd feat: voice print 2024-11-08 22:02:31 +08:00
glay 0e09697274
Merge branch 'ChatGPTNextWeb:main' into main 2024-11-08 20:48:27 +08:00
lloydzhou a4c9eaf6cd do not save empty audio file 2024-11-08 13:43:13 +08:00
lloydzhou 50e63109a3 merge code and get analyser data 2024-11-08 13:21:40 +08:00
Dogtiti 48a1e8a584 chore: i18n 2024-11-07 21:32:47 +08:00
Dogtiti e44ebe3f0e feat: realtime config 2024-11-07 21:28:23 +08:00
DDMeaqua d5bda2904d chore: o1模型使用max_completion_tokens 2024-11-07 19:45:27 +08:00
lloydzhou 283caba8ce stop streaming play after get input audio. 2024-11-07 18:57:57 +08:00
lloydzhou b78e5db817 add temperature config 2024-11-07 17:55:51 +08:00
lloydzhou 46c469b2d7 add voice config 2024-11-07 17:47:55 +08:00
lloydzhou c00ebbea4f update 2024-11-07 17:40:03 +08:00
lloydzhou c526ff80b5 update 2024-11-07 17:23:20 +08:00
lloydzhou 0037b0c944 ts error 2024-11-07 17:03:04 +08:00
lloydzhou 6f81bb3b8a add context after connected 2024-11-07 16:56:15 +08:00
lloydzhou 7bdc45ed3e connect realtime model when open panel 2024-11-07 16:41:24 +08:00
Dogtiti 88cd3ac122 fix: ts error 2024-11-07 12:16:11 +08:00
Dogtiti 4988d2ee26 fix: ts error 2024-11-07 11:56:58 +08:00
lloydzhou 8deb7a92ee hotfix for update target session 2024-11-07 11:53:01 +08:00
lloydzhou db060d732a upload save record wav file 2024-11-07 11:45:38 +08:00
lloydzhou 522627820a upload save wav file logic 2024-11-07 09:36:22 +08:00
lloydzhou cf46d5ad63 upload response audio, and update audio_url to session message 2024-11-07 01:12:08 +08:00
glay 9e04198bdc
Merge branch 'main' into main 2024-11-06 23:39:54 +08:00
Dogtiti a4941521d0 feat: audio to message 2024-11-06 22:30:02 +08:00
Dogtiti f6e1f8398b wip 2024-11-06 22:07:33 +08:00
Dogtiti d544eead38 feat: realtime chat ui 2024-11-06 21:14:45 +08:00
opchips 64aa760e58 update claude rank 2024-11-06 19:18:05 +08:00
glay 4204890d90
Merge branch 'ChatGPTNextWeb:main' into main 2024-11-06 18:19:14 +08:00
glay 5d5456c1c5 修改: app/api/bedrock.ts
修改:     app/client/platforms/bedrock.ts
2024-11-06 17:23:53 +08:00
Dogtiti e0bbb8bb68 style: improve classname by clsx 2024-11-06 16:58:26 +08:00
opchips 6667ee1c7f merge main 2024-11-06 15:08:18 +08:00
Dogtiti 85cdcab850 fix: botMessage reply date 2024-11-06 14:53:08 +08:00
Lloyd Zhou f4c9410c29
Merge pull request #5776 from ConnectAI-E/feat-glm
fix: glm chatpath
2024-11-06 14:02:20 +08:00
DDMeaqua adf7d8200b fix: glm chatpath 2024-11-06 13:55:57 +08:00
glay f0c23cc6aa 修改: app/store/access.ts 2024-11-06 13:10:20 +08:00
opchips 3086a2fa77 add claude35haiku not vision 2024-11-06 12:56:24 +08:00
Dogtiti 106461a1e7 Merge branch 'main' of https://github.com/ConnectAI-E/ChatGPT-Next-Web into feature/update-target-session 2024-11-06 11:08:41 +08:00
Dogtiti c4e19dbc59 fix: updateCurrentSession => updateTargetSession 2024-11-06 11:06:18 +08:00
glay 3bf55d3530
Merge branch 'main' into main 2024-11-06 10:52:34 +08:00
Dogtiti f3603e59fa
Merge pull request #5769 from ryanhex53/fix-model-multi@
Custom model names can include the `@` symbol by itself.
2024-11-06 10:49:28 +08:00
glay 952d8835a3 修改: app/components/settings.tsx
修改:     app/components/ui-lib.tsx
	修改:     app/constant.ts
	修改:     app/utils/encryption.ts
2024-11-06 09:44:36 +08:00
glay c55cea5853 修改: app/store/access.ts 2024-11-06 09:09:49 +08:00
glay ca17e90c52 修改: app/utils/encryption.ts 2024-11-06 00:43:03 +08:00
glay cae20af24d 修改: app/api/bedrock.ts
修改:     app/client/api.ts
	修改:     app/store/access.ts
	新文件:   app/utils/encryption.ts
	修改:     package.json
2024-11-06 00:21:30 +08:00
glay 1f66d3779c 修改: app/api/bedrock.ts 2024-11-05 23:32:24 +08:00
glay 045adc3567 修改: app/api/bedrock.ts 2024-11-05 23:28:07 +08:00
ryanhex53 8e2484fcdf Refactor: Replace all provider split occurrences with getModelProvider utility method 2024-11-05 13:52:54 +00:00
glay 1998cf5ced Merge feature/update-bedrock-api into main 2024-11-05 20:20:20 +08:00
glay 1164e1bdf6 Merge feature/update-bedrock-api into main 2024-11-05 20:04:36 +08:00
glay d55c752e1e 修改: app/api/bedrock.ts
修改:     app/utils.ts
2024-11-05 19:13:32 +08:00
glay e3c18bb123 修改: app/api/bedrock.ts 2024-11-05 18:53:12 +08:00
glay f532731e2a 修改: app/client/platforms/bedrock.ts 2024-11-05 17:32:52 +08:00
glay 58837f6dec 修改: app/api/bedrock.ts
修改:     app/client/platforms/bedrock.ts
2024-11-05 17:28:19 +08:00
ryanhex53 b844045d23 Custom model names can include the `@` symbol by itself.
To specify the model's provider, append it after the model name using `@` as before.

This format supports cases like `google vertex ai` with a model name like `claude-3-5-sonnet@20240620`.

For instance, `claude-3-5-sonnet@20240620@vertex-ai` will be split by `split(/@(?!.*@)/)` into:

`[ 'claude-3-5-sonnet@20240620', 'vertex-ai' ]`, where the former is the model name and the latter is the custom provider.
2024-11-05 07:44:12 +00:00
Lloyd Zhou e49fe976d9
Merge pull request #5765 from ConnectAI-E/feature/onfinish
feat: update real 'currentSession'
2024-11-05 15:07:52 +08:00
glay afbf5eb541 修改: .env.template
修改:     app/api/auth.ts
	修改:     app/api/bedrock.ts
	修改:     app/client/api.ts
	修改:     app/client/platforms/bedrock.ts
	修改:     app/components/settings.tsx
	修改:     app/config/server.ts
	修改:     app/constant.t
2024-11-05 14:27:52 +08:00
glay 0f276f59bb 修改: app/client/platforms/bedrock.ts 2024-11-05 10:34:33 +08:00
lloydzhou a6c1eb27a8 add claude 3.5 haiku 2024-11-05 10:23:15 +08:00
Dogtiti e49466fa05 feat: update real 'currentSession' 2024-11-04 21:25:56 +08:00
Dogtiti 44fc5b5cbf fix: onfinish responseRes 2024-11-04 17:00:45 +08:00
glay fc391168e9 修改: app/api/bedrock.ts
删除:     app/api/bedrock/models.ts
	删除:     app/api/bedrock/utils.ts
	修改:     app/client/platforms/bedrock.ts
	删除:     app/components/chat-actions.tsx
	修改:     app/components/chat.tsx
	修改:     app/constant.ts
	删除:     app/icons/document.svg
2024-11-04 16:24:10 +08:00
Dogtiti 2d3f7c922f fix: vision model dalle3 2024-11-04 15:51:04 +08:00
Dogtiti d66bfc6352
Merge pull request #5752 from ConnectAI-E/feat-glm
fix: ts error
2024-11-01 14:16:50 +08:00
DDMeaqua 4d75b23ed1 fix: ts error 2024-11-01 14:15:12 +08:00
Dogtiti 36bfa2ef7c
Merge pull request #5741 from ConnectAI-E/feat-glm
feat: [#5714] 支持GLM
2024-11-01 13:57:30 +08:00
DDMeaqua afe12c212e chore: update 2024-11-01 13:53:43 +08:00
glay dca4a0e48f 修改: app/api/bedrock.ts
修改:     app/api/bedrock/models.ts
	修改:     app/api/bedrock/utils.ts
	修改:     app/client/api.ts
	修改:     app/client/platforms/bedrock.ts
	新文件:   app/components/chat-actions.tsx
	修改:     app/components/chat.module.scss
	修改:     app/components/chat.tsx
	修改:     app/constant.ts
	新文件:   app/icons/document.svg
	修改:     app/locales/cn.ts
	修改:     app/locales/en.ts
2024-10-31 14:23:38 +08:00
glay 722c28839f
Merge branch 'ChatGPTNextWeb:main' into main 2024-10-31 11:51:41 +08:00
DDMeaqua 7a8d557ea3 chore: 开启插件 2024-10-31 11:37:19 +08:00
DDMeaqua d3f0a77830 chore: update Provider 2024-10-31 11:23:06 +08:00
Core 44383a8b33
add claude-3-5-sonnet-latest and claude-3-opus-latest
add  claude-3-5-sonnet-latest and claude-3-opus-latest
2024-10-31 11:00:45 +08:00
DDMeaqua d357b45e84 feat: [#5714] 支持GLM 2024-10-30 19:24:03 +08:00
hyiip 736cbdbdd1 add constant to claude 3.5 sonnet 20241022 2024-10-30 02:18:41 +08:00