pub struct GithubModelsProvider { /* private fields */ }Expand description
GitHub Models API provider — OpenAI-compatible, Bearer token auth. Expects model names prefixed with “github:” (e.g. “github:gpt-4o”).
Implementations§
Trait Implementations§
Source§impl LlmProvider for GithubModelsProvider
impl LlmProvider for GithubModelsProvider
Source§fn generate<'life0, 'async_trait>(
&'life0 self,
req: LlmRequest,
) -> Pin<Box<dyn Future<Output = Result<LlmResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn generate<'life0, 'async_trait>(
&'life0 self,
req: LlmRequest,
) -> Pin<Box<dyn Future<Output = Result<LlmResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Generate a response (non-streaming)
Source§fn supports_model(&self, model: &str) -> bool
fn supports_model(&self, model: &str) -> bool
Models supported by this provider (prefix matching)
Auto Trait Implementations§
impl Freeze for GithubModelsProvider
impl !RefUnwindSafe for GithubModelsProvider
impl Send for GithubModelsProvider
impl Sync for GithubModelsProvider
impl Unpin for GithubModelsProvider
impl UnsafeUnpin for GithubModelsProvider
impl !UnwindSafe for GithubModelsProvider
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