fimproviders

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package fimproviders provides concrete FIM provider implementations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDeepSeek

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

NewDeepSeek creates a DeepSeek FIM client.

func NewMistral

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

NewMistral creates a Mistral Codestral FIM client.

Types

type DeepSeekOption

type DeepSeekOption func(*deepseekClient)

DeepSeekOption configures the 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 API endpoint.

func WithDeepSeekHTTPClient

func WithDeepSeekHTTPClient(hc *http.Client) DeepSeekOption

WithDeepSeekHTTPClient sets a custom HTTP client.

func WithDeepSeekMaxTokens

func WithDeepSeekMaxTokens(n int64) DeepSeekOption

WithDeepSeekMaxTokens sets the default max tokens.

func WithDeepSeekModel

func WithDeepSeekModel(model string) DeepSeekOption

WithDeepSeekModel sets the model (default: deepseek-coder).

func WithDeepSeekTemperature

func WithDeepSeekTemperature(t float64) DeepSeekOption

WithDeepSeekTemperature sets the default sampling temperature.

type MistralOption

type MistralOption func(*mistralClient)

MistralOption configures the 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 API endpoint (useful for testing).

func WithMistralHTTPClient

func WithMistralHTTPClient(hc *http.Client) MistralOption

WithMistralHTTPClient sets a custom HTTP client.

func WithMistralMaxTokens

func WithMistralMaxTokens(n int64) MistralOption

WithMistralMaxTokens sets the default max tokens to generate.

func WithMistralModel

func WithMistralModel(model string) MistralOption

WithMistralModel sets the model (default: codestral-latest).

func WithMistralTemperature

func WithMistralTemperature(t float64) MistralOption

WithMistralTemperature sets the default sampling temperature.

Jump to

Keyboard shortcuts

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