MistralClient.Models.FIMCompletionRequest (mistralex_ai v0.1.0)

View Source

Represents a FIM (Fill-in-the-Middle) completion request.

Summary

Functions

Create a new FIM completion request.

Convert a FIM completion request to a map for API requests.

Types

t()

@type t() :: %MistralClient.Models.FIMCompletionRequest{
  max_tokens: integer() | nil,
  min_tokens: integer() | nil,
  model: String.t(),
  prompt: String.t(),
  random_seed: integer() | nil,
  stop: String.t() | [String.t()] | nil,
  stream: boolean() | nil,
  suffix: String.t() | nil,
  temperature: float() | nil,
  top_p: float() | nil
}

Functions

new(model, prompt, opts \\ [])

@spec new(String.t(), String.t(), keyword()) :: t()

Create a new FIM completion request.

to_map(request)

@spec to_map(t()) :: map()

Convert a FIM completion request to a map for API requests.