response

package
v0.0.23 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Result

type Result struct {
	Model     string
	Response  string
	TimeTaken time.Duration
}

func Parse

func Parse(body []byte, startTime time.Time) (*Result, error)

Parse takes a response body and the time the request started, and returns the parsed result from either OpenAI or Vertex AI

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳