pub enum ApiPath {
Show 17 variants
ChatMessages,
FilesUpload,
ChatMessagesStop,
MessagesFeedbacks,
MessagesSuggested,
Messages,
Conversations,
ConversationsDelete,
ConversationsRename,
AudioToText,
TextToAudio,
Parameters,
Meta,
WorkflowsRun,
WorkflowsStop,
CompletionMessages,
CompletionMessagesStop,
}
Expand description
API 路径
Variants§
ChatMessages
发送对话消息, 创建会话消息。
FilesUpload
上传文件
上传文件(目前仅支持图片)并在发送消息时使用,可实现图文多模态理解。
支持 png, jpg, jpeg, webp, gif 格式。
上传的文件仅供当前终端用户使用。
ChatMessagesStop
停止响应, 仅支持流式模式。
MessagesFeedbacks
消息反馈(点赞, 消息终端用户反馈、点赞,方便应用开发者优化输出预期。
MessagesSuggested
获取下一轮建议问题列表
Messages
获取会话历史消息, 滚动加载形式返回历史聊天记录,第一页返回最新 limit 条,即:倒序返回。
Conversations
获取会话列表, 获取当前用户的会话列表,默认返回最近的 20 条。
ConversationsDelete
删除会话
ConversationsRename
会话重命名, 对会话进行重命名,会话名称用于显示在支持多会话的客户端上。
AudioToText
语音转文字
TextToAudio
文字转语音
Parameters
获取应用配置信息, 用于进入页面一开始,获取功能开关、输入参数名称、类型及默认值等使用。
Meta
获取应用Meta信息, 用于获取工具icon
WorkflowsRun
workflow 执行 workflow
WorkflowsStop
停止响应, 仅支持流式模式。
CompletionMessages
completion 文本生成 发送请求给文本生成型应用
CompletionMessagesStop
文本生成停止响应
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ApiPath
impl RefUnwindSafe for ApiPath
impl Send for ApiPath
impl Sync for ApiPath
impl Unpin for ApiPath
impl UnwindSafe for ApiPath
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string
, but without panic on OOM.