PaddleNLP
PaddleNLP copied to clipboard
通过paddlenlp启动的大模型兼容openai接口
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接口
目前没有开发的计划,欢迎开发者的贡献。