Documentation ¶
Overview ¶
Package uai_modelverse include resources of ucloud uai_modelverse product
See also
- API: https://docs.ucloud.cn/api/uai_modelverse-api/index
- Product: https://www.ucloud.cn/site/product/uai_modelverse.html
for detail.
Index ¶
- type AppInfo
- type CreateMVAppRequest
- type CreateMVAppResponse
- type DeleteMVAppRequest
- type DeleteMVAppResponse
- type LLMInfo
- type QueryMVAppRequest
- type QueryMVAppResponse
- type QueryMVLLMListRequest
- type QueryMVLLMListResponse
- type RunMVChatRequest
- type RunMVChatResponse
- type UAI_ModelverseClient
- func (c *UAI_ModelverseClient) CreateMVApp(req *CreateMVAppRequest) (*CreateMVAppResponse, error)
- func (c *UAI_ModelverseClient) DeleteMVApp(req *DeleteMVAppRequest) (*DeleteMVAppResponse, error)
- func (c *UAI_ModelverseClient) NewCreateMVAppRequest() *CreateMVAppRequest
- func (c *UAI_ModelverseClient) NewDeleteMVAppRequest() *DeleteMVAppRequest
- func (c *UAI_ModelverseClient) NewQueryMVAppRequest() *QueryMVAppRequest
- func (c *UAI_ModelverseClient) NewQueryMVLLMListRequest() *QueryMVLLMListRequest
- func (c *UAI_ModelverseClient) NewRunMVChatRequest() *RunMVChatRequest
- func (c *UAI_ModelverseClient) NewUpdateMVAppRequest() *UpdateMVAppRequest
- func (c *UAI_ModelverseClient) QueryMVApp(req *QueryMVAppRequest) (*QueryMVAppResponse, error)
- func (c *UAI_ModelverseClient) QueryMVLLMList(req *QueryMVLLMListRequest) (*QueryMVLLMListResponse, error)
- func (c *UAI_ModelverseClient) RunMVChat(req *RunMVChatRequest) (*RunMVChatResponse, error)
- func (c *UAI_ModelverseClient) UpdateMVApp(req *UpdateMVAppRequest) (*UpdateMVAppResponse, error)
- type UpdateMVAppRequest
- type UpdateMVAppResponse
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 ¶
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 ¶
func (c *UAI_ModelverseClient) CreateMVApp(req *CreateMVAppRequest) (*CreateMVAppResponse, error)
API: CreateMVApp
提供参数创建应用
func (*UAI_ModelverseClient) DeleteMVApp ¶
func (c *UAI_ModelverseClient) DeleteMVApp(req *DeleteMVAppRequest) (*DeleteMVAppResponse, error)
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 ¶
func (c *UAI_ModelverseClient) QueryMVApp(req *QueryMVAppRequest) (*QueryMVAppResponse, error)
API: QueryMVApp
查询用户创建的应用信息
func (*UAI_ModelverseClient) QueryMVLLMList ¶
func (c *UAI_ModelverseClient) QueryMVLLMList(req *QueryMVLLMListRequest) (*QueryMVLLMListResponse, error)
API: QueryMVLLMList
查询可用的语言模型列表
func (*UAI_ModelverseClient) RunMVChat ¶
func (c *UAI_ModelverseClient) RunMVChat(req *RunMVChatRequest) (*RunMVChatResponse, error)
API: RunMVChat
聊天接口
func (*UAI_ModelverseClient) UpdateMVApp ¶
func (c *UAI_ModelverseClient) UpdateMVApp(req *UpdateMVAppRequest) (*UpdateMVAppResponse, error)
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