Code Monkey home page Code Monkey logo

Comments (9)

takatost avatar takatost commented on September 18, 2024 1

可以在 docker-compose.yaml 中的 api 和 worker 服务加一条 environments 记录

OPENAI_API_BASE: 'https://<your-openai-mirror-domain>/v1'

这个pr还没有merge吧?

pr 只是声明下参数,openai 的包可以直接读环境变量

from dify.

dsbruce avatar dsbruce commented on September 18, 2024 1

请问, 用国内的镜像代理有测试成功的吗?我试了还是不行

from dify.

takatost avatar takatost commented on September 18, 2024

可以在 docker-compose.yaml 中的 api 和 worker 服务加一条 environments 记录

OPENAI_API_BASE: 'https://<your-openai-mirror-domain>/v1'

from dify.

yuhao1118 avatar yuhao1118 commented on September 18, 2024

可以在 docker-compose.yaml 中的 api 和 worker 服务加一条 environments 记录

OPENAI_API_BASE: 'https://<your-openai-mirror-domain>/v1'

这个pr还没有merge吧?

from dify.

lethe3000 avatar lethe3000 commented on September 18, 2024

可以在 docker-compose.yaml 中的 api 和 worker 服务加一条 environments 记录

OPENAI_API_BASE: 'https://<your-openai-mirror-domain>/v1'

这个pr还没有merge吧?

在自己的docker-compose.yaml中设置环境变量,不需要改动代码

from dify.

killpanda avatar killpanda commented on September 18, 2024

可以在 docker-compose.yaml 中的 api 和 worker 服务加一条 environments 记录

OPENAI_API_BASE: 'https://<your-openai-mirror-domain>/v1'

这个pr还没有merge吧?

pr 只是声明下参数,openai 的包可以直接读环境变量

但现在有个问题,就是在系统后台变更key的时候,使用的 /moderations 接口,很多第三方API代理都不支持这个接口。导致第三方key无法配置成功 @takatost

from dify.

takatost avatar takatost commented on September 18, 2024

这。。。可能只能增加一个非标的开关配置了,可以禁用掉这个校验

from dify.

killpanda avatar killpanda commented on September 18, 2024

@dsbruce 我用的aiproxy.io,成功了

from dify.

Huiguorou12 avatar Huiguorou12 commented on September 18, 2024

@dsbruce 我用的aiproxy.io,成功了

请问aiproxy.io是什么?可以了解一下吗?(我原来的代理突然不能用了)

from dify.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.