validation

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// MaxInputLength is the maximum allowed length for input text (100K characters)
	// This prevents excessive API costs and potential memory issues
	MaxInputLength = 100000
)

Variables

This section is empty.

Functions

func ValidateAPIKey

func ValidateAPIKey(apiKey string) error

ValidateAPIKey validates the format of an OpenAI API key

func ValidateTextInput

func ValidateTextInput(text string, onChunk interface{}) error

ValidateTextInput validates text input for API calls

Types

This section is empty.

Jump to

Keyboard shortcuts

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