Mistral
datapizza.clients.mistral.MistralClient
Bases: Client
A client for interacting with the Mistral API.
This class provides methods for invoking the Mistral API to generate responses based on given input data. It extends the Client class.
__init__
Parameters:
Name | Type | Description | Default |
---|---|---|---|
api_key
|
str
|
The API key for the Mistral API. |
required |
model
|
str
|
The model to use for the Mistral API. |
'mistral-large-latest'
|
system_prompt
|
str
|
The system prompt to use for the Mistral API. |
''
|
temperature
|
float | None
|
The temperature to use for the Mistral API. |
None
|
cache
|
Cache | None
|
The cache to use for the Mistral API. |
None
|