usage

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 14, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseModel

func ParseModel(body []byte) string

Types

type TokenUsage

type TokenUsage struct {
	InputTokens    int64
	OutputTokens   int64
	ThinkingTokens int64
	CachedTokens   int64
	TotalTokens    int64
}

func ParseJSON

func ParseJSON(body []byte) (TokenUsage, string, bool)

func ParseSSE

func ParseSSE(data []byte) (TokenUsage, string, bool)

Jump to

Keyboard shortcuts

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