uai_modelverse

package
v0.22.24 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package uai_modelverse include resources of ucloud uai_modelverse product

See also

for detail.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppInfo

type AppInfo struct {

	// 应用描述
	AppDes string

	// 应用ID
	AppID string

	// 应用名称
	AppName string

	// 应用状态
	AppState int

	// 应用类型
	AppType int

	// 应用创建时间
	CreateTime int

	// 语言模型ID
	LLMID string

	// 模型采样温度
	LLMTemperature int

	// 模型采样温度的另一种方法(核取样)
	LLMTopP int

	// 应用更新时间
	UpdateTime int
}

AppInfo - 应用信息

type CreateMVAppRequest

type CreateMVAppRequest struct {
	request.CommonBase

	// 应用描述
	AppDes *string `required:"false"`

	// 应用名称
	AppName *string `required:"true"`

	// 应用类型
	AppType *int `required:"true"`

	// 语言模型ID
	LLMID *string `required:"true"`

	// 模型采样温度 ,(0,100) 开区间,不能等于 0 或 100,默认值95
	LLMTemperature *int `required:"false"`

	// 模型采样温度(核取样), (0,100) 开区间,不能等于 0 或 100,默认值70
	LLMTopP *int `required:"false"`
}

CreateMVAppRequest is request schema for CreateMVApp action

type CreateMVAppResponse

type CreateMVAppResponse struct {
	response.CommonBase

	// 应用信息
	AppInfo AppInfo

	// Code非0时,描述错误信息
	Msg string
}

CreateMVAppResponse is response schema for CreateMVApp action

type DeleteMVAppRequest

type DeleteMVAppRequest struct {
	request.CommonBase

	// 应用ID
	AppID *string `required:"true"`
}

DeleteMVAppRequest is request schema for DeleteMVApp action

type DeleteMVAppResponse

type DeleteMVAppResponse struct {
	response.CommonBase

	// Code非0时,描述错误信息
	Msg string
}

DeleteMVAppResponse is response schema for DeleteMVApp action

type LLMInfo

type LLMInfo struct {

	// 模型描述
	LLMDes string

	// 模型ID
	LLMID string

	// 模型名称
	LLMName string

	// 模型token单价
	LLMPrice float64

	// 模型类型
	LLMType int
}

LLMInfo - 语言模型列表

type QueryMVAppRequest

type QueryMVAppRequest struct {
	request.CommonBase

	// 应用ID (缺省则返回所有应用列表)
	APPID *string `required:"false"`
}

QueryMVAppRequest is request schema for QueryMVApp action

type QueryMVAppResponse

type QueryMVAppResponse struct {
	response.CommonBase

	// 应用信息列表
	AppInfo []AppInfo

	// Code非0时,描述错误信息
	Msg string
}

QueryMVAppResponse is response schema for QueryMVApp action

type QueryMVLLMListRequest

type QueryMVLLMListRequest struct {
	request.CommonBase

	// 语言模型ID (缺省则返回所有模型列表)
	LLMID *string `required:"false"`
}

QueryMVLLMListRequest is request schema for QueryMVLLMList action

type QueryMVLLMListResponse

type QueryMVLLMListResponse struct {
	response.CommonBase

	// 语言模型列表
	LLMInfoList []LLMInfo

	// 状态码描述
	Msg string
}

QueryMVLLMListResponse is response schema for QueryMVLLMList action

type RunMVChatRequest

type RunMVChatRequest struct {
	request.CommonBase

	// 应用 ID
	AppID *string `required:"true"`

	// 按时间从老到新传输对话列表集合,需要与Role一一对应Content为本条信息的具体内容
	Content []string `required:"true"`

	// 按时间从老到新传输对话列表集合,需要与Content一一对应Role为本条信息作者的角色,枚举值为user 或 assistant- user 指用户角色输入的信息- assistant 指模型返回的信息
	Role []string `required:"true"`

	// 会话 ID (不填写默认创建新会话)
	SessionID *int `required:"false"`
}

RunMVChatRequest is request schema for RunMVChat action

type RunMVChatResponse

type RunMVChatResponse struct {
	response.CommonBase

	// 消息唯一标识
	ID int

	// 状态码描述
	Msg string

	// 回复内容
	Response string

	// 会话id
	SessionID int

	// 时间
	Time int
}

RunMVChatResponse is response schema for RunMVChat action

type UAI_ModelverseClient

type UAI_ModelverseClient struct {
	*ucloud.Client
}

UAI_ModelverseClient is the client of UAI_Modelverse

func NewClient

func NewClient(config *ucloud.Config, credential *auth.Credential) *UAI_ModelverseClient

NewClient will return a instance of UAI_ModelverseClient

func (*UAI_ModelverseClient) CreateMVApp

API: CreateMVApp

提供参数创建应用

func (*UAI_ModelverseClient) DeleteMVApp

API: DeleteMVApp

删除应用

func (*UAI_ModelverseClient) NewCreateMVAppRequest

func (c *UAI_ModelverseClient) NewCreateMVAppRequest() *CreateMVAppRequest

NewCreateMVAppRequest will create request of CreateMVApp action.

func (*UAI_ModelverseClient) NewDeleteMVAppRequest

func (c *UAI_ModelverseClient) NewDeleteMVAppRequest() *DeleteMVAppRequest

NewDeleteMVAppRequest will create request of DeleteMVApp action.

func (*UAI_ModelverseClient) NewQueryMVAppRequest

func (c *UAI_ModelverseClient) NewQueryMVAppRequest() *QueryMVAppRequest

NewQueryMVAppRequest will create request of QueryMVApp action.

func (*UAI_ModelverseClient) NewQueryMVLLMListRequest

func (c *UAI_ModelverseClient) NewQueryMVLLMListRequest() *QueryMVLLMListRequest

NewQueryMVLLMListRequest will create request of QueryMVLLMList action.

func (*UAI_ModelverseClient) NewRunMVChatRequest

func (c *UAI_ModelverseClient) NewRunMVChatRequest() *RunMVChatRequest

NewRunMVChatRequest will create request of RunMVChat action.

func (*UAI_ModelverseClient) NewUpdateMVAppRequest

func (c *UAI_ModelverseClient) NewUpdateMVAppRequest() *UpdateMVAppRequest

NewUpdateMVAppRequest will create request of UpdateMVApp action.

func (*UAI_ModelverseClient) QueryMVApp

API: QueryMVApp

查询用户创建的应用信息

func (*UAI_ModelverseClient) QueryMVLLMList

API: QueryMVLLMList

查询可用的语言模型列表

func (*UAI_ModelverseClient) RunMVChat

API: RunMVChat

聊天接口

func (*UAI_ModelverseClient) UpdateMVApp

API: UpdateMVApp

更新应用

type UpdateMVAppRequest

type UpdateMVAppRequest struct {
	request.CommonBase

	// 应用描述
	AppDes *string `required:"false"`

	// 应用ID
	AppID *string `required:"true"`

	// 应用名称
	AppName *string `required:"false"`

	// 应用状态
	AppState *int `required:"false"`

	// 应用类型
	AppType *int `required:"false"`

	// 语言模型ID
	LLMID *string `required:"false"`

	// 模型采样温度,(0,100)开区间,默认值95
	LLMTemperature *int `required:"false"`

	// 模型采样温度(核取样),(0,100)开区间,默认值70
	LLMTopP *int `required:"false"`
}

UpdateMVAppRequest is request schema for UpdateMVApp action

type UpdateMVAppResponse

type UpdateMVAppResponse struct {
	response.CommonBase

	//
	AppInfo AppInfo

	// Code非0时,描述错误信息
	Msg string
}

UpdateMVAppResponse is response schema for UpdateMVApp action

Jump to

Keyboard shortcuts

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