mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-05-23 22:20:23 +09:00
modify the BEDROCK_BASE_URL to use the region from the access stor
This commit is contained in:
parent
8ce2cf5c3b
commit
471b17831a
@ -12,8 +12,6 @@ export const RUNTIME_CONFIG_DOM = "danger-runtime-config";
|
||||
export const STABILITY_BASE_URL = "https://api.stability.ai";
|
||||
|
||||
export const OPENAI_BASE_URL = "https://api.openai.com";
|
||||
export const BEDROCK_BASE_URL =
|
||||
"https://bedrock-runtime.us-west-2.amazonaws.com";
|
||||
export const ANTHROPIC_BASE_URL = "https://api.anthropic.com";
|
||||
|
||||
export const GEMINI_BASE_URL = "https://generativelanguage.googleapis.com/";
|
||||
@ -247,6 +245,9 @@ export const Bedrock = {
|
||||
`https://bedrock-runtime.${region}.amazonaws.com`,
|
||||
};
|
||||
|
||||
// Get the region from access store for BEDROCK_BASE_URL
|
||||
export const BEDROCK_BASE_URL = Bedrock.getEndpoint();
|
||||
|
||||
export const DEFAULT_INPUT_TEMPLATE = `{{input}}`; // input / time / model / lang
|
||||
// export const DEFAULT_SYSTEM_TEMPLATE = `
|
||||
// You are ChatGPT, a large language model trained by {{ServiceProvider}}.
|
||||
|
Loading…
Reference in New Issue
Block a user