yera.providers.mistral_common

Common infra for accessing Mistral services.

Symbols

def get_mistral_client — Build a mistral client object from a mistral connection object.

get_mistral_client

get_mistral_client(
    connection: MistralConnection,
) → Mistral

Build a mistral client object from a mistral connection object.

This will try to get the api key from the connection's specified location and then use it to build a client.