mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-11-12 20:23:45 +08:00
修改: .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
This commit is contained in:
@@ -60,14 +60,11 @@ const DEFAULT_ACCESS_STATE = {
|
||||
openaiApiKey: "",
|
||||
|
||||
// bedrock
|
||||
bedrockUrl: DEFAULT_BEDROCK_URL,
|
||||
bedrockApiKey: "",
|
||||
awsRegion: "",
|
||||
awsAccessKeyId: "",
|
||||
awsSecretAccessKey: "",
|
||||
awsAccessKey: "",
|
||||
awsSecretKey: "",
|
||||
awsSessionToken: "",
|
||||
awsCognitoUser: false,
|
||||
awsInferenceProfile: "", // Added inference profile field
|
||||
|
||||
// azure
|
||||
azureUrl: "",
|
||||
@@ -154,11 +151,7 @@ export const useAccessStore = createPersistStore(
|
||||
},
|
||||
|
||||
isValidBedrock() {
|
||||
return ensure(get(), [
|
||||
"awsAccessKeyId",
|
||||
"awsSecretAccessKey",
|
||||
"awsRegion",
|
||||
]);
|
||||
return ensure(get(), ["awsAccessKey", "awsSecretKey", "awsRegion"]);
|
||||
},
|
||||
|
||||
isValidAzure() {
|
||||
|
||||
Reference in New Issue
Block a user