llm

package
v0.25.0 Latest Latest
Warning

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

Go to latest
Published: May 18, 2024 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	BaseURL      = config.GenFlag("integrations.openai.base_url", "", "Base URL for OpenAI API (`https://openrouter.ai/api/v1` can be used for OpenRouter)")
	Token        = config.GenFlag("integrations.openai.token", "", "API Key for OpenAI access (used in translating statements)")
	DefaultModel = config.GenFlag("integrations.openai.default_model", "gpt-4o", "Default model for LLM translations")

	ErrUnauthed = errors.New("unauthenticated to OpenAI endpoint")
)

Functions

func TranslateStatement

func TranslateStatement(ctx context.Context, text string, model string) (string, error)

TranslateStatement translates a statement from Romanian to English. English to Romanian and other language ordered pairs are still a TODO

Types

This section is empty.

Jump to

Keyboard shortcuts

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