fimproviders

package
v1.2.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 16, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package fimproviders exposes seshat's fim.Completer implementations for direct use by a host application, independent of the agent/tool loop.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDeepSeek

func NewDeepSeek(opts ...DeepSeekOption) internalfim.Completer

NewDeepSeek creates a DeepSeek FIM completion client.

func NewMistral

func NewMistral(opts ...MistralOption) internalfim.Completer

NewMistral creates a Mistral Codestral FIM completion client.

Types

type DeepSeekOption

type DeepSeekOption = internalproviders.DeepSeekOption

DeepSeekOption configures a DeepSeek FIM client.

func WithDeepSeekAPIKey

func WithDeepSeekAPIKey(key string) DeepSeekOption

WithDeepSeekAPIKey sets the API key.

func WithDeepSeekBaseURL

func WithDeepSeekBaseURL(url string) DeepSeekOption

WithDeepSeekBaseURL overrides the default endpoint (self-hosted server, or a proxy).

func WithDeepSeekHTTPClient

func WithDeepSeekHTTPClient(hc *http.Client) DeepSeekOption

WithDeepSeekHTTPClient injects a custom HTTP client.

func WithDeepSeekMaxTokens

func WithDeepSeekMaxTokens(n int64) DeepSeekOption

WithDeepSeekMaxTokens caps the number of generated tokens.

func WithDeepSeekModel

func WithDeepSeekModel(model string) DeepSeekOption

WithDeepSeekModel sets the completion model.

func WithDeepSeekTemperature

func WithDeepSeekTemperature(t float64) DeepSeekOption

WithDeepSeekTemperature sets sampling temperature.

type MistralOption

type MistralOption = internalproviders.MistralOption

MistralOption configures a Mistral FIM client.

func WithMistralAPIKey

func WithMistralAPIKey(key string) MistralOption

WithMistralAPIKey sets the API key.

func WithMistralBaseURL

func WithMistralBaseURL(url string) MistralOption

WithMistralBaseURL overrides the default endpoint (self-hosted server, or a proxy).

func WithMistralHTTPClient

func WithMistralHTTPClient(hc *http.Client) MistralOption

WithMistralHTTPClient injects a custom HTTP client.

func WithMistralMaxTokens

func WithMistralMaxTokens(n int64) MistralOption

WithMistralMaxTokens caps the number of generated tokens.

func WithMistralModel

func WithMistralModel(model string) MistralOption

WithMistralModel sets the completion model.

func WithMistralTemperature

func WithMistralTemperature(t float64) MistralOption

WithMistralTemperature sets sampling temperature.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL