# Get the chat response
chat_response = client.chat.complete(
    model=model,
    messages=messages
)