Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

通过paddlenlp启动的大模型兼容openai接口 #6857

Closed
jiaolongxue opened this issue Aug 29, 2023 · 2 comments
Closed

通过paddlenlp启动的大模型兼容openai接口 #6857

jiaolongxue opened this issue Aug 29, 2023 · 2 comments
Assignees
Labels

Comments

@jiaolongxue
Copy link

jiaolongxue commented Aug 29, 2023

Feature request

希望通过paddlenlp启动的大模型服务可以兼容openai接口

# import openai
# openai.api_key = "EMPTY" # Not support yet
# openai.api_base = "http://localhost:8888/v1"

# model = "chatglm2-6b"

# # create a chat completion
# completion = openai.ChatCompletion.create(
#   model=model,
#   messages=[{"role": "user", "content": "Hello! What is your name?"}]
# )
# # print the completion
# print(completion.choices[0].message.content)

Motivation

希望将大模型运行在paddle的推理框架上,可以兼容openai接口

Your contribution

希望将大模型运行在paddle的推理框架上,可以兼容openai接口

@w5688414
Copy link
Contributor

目前没有开发的计划,欢迎开发者的贡献。

@ZHUI
Copy link
Collaborator

ZHUI commented Mar 17, 2025

@ZHUI ZHUI closed this as completed Mar 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants