meta

package
v0.1.64 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package meta provides Meta Model API integration for the LLM gateway.

Index

Constants

This section is empty.

Variables

View Source
var Registration = providers.Registration{
	Type: "meta",
	New:  New,
	Discovery: providers.DiscoveryConfig{
		DefaultBaseURL: defaultBaseURL,
	},
}

Registration provides factory registration for the Meta Model API provider.

Functions

func New

New creates a new Meta Model API provider.

Types

type Provider

type Provider struct {
	*openai.ChatCompatible
}

Provider implements the core.Provider interface for the Meta Model API (Muse Spark models). The API is OpenAI-compatible (chat completions, model listing, streaming, tool calling) with bearer authentication.

func NewWithHTTPClient

func NewWithHTTPClient(apiKey string, baseURL string, httpClient *http.Client, hooks llmclient.Hooks) *Provider

NewWithHTTPClient creates a new Meta Model API provider with a custom HTTP client. If httpClient is nil, http.DefaultClient is used.

Jump to

Keyboard shortcuts

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