v1

package
v0.1.118 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2024 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenReqDefForExecuteChatCompletion

func GenReqDefForExecuteChatCompletion() *def.HttpRequestDef

func GenReqDefForExecuteTextCompletion

func GenReqDefForExecuteTextCompletion() *def.HttpRequestDef

func PanguLargeModelsClientBuilder

func PanguLargeModelsClientBuilder() *httpclient.HcHttpClientBuilder

Types

type ExecuteChatCompletionInvoker

type ExecuteChatCompletionInvoker struct {
	*invoker.BaseInvoker
}

func (*ExecuteChatCompletionInvoker) GetBaseInvoker added in v0.1.118

func (i *ExecuteChatCompletionInvoker) GetBaseInvoker() *invoker.BaseInvoker

func (*ExecuteChatCompletionInvoker) Invoke

type ExecuteTextCompletionInvoker

type ExecuteTextCompletionInvoker struct {
	*invoker.BaseInvoker
}

func (*ExecuteTextCompletionInvoker) GetBaseInvoker added in v0.1.118

func (i *ExecuteTextCompletionInvoker) GetBaseInvoker() *invoker.BaseInvoker

func (*ExecuteTextCompletionInvoker) Invoke

type PanguLargeModelsClient

type PanguLargeModelsClient struct {
	HcClient *httpclient.HcHttpClient
}

func NewPanguLargeModelsClient

func NewPanguLargeModelsClient(hcClient *httpclient.HcHttpClient) *PanguLargeModelsClient

func (*PanguLargeModelsClient) ExecuteChatCompletion

ExecuteChatCompletion 对话问答

基于对话问答功能,用户可以与模型进行自然而流畅的对话和交流。

Please refer to HUAWEI cloud API Explorer for details.

func (*PanguLargeModelsClient) ExecuteChatCompletionInvoker

ExecuteChatCompletionInvoker 对话问答

func (*PanguLargeModelsClient) ExecuteTextCompletion

ExecuteTextCompletion 通用文本

给定一个提示和一些参数,模型会根据这些信息生成一个或多个预测的补全,还可以返回每个位置上不同词语的概率。它可以用来做文本生成、自动写作、代码补全等任务。

Please refer to HUAWEI cloud API Explorer for details.

func (*PanguLargeModelsClient) ExecuteTextCompletionInvoker

ExecuteTextCompletionInvoker 通用文本

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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