forked from lobehub/lobe-chat
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ feat: add SenseNova (商汤) model provider (lobehub#4162)
* ✨ feat: add SenseCore (商汤) model provider * 💄 style: update model list, fix `frequency_penalty`, `temperature`, `top_p` value range * 🔨 chore: add jwt api token calculate * 🔨 chore: remove `SENSECORE_API_KEY` ENV * Update authToken.ts * 🔨 chore: add debug logs * ♻️ refactor: rollback changes, remove JWT * 👷 build: add docker ENV, `SENSECORE_API_KEY` & `SENSECORE_MODEL_LIST` * 🔨 chore: cleanup * 🔨 chore: cleanup * 🔨 chore: rename `sensecore` to `sensenova` * 💄 style: update model list * 💄 style: sort model list * ✨ feat: add jwt token generator for SenseNova * ♻️ refactor: support two different type of `API TOKEN` * Update authToken.ts * 💄 style: add custom form for SenseNova * 💄 style: fix custom form calling & adjust icon size * 🐛 fix: fix CI error * 💄 style: adjust icon size * 🐛 fix: fix `sensenovaAccessKeySecret` not store in key * 🐛 fix: try to fix loading key from ENV * 🐛 fix: try to fix loading key from ENV * 🐛 fix: seems be the root cause, typo * 💄 style: remove title * 🐛 fix: fix build error * 🔨 chore: add i18n * 🐛 fix: fix PR conflicts * 🐛 fix: fix route ci error * 🐛 fix: fix PR conflicts * ♻️ refactor: move `generateJwtTokenSenseNova` to `LobeSenseNovaAI.generateJWTToken` * Update index.ts * rollback changes, submit wrong branch * 🐛 fix: fix CI error, refactor the chat webapi * ♻️ refactor: replace deprecated module `crypto-js` to `crypto-es` * Revert "♻️ refactor: replace deprecated module `crypto-js` to `crypto-es`" This reverts commit 9655c92. * ♻️ refactor: replace `crypto-js` to `jose`, only support ENV now (Part 1) * Revert "♻️ refactor: replace `crypto-js` to `jose`, only support ENV now (Part 1)" * ♻️ refactor: using `jose` to generate the APIToken * 🔨 chore: remove debug code * 🔨 chore: cleanup package, remove `crypto-js` * 🔨 chore: add unit test * 🔨 chore: optimize jwt generate process
- Loading branch information
1 parent
b2fbde4
commit 7a4e0b3
Showing
76 changed files
with
1,534 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.