helpers

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateRequestBody

func CreateRequestBody(
	messages []map[string]any,
	model string,
	temperature *float64,
	maxTokens *int,
	schema *map[string]any,
	tools *[]map[string]any,
	reasoning *map[string]any,
	provider *map[string]any,
) []byte

func SplitAudio

func SplitAudio(audioPath string, chunkSize int) ([]string, string, error)

func TranscribeGroq

func TranscribeGroq(
	model string,
	language string,
	apiKey string,
	audioURL *string,
	audioBytes *[]byte,
	timeOut *int,
) (t.GroqTranscriptionResponse, error)

Types

This section is empty.