Closed OpenJarvisAI closed 7 months ago
import openai
openai.api_key = 'anything'
openai.base_url = "http://localhost:3040/v1/"
completion = openai.chat.completions.create(
model="gpt-3.5-turbo",
messages=[
{"role": "user", "content": "Hello"},
],
)
print(completion.choices[0].message.content)
Since
the Client will call base_url model list inside to connect, but it cannot return a response, how to make it work with python client?