Build powerful conversational AI applications with comprehensive chat completion capabilities. Automatic authentication, conversation history management, and flexible interaction methods make integration seamless.
chat.send()
client.chat.send()
for chat applications with automatic conversation management and event-driven responses:
chat.completions()
client.chat.completions()
for direct API calls with manual control:
historySize
is configured:
client.chat.send()
, you can listen for events:
chat.send()
when:
chat.completions()
when:
temperature
0.7-0.9 for creative responses, 0.1-0.3 for factual responsestop_k
to 20-40 for focused responses, higher for more diversityrepetition_penalty
1.1-1.2 to reduce repetitioncompliance
enabled (true) in production for content safetymax_tokens
based on your use case (default: 150)historySize
to 10-30 for most conversational applicationsreasoning: true
for debugging or transparency (extracts <think>
blocks)check_image_generation
so AI analyzes its responses and creates image_prompt
when images are requested or desiredautoTurn
for natural conversation flow with realistic delays