transformer

package
v0.0.0-...-235d477 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler interface {
	HandleRequest(req map[string]any, config *db.LLMConfig) (*http.Request, error)
	HandleResponse(resp *http.Response, callback func(str string)) (map[string]any, error)
}

type OpenAI

type OpenAI struct {
}

func (*OpenAI) HandleRequest

func (o *OpenAI) HandleRequest(req map[string]any, config *db.LLMConfig) (*http.Request, error)

func (*OpenAI) HandleResponse

func (o *OpenAI) HandleResponse(resp *http.Response, callback func(str string)) (map[string]any, error)

type Qwen

type Qwen struct {
}

func (*Qwen) HandleRequest

func (o *Qwen) HandleRequest(req map[string]any, config *db.LLMConfig) (*http.Request, error)

func (*Qwen) HandleResponse

func (o *Qwen) HandleResponse(resp *http.Response, callback func(str string)) (map[string]any, error)

Jump to

Keyboard shortcuts

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