Skip to content

nimgent/providers/mistral

This page is generated from the module’s exported API and ## documentation comments.

Mistral adapter using its OpenAI-compatible Chat Completions API.

Build a Mistral Chat Completions request body.

proc buildBody(request: ProviderRequest; stream: bool): JsonNode {.
raises: [ProviderError, KeyError], tags: [ReadIOEffect, WriteIOEffect],
forbids: [].}

Returns: JsonNode.

Name Type Default
request ProviderRequest
stream bool

View source