openai

package
v0.0.0-...-e25b279 Latest Latest
Warning

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

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

Documentation

Overview

Package openai provides an OpenAI-compatible provider for the understudy system.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Chat

func Chat(ctx context.Context, cfg providers.Config, body io.Reader) (*http.Response, error)

Chat POSTs body to <BaseURL>/chat/completions with Bearer auth. Caller is responsible for closing the returned response body.

func Models

func Models(ctx context.Context, cfg providers.Config) ([]providers.Model, error)

Models GETs <BaseURL>/models with Bearer auth and returns the parsed model list, bounding the call with the default timeout.

Types

This section is empty.

Jump to

Keyboard shortcuts

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