openAI

package
v0.22.13 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(cfg string) (ai_convert.IConverter, error)

Types

type Config

type Config struct {
	APIKey       string `json:"openai_api_key"`      // APIKey is the authentication key for accessing OpenAI API.
	Organization string `json:"openai_organization"` // Organization specifies the associated organization ID (optional).
	Base         string `json:"openai_api_base"`     // Base is the base URL for OpenAI API. It can be customized if needed.
}

Config represents the configuration for OpenAI API. It includes the necessary fields for authentication and base URL configuration.

Jump to

Keyboard shortcuts

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