baichuan

package
v0.0.0-...-4a3b078 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 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:       "Baichuan4-Turbo",
		Type:        relaymode.ChatCompletions,
		Owner:       model.ModelOwnerBaichuan,
		InputPrice:  0.015,
		OutputPrice: 0.015,
		Config: model.NewModelConfig(
			model.WithModelConfigMaxContextTokens(32768),
		),
	},
	{
		Model:       "Baichuan4-Air",
		Type:        relaymode.ChatCompletions,
		Owner:       model.ModelOwnerBaichuan,
		InputPrice:  0.00098,
		OutputPrice: 0.00098,
		Config: model.NewModelConfig(
			model.WithModelConfigMaxContextTokens(32768),
		),
	},
	{
		Model:       "Baichuan4",
		Type:        relaymode.ChatCompletions,
		Owner:       model.ModelOwnerBaichuan,
		InputPrice:  0.1,
		OutputPrice: 0.1,
		Config: model.NewModelConfig(
			model.WithModelConfigMaxContextTokens(32768),
		),
	},
	{
		Model:       "Baichuan3-Turbo",
		Type:        relaymode.ChatCompletions,
		Owner:       model.ModelOwnerBaichuan,
		InputPrice:  0.012,
		OutputPrice: 0.012,
		Config: model.NewModelConfig(
			model.WithModelConfigMaxContextTokens(32768),
		),
	},
	{
		Model:       "Baichuan3-Turbo-128k",
		Type:        relaymode.ChatCompletions,
		Owner:       model.ModelOwnerBaichuan,
		InputPrice:  0.024,
		OutputPrice: 0.024,
		Config: model.NewModelConfig(
			model.WithModelConfigMaxContextTokens(131072),
		),
	},

	{
		Model:      "Baichuan-Text-Embedding",
		Type:       relaymode.Embeddings,
		Owner:      model.ModelOwnerBaichuan,
		InputPrice: 0.0005,
		Config: model.NewModelConfig(
			model.WithModelConfigMaxInputTokens(512),
		),
	},
}

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