Class: OmniAI::Mistral::Chat
- Inherits:
-
Chat
- Object
- Chat
- OmniAI::Mistral::Chat
- Defined in:
- lib/omniai/mistral/chat.rb
Overview
A Mistral chat implementation.
Usage:
chat = OmniAI::Mistral::Chat.new(client: client)
chat.completion('Tell me a joke.')
chat.completion(['Tell me a joke.'])
chat.completion({ role: 'user', content: 'Tell me a joke.' })
chat.completion([{ role: 'system', content: 'Tell me a joke.' }])
Defined Under Namespace
Constant Summary collapse
- DEFAULT_MODEL =
Model::MEDIUM
- JSON_RESPONSE_FORMAT =
{ type: 'json_object' }.freeze