Class LlamaClient
LlamaClient class
代表与 Llama API 交互的客户端。
代表与 Llama API 交互的客户端。
public class LlamaClient : AIClientBase, ILlamaClient, ISummaryClient<LlamaSummaryCopilotOptions>
Properties
| Name | Description |
|---|---|
| BackoffDelaySeconds { get; set; } | 获取或设置回退延迟(以秒为单位)。 |
| HttpRequestMaxRetries { get; set; } | 获取或设置最大 HTTP 请求重试次数。 |
| PollingIntervalSeconds { get; set; } | 获取或设置轮询间隔(以秒为单位)。 |
| PollingTimeoutSeconds { get; set; } | 获取或设置轮询超时(以秒为单位)。 |
Methods
| Name | Description |
|---|---|
| CreateCompletionAsync(LlamaChatCompletionRequest, CancellationToken?) | 在 Llama 服务中创建聊天完成请求。 |
| Dispose() | 释放 AIClientBase 使用的资源。 |
| GetSummaryCopilot(ISummaryCopilotOptions<LlamaSummaryCopilotOptions>) | 获取具有指定选项的 ISummaryCopilot 实例。 |
| static CreateWithApiKey(string) | 使用提供的 API 密钥创建 Builder 的新实例。 |
Other Members
| Name | Description |
|---|---|
| class Builder | 用于创建 LlamaClient 实例的 Builder 类。 |
See Also
- class AIClientBase
- interface ILlamaClient
- interface ISummaryClient<TOptions>
- class LlamaSummaryCopilotOptions
- namespace Aspose.Pdf.AI
- assembly Aspose.PDF