Code Monkey home page Code Monkey logo

Comments (5)

QAbot-zh avatar QAbot-zh commented on June 18, 2024 1

遵循 openai 的参数、响应结构和路由(v1/chat/completions),就可以套用了

from chatgpt-next-web.

Issues-translate-bot avatar Issues-translate-bot commented on June 18, 2024

Bot detected the issue body's language is not English, translate it automatically.


Title: [Feature Request]: About how to access new API for secondary development

Problem Description

I would like to ask how to access the new API. An LLM is deployed on the server. I mainly want to add a UI interface to my LLM interface. Is there any specific operation or documentation?

Solution Description

none

Alternatives Considered

No response

Additional Context

No response

from chatgpt-next-web.

Issues-translate-bot avatar Issues-translate-bot commented on June 18, 2024

Bot detected the issue body's language is not English, translate it automatically.


Follow openai's parameters, response structure and routing (v1/chat/completions) and you can apply it

from chatgpt-next-web.

Dean-YZG avatar Dean-YZG commented on June 18, 2024

你的LLM Api可以直接效仿 openai 的接口协议实现,然后,在部署nextchat应用的时候,在环境变量中设置BASE_URL指向你的LLM服务,在openai API协议的入参中,有一个model字段,标识的是你调用的模型名,这个model字段在你的LLM Api的接口实现中可以忽略掉

from chatgpt-next-web.

Issues-translate-bot avatar Issues-translate-bot commented on June 18, 2024

Bot detected the issue body's language is not English, translate it automatically.


Your LLM Api can directly imitate the interface protocol implementation of openai. Then, when deploying the nextchat application, set the BASE_URL in the environment variable to point to your LLM service. In the input parameters of the openai API protocol, there is a model field, identified It is the name of the model you are calling. This model field can be ignored in your LLM Api interface implementation.

from chatgpt-next-web.

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.