server

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartServer

func StartServer(cfg polyllm.Config)

Types

type LLMProvider added in v0.2.0

type LLMProvider interface {
	ListModels(ctx context.Context) ([]llms.Model, error)
	ChatCompletion(ctx context.Context, req llms.ChatCompletionRequest, streamingFunc func(resp llms.StreamingChatCompletionResponse), options ...llms.RequestOption)
}

type LLMService

type LLMService struct {
	// contains filtered or unexported fields
}

func NewLLMService

func NewLLMService(provider LLMProvider) *LLMService

Jump to

Keyboard shortcuts

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