diff --git a/apps/pandora/1.2.5/.env.sample b/apps/pandora/1.2.5/.env.sample index 09e15b17..550efd3a 100644 --- a/apps/pandora/1.2.5/.env.sample +++ b/apps/pandora/1.2.5/.env.sample @@ -2,3 +2,5 @@ CONTAINER_NAME="pandora" PANEL_APP_PORT_HTTP="40040" DATA_PATH="./data" PROXY="" +API_BASE_URL="https://ai.fakeopen.com" +REVERSE_PROXY="https://ai.fakeopen.com" diff --git a/apps/pandora/1.2.5/data.yml b/apps/pandora/1.2.5/data.yml index 8f332d71..2894f236 100644 --- a/apps/pandora/1.2.5/data.yml +++ b/apps/pandora/1.2.5/data.yml @@ -15,10 +15,24 @@ additionalProperties: labelZh: 数据文件夹路径 required: true type: text - - default: '' + - default: "" edit: true envKey: PROXY labelEn: Specify the proxy in the format:protocol://user:pass@ip:port. labelZh: 指定代理,格式:protocol://user:pass@ip:port。 required: false + type: text + - default: https://ai.fakeopen.com + edit: true + envKey: API_BASE_URL + labelEn: OpenAI API interface address + labelZh: OpenAI API接口地址 + required: true + type: text + - default: https://ai.fakeopen.com + edit: true + envKey: REVERSE_PROXY + labelEn: ChatGPT API reverse proxy + labelZh: ChatGPT API反向代理 + required: true type: text \ No newline at end of file diff --git a/apps/pandora/1.2.5/docker-compose.yml b/apps/pandora/1.2.5/docker-compose.yml index 2133aa1a..b29bf79a 100644 --- a/apps/pandora/1.2.5/docker-compose.yml +++ b/apps/pandora/1.2.5/docker-compose.yml @@ -29,6 +29,8 @@ services: # 指定服务启动的线程数,默认为 8,Cloud模式为 4。 - PANDORA_THREADS=4 - PANDORA_CLOUD=CLOUD + - OPENAI_API_PREFIX=${API_BASE_URL} + - CHATGPT_API_PREFIX=${REVERSE_PROXY} #- OPENAI_EMAIL=${OPENAI_ACCOUNT} #- OPENAI_PASSWORD=${OPENAI_PASSWORD} #- OPENAI_MFA_CODE=${OPENAI_MFA} diff --git a/apps/pandora/latest/.env.sample b/apps/pandora/latest/.env.sample index 09e15b17..550efd3a 100644 --- a/apps/pandora/latest/.env.sample +++ b/apps/pandora/latest/.env.sample @@ -2,3 +2,5 @@ CONTAINER_NAME="pandora" PANEL_APP_PORT_HTTP="40040" DATA_PATH="./data" PROXY="" +API_BASE_URL="https://ai.fakeopen.com" +REVERSE_PROXY="https://ai.fakeopen.com" diff --git a/apps/pandora/latest/data.yml b/apps/pandora/latest/data.yml index 8f332d71..2894f236 100644 --- a/apps/pandora/latest/data.yml +++ b/apps/pandora/latest/data.yml @@ -15,10 +15,24 @@ additionalProperties: labelZh: 数据文件夹路径 required: true type: text - - default: '' + - default: "" edit: true envKey: PROXY labelEn: Specify the proxy in the format:protocol://user:pass@ip:port. labelZh: 指定代理,格式:protocol://user:pass@ip:port。 required: false + type: text + - default: https://ai.fakeopen.com + edit: true + envKey: API_BASE_URL + labelEn: OpenAI API interface address + labelZh: OpenAI API接口地址 + required: true + type: text + - default: https://ai.fakeopen.com + edit: true + envKey: REVERSE_PROXY + labelEn: ChatGPT API reverse proxy + labelZh: ChatGPT API反向代理 + required: true type: text \ No newline at end of file diff --git a/apps/pandora/latest/docker-compose.yml b/apps/pandora/latest/docker-compose.yml index 0f257f42..aed0aa0c 100644 --- a/apps/pandora/latest/docker-compose.yml +++ b/apps/pandora/latest/docker-compose.yml @@ -29,6 +29,8 @@ services: # 指定服务启动的线程数,默认为 8,Cloud模式为 4。 - PANDORA_THREADS=4 - PANDORA_CLOUD=CLOUD + - OPENAI_API_PREFIX=${API_BASE_URL} + - CHATGPT_API_PREFIX=${REVERSE_PROXY} #- OPENAI_EMAIL=${OPENAI_ACCOUNT} #- OPENAI_PASSWORD=${OPENAI_PASSWORD} #- OPENAI_MFA_CODE=${OPENAI_MFA}