pub enum BoundedChatCompletionProtocol {
Ollama,
OpenAiCompat,
Anthropic,
Gemini,
}Expand description
The wire protocol for a bounded chat completion. The OpenAI-compatible and
Ollama protocols share the chat-completions request shape with
stream: false; they differ from the Anthropic (/v1/messages) and Gemini
(generateContent) protocols in request shape, response framing, and
authentication.
Variants§
Trait Implementations§
impl Copy for BoundedChatCompletionProtocol
impl Eq for BoundedChatCompletionProtocol
impl StructuralPartialEq for BoundedChatCompletionProtocol
Auto Trait Implementations§
impl Freeze for BoundedChatCompletionProtocol
impl RefUnwindSafe for BoundedChatCompletionProtocol
impl Send for BoundedChatCompletionProtocol
impl Sync for BoundedChatCompletionProtocol
impl Unpin for BoundedChatCompletionProtocol
impl UnsafeUnpin for BoundedChatCompletionProtocol
impl UnwindSafe for BoundedChatCompletionProtocol
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