tencent

package
v0.0.0-...-03c30b8 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ModelList = []*model.ModelConfig{
	{
		Model: "hunyuan-lite",
		Type:  relaymode.ChatCompletions,
		Owner: model.ModelOwnerTencent,
	},
	{
		Model:       "hunyuan-turbo",
		Type:        relaymode.ChatCompletions,
		Owner:       model.ModelOwnerTencent,
		InputPrice:  0.015,
		OutputPrice: 0.05,
	},
	{
		Model:       "hunyuan-pro",
		Type:        relaymode.ChatCompletions,
		Owner:       model.ModelOwnerTencent,
		InputPrice:  0.03,
		OutputPrice: 0.10,
	},
	{
		Model:       "hunyuan-large",
		Type:        relaymode.ChatCompletions,
		Owner:       model.ModelOwnerTencent,
		InputPrice:  0.004,
		OutputPrice: 0.012,
	},
	{
		Model:       "hunyuan-large-longcontext",
		Type:        relaymode.ChatCompletions,
		Owner:       model.ModelOwnerTencent,
		InputPrice:  0.006,
		OutputPrice: 0.018,
	},
	{
		Model:       "hunyuan-standard",
		Type:        relaymode.ChatCompletions,
		Owner:       model.ModelOwnerTencent,
		InputPrice:  0.0008,
		OutputPrice: 0.002,
	},

	{
		Model:       "hunyuan-role",
		Type:        relaymode.ChatCompletions,
		Owner:       model.ModelOwnerTencent,
		InputPrice:  0.004,
		OutputPrice: 0.008,
	},
	{
		Model:       "hunyuan-functioncall",
		Type:        relaymode.ChatCompletions,
		Owner:       model.ModelOwnerTencent,
		InputPrice:  0.004,
		OutputPrice: 0.008,
	},
	{
		Model:       "hunyuan-code",
		Type:        relaymode.ChatCompletions,
		Owner:       model.ModelOwnerTencent,
		InputPrice:  0.004,
		OutputPrice: 0.008,
	},
	{
		Model:       "hunyuan-turbo-vision",
		Type:        relaymode.ChatCompletions,
		Owner:       model.ModelOwnerTencent,
		InputPrice:  0.08,
		OutputPrice: 0.08,
	},
	{
		Model:       "hunyuan-vision",
		Type:        relaymode.ChatCompletions,
		Owner:       model.ModelOwnerTencent,
		InputPrice:  0.018,
		OutputPrice: 0.018,
	},

	{
		Model:      "hunyuan-embedding",
		Type:       relaymode.Embeddings,
		Owner:      model.ModelOwnerTencent,
		InputPrice: 0.0007,
	},
}

Functions

This section is empty.

Types

type Adaptor

type Adaptor struct {
	openai.Adaptor
}

func (*Adaptor) GetChannelName

func (a *Adaptor) GetChannelName() string

func (*Adaptor) GetModelList

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

func (*Adaptor) GetRequestURL

func (a *Adaptor) GetRequestURL(meta *meta.Meta) (string, error)

Jump to

Keyboard shortcuts

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