lingyiwanwu

package
v0.0.0-...-af8a321 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ModelList = []*model.ModelConfig{
	{
		Model:       "yi-lightning",
		Type:        relaymode.ChatCompletions,
		Owner:       model.ModelOwnerLingyiWanwu,
		InputPrice:  0.00099,
		OutputPrice: 0.00099,
		RPM:         60,
		Config: model.NewModelConfig(
			model.WithModelConfigMaxContextTokens(16384),
			model.WithModelConfigToolChoice(true),
		),
	},
	{
		Model:       "yi-vision-v2",
		Type:        relaymode.ChatCompletions,
		Owner:       model.ModelOwnerLingyiWanwu,
		InputPrice:  0.006,
		OutputPrice: 0.006,
		RPM:         60,
		Config: model.NewModelConfig(
			model.WithModelConfigMaxContextTokens(16384),
			model.WithModelConfigVision(true),
			model.WithModelConfigToolChoice(true),
		),
	},
}

Functions

This section is empty.

Types

type Adaptor

type Adaptor struct {
	openai.Adaptor
}

func (*Adaptor) GetBaseURL

func (a *Adaptor) GetBaseURL() string

func (*Adaptor) GetChannelName

func (a *Adaptor) GetChannelName() string

func (*Adaptor) GetModelList

func (a *Adaptor) GetModelList() []*model.ModelConfig

Jump to

Keyboard shortcuts

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