config

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Port         int
	Debug        bool
	Version      bool
	Timeout      time.Duration
	MaxTokens    int
	DefaultModel string
	ImagePath    string
	ImageWidth   int
	ImageHeight  int
	Stream       bool
	GitRepo      string
	Prompt       string
	OPENAICIDR   []string
}

Config represents the application configuration

func New

func New() *Config

New creates a new configuration with default values

type ImageType added in v0.1.1

type ImageType string

ImageType represents the type of image to generate

const (
	PNG  ImageType = "png"
	JPEG ImageType = "jpeg"
)

Jump to

Keyboard shortcuts

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