Help us shape the future of Go! Take the 2026 Go Developer Survey

gmicloud

package
v0.16.1 Latest Latest
Warning

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

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

Documentation

Overview

Package gmicloud provides GMI Cloud's documented OpenAI-compatible Chat Completions API.

Index

Constants

View Source
const DefaultBaseURL = "https://api.gmi-serving.com/v1"

Variables

This section is empty.

Functions

func New

func New(selected model.Model, key auth.APIKey, options ...Option) (inference.Client, error)

Types

type CounterSupportError

type CounterSupportError = llm.CounterSupportError

type Option

type Option = simple.Option

func WithHeader

func WithHeader(name, value string) Option

func WithOrganizationID

func WithOrganizationID(id string) Option

WithOrganizationID selects the GMI organization for multi-organization API keys, as documented by GMI Cloud.

func WithTopK

func WithTopK(value int) Option

WithTopK forwards GMI Cloud's documented top-k sampling parameter. Support remains model-dependent on the upstream service.

Jump to

Keyboard shortcuts

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