dify支持哪些API镜像代理? #271

Closed
opened 2026-02-21 17:26:35 -05:00 by yindo · 5 comments
Owner

Originally created by @JunTsao on GitHub (Jul 17, 2023).

由于需要做本地化部署,因此没有办法直连OpenAI,我在docker-compose.yaml文件里的api和work里添加一个OPENAI_API_BASE后,仍提示我“无效的OPENAI API 密钥”,请问我是否哪里配置不对?

我使用了api2d与ohmygpt都不行
以下是镜像API配置:

worker:
    image: langgenius/dify-api:0.3.8
    restart: always
    environment:
      OPENAI_API_BASE: https://openai.api2d.net
      # Startup mode, 'worker' starts the Celery worker for processing the queue.
      MODE: worker
api:
    image: langgenius/dify-api:0.3.8
    restart: always
    environment:
      OPENAI_API_BASE: https://openai.api2d.net
      # Startup mode, 'api' starts the API server.
      MODE: api
Originally created by @JunTsao on GitHub (Jul 17, 2023). 由于需要做本地化部署,因此没有办法直连OpenAI,我在docker-compose.yaml文件里的api和work里添加一个OPENAI_API_BASE后,仍提示我“无效的OPENAI API 密钥”,请问我是否哪里配置不对? 我使用了api2d与ohmygpt都不行 以下是镜像API配置: ``` worker: image: langgenius/dify-api:0.3.8 restart: always environment: OPENAI_API_BASE: https://openai.api2d.net # Startup mode, 'worker' starts the Celery worker for processing the queue. MODE: worker ``` ``` api: image: langgenius/dify-api:0.3.8 restart: always environment: OPENAI_API_BASE: https://openai.api2d.net # Startup mode, 'api' starts the API server. MODE: api ```
yindo added the 🙋‍♂️ question🙏 help wanted labels 2026-02-21 17:26:35 -05:00
yindo closed this issue 2026-02-21 17:26:35 -05:00
Author
Owner

@crazywoola commented on GitHub (Jul 17, 2023):

Sorry, we do not have a complete list to test all mirrors.

@crazywoola commented on GitHub (Jul 17, 2023): Sorry, we do not have a complete list to test all mirrors.
Author
Owner

@prompt-bot commented on GitHub (Jul 18, 2023):

cloudfare worker

@prompt-bot commented on GitHub (Jul 18, 2023): cloudfare worker
Author
Owner

@wuchengji commented on GitHub (Jul 19, 2023):

I have the same problem

@wuchengji commented on GitHub (Jul 19, 2023): I have the same problem
Author
Owner

@DoubleHeer commented on GitHub (Jul 25, 2023):

try OPENAI_API_BASE: https://openai.api2d.net/v1

@DoubleHeer commented on GitHub (Jul 25, 2023): try OPENAI_API_BASE: https://openai.api2d.net/v1
Author
Owner

@zfno111 commented on GitHub (Aug 14, 2023):

请问有后续么? 我自己搭建的代理服务器 一直报这个错。

@zfno111 commented on GitHub (Aug 14, 2023): 请问有后续么? 我自己搭建的代理服务器 一直报这个错。
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#271