tencent

package
v0.0.0-...-d017c07 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:       "hunyuan-lite",
		Type:        relaymode.ChatCompletions,
		Owner:       model.ModelOwnerTencent,
		InputPrice:  0.0001,
		OutputPrice: 0.0001,
		RPM:         300,
		Config: model.NewModelConfig(
			model.WithModelConfigMaxContextTokens(262144),
			model.WithModelConfigMaxInputTokens(256000),
			model.WithModelConfigMaxOutputTokens(6144),
		),
	},
	{
		Model:       "hunyuan-turbo-latest",
		Type:        relaymode.ChatCompletions,
		Owner:       model.ModelOwnerTencent,
		InputPrice:  0.015,
		OutputPrice: 0.05,
		RPM:         300,
		Config: model.NewModelConfig(
			model.WithModelConfigMaxContextTokens(32768),
			model.WithModelConfigMaxInputTokens(28672),
			model.WithModelConfigMaxOutputTokens(4096),
			model.WithModelConfigToolChoice(true),
		),
	},
	{
		Model:       "hunyuan-turbo",
		Type:        relaymode.ChatCompletions,
		Owner:       model.ModelOwnerTencent,
		InputPrice:  0.015,
		OutputPrice: 0.05,
		RPM:         300,
		Config: model.NewModelConfig(
			model.WithModelConfigMaxContextTokens(32768),
			model.WithModelConfigMaxInputTokens(28672),
			model.WithModelConfigMaxOutputTokens(4096),
			model.WithModelConfigToolChoice(true),
		),
	},

	{
		Model:       "hunyuan-pro",
		Type:        relaymode.ChatCompletions,
		Owner:       model.ModelOwnerTencent,
		InputPrice:  0.03,
		OutputPrice: 0.10,
		RPM:         300,
		Config: model.NewModelConfig(
			model.WithModelConfigMaxContextTokens(32768),
			model.WithModelConfigMaxInputTokens(28672),
			model.WithModelConfigMaxOutputTokens(4096),
			model.WithModelConfigToolChoice(true),
		),
	},
	{
		Model:       "hunyuan-large",
		Type:        relaymode.ChatCompletions,
		Owner:       model.ModelOwnerTencent,
		InputPrice:  0.004,
		OutputPrice: 0.012,
		RPM:         300,
		Config: model.NewModelConfig(
			model.WithModelConfigMaxContextTokens(32768),
			model.WithModelConfigMaxInputTokens(28672),
			model.WithModelConfigMaxOutputTokens(4096),
			model.WithModelConfigToolChoice(true),
		),
	},
	{
		Model:       "hunyuan-large-longcontext",
		Type:        relaymode.ChatCompletions,
		Owner:       model.ModelOwnerTencent,
		InputPrice:  0.006,
		OutputPrice: 0.018,
		RPM:         300,
		Config: model.NewModelConfig(
			model.WithModelConfigMaxContextTokens(131072),
			model.WithModelConfigMaxOutputTokens(6144),
		),
	},
	{
		Model:       "hunyuan-standard",
		Type:        relaymode.ChatCompletions,
		Owner:       model.ModelOwnerTencent,
		InputPrice:  0.0008,
		OutputPrice: 0.002,
		RPM:         300,
		Config: model.NewModelConfig(
			model.WithModelConfigMaxContextTokens(32768),
			model.WithModelConfigMaxOutputTokens(2048),
		),
	},

	{
		Model:       "hunyuan-role",
		Type:        relaymode.ChatCompletions,
		Owner:       model.ModelOwnerTencent,
		InputPrice:  0.004,
		OutputPrice: 0.008,
		RPM:         300,
		Config: model.NewModelConfig(
			model.WithModelConfigMaxContextTokens(32768),
			model.WithModelConfigMaxOutputTokens(4096),
		),
	},
	{
		Model:       "hunyuan-functioncall",
		Type:        relaymode.ChatCompletions,
		Owner:       model.ModelOwnerTencent,
		InputPrice:  0.004,
		OutputPrice: 0.008,
		RPM:         300,
		Config: model.NewModelConfig(
			model.WithModelConfigMaxContextTokens(32768),
			model.WithModelConfigMaxOutputTokens(4096),
			model.WithModelConfigToolChoice(true),
		),
	},
	{
		Model:       "hunyuan-code",
		Type:        relaymode.ChatCompletions,
		Owner:       model.ModelOwnerTencent,
		InputPrice:  0.004,
		OutputPrice: 0.008,
		RPM:         300,
		Config: model.NewModelConfig(
			model.WithModelConfigMaxContextTokens(8192),
			model.WithModelConfigMaxInputTokens(4096),
			model.WithModelConfigMaxOutputTokens(4096),
		),
	},
	{
		Model:       "hunyuan-turbo-vision",
		Type:        relaymode.ChatCompletions,
		Owner:       model.ModelOwnerTencent,
		InputPrice:  0.08,
		OutputPrice: 0.08,
		RPM:         300,
		Config: model.NewModelConfig(
			model.WithModelConfigMaxContextTokens(8192),
			model.WithModelConfigMaxInputTokens(6144),
			model.WithModelConfigMaxOutputTokens(2048),
			model.WithModelConfigVision(true),
			model.WithModelConfigToolChoice(true),
		),
	},
	{
		Model:       "hunyuan-vision",
		Type:        relaymode.ChatCompletions,
		Owner:       model.ModelOwnerTencent,
		InputPrice:  0.018,
		OutputPrice: 0.018,
		RPM:         300,
		Config: model.NewModelConfig(
			model.WithModelConfigMaxContextTokens(8192),
			model.WithModelConfigMaxInputTokens(6144),
			model.WithModelConfigMaxOutputTokens(2048),
			model.WithModelConfigVision(true),
			model.WithModelConfigToolChoice(true),
		),
	},

	{
		Model:      "hunyuan-embedding",
		Type:       relaymode.Embeddings,
		Owner:      model.ModelOwnerTencent,
		InputPrice: 0.0007,
		RPM:        300,
		Config: model.NewModelConfig(
			model.WithModelConfigMaxInputTokens(1024),
		),
	},
}

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