Git Product home page Git Product logo

Comments (4)

luyaxi avatar luyaxi commented on September 24, 2024

该功能已集成,请在config.yml中openai_key中添加需要的请求参数,例如
gpt-4-32k:
- api_key: xxx
api_base: xxxx
api_type: azure
api_version: 2023-07-01-preview
engine: gpt4-32

from xagent.

VectorZhao avatar VectorZhao commented on September 24, 2024

该功能已集成,请在config.yml中openai_key中添加需要的请求参数,例如 gpt-4-32k: - api_key: xxx api_base: xxxx api_type: azure api_version: 2023-07-01-preview engine: gpt4-32
比如我要使用自己搭建的one-api的gpt3.5-16k,只需要做如下配置吧

openai_keys:
  gpt-3.5-turbo-16k:
    - api_key: sk-xxxxx
      api_base: https://api.xxx.xxx
      model: gpt-3.5-turbo-16k

default_completion_kwargs:
  model: gpt-3.5-turbo-16k
  temperature: 0.5
  request_timeout: 60

from xagent.

luyaxi avatar luyaxi commented on September 24, 2024

是的,您可以在其中添加任何受openai.ChatCompletion支持的参数,如有其他问题请及时沟通

from xagent.

VectorZhao avatar VectorZhao commented on September 24, 2024

好的,感谢。期待更为方便的部署方案。

from xagent.

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.