pub struct OpenRouter { /* private fields */ }
Implementations§
Trait Implementations§
Source§impl LLM for OpenRouter
impl LLM for OpenRouter
type TokenStream = OpenAITokenStream
Source§fn prompt(
&self,
chat: &[Message],
options: &PromptOptions,
) -> Result<OpenAITokenStream, PromptError>
fn prompt( &self, chat: &[Message], options: &PromptOptions, ) -> Result<OpenAITokenStream, PromptError>
Generates a response to the given prompt. The prompt is a list of strings, where each
is either the user or the assistant, starting with the user and alternating.
Auto Trait Implementations§
impl Freeze for OpenRouter
impl RefUnwindSafe for OpenRouter
impl Send for OpenRouter
impl Sync for OpenRouter
impl Unpin for OpenRouter
impl UnwindSafe for OpenRouter
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