pydo.inference.create_chat_completion()
Generated on 7 May 2026
from pydo version
v0.34.0
Description
Creates a model response for the given chat conversation.
Request Sample
import os
from pydo import Client
client = Client(token=os.environ.get("MODEL_ACCESS_KEY"))
resp = client.chat.completions.create(
model="llama3.3-70b-instruct",
messages=[
{"role": "user", "content": "What is the capital of Portugal?"},
],
)
print(resp.choices[0].message.content)More Information
See the API spec for this endpoint to view additional detail on responses, headers, parameters, and more.