pub struct MonsterGaming { /* private fields */ }Expand description
Monster Gaming API client.
Implementations§
Source§impl MonsterGaming
impl MonsterGaming
Sourcepub fn with_base_url(self, url: impl Into<String>) -> Self
pub fn with_base_url(self, url: impl Into<String>) -> Self
Set a custom base URL (for testing or self-hosted deployments).
Sourcepub async fn chat_completion(
&self,
model: impl Into<String>,
messages: Vec<ChatMessage>,
) -> Result<ChatCompletionResponse, Error>
pub async fn chat_completion( &self, model: impl Into<String>, messages: Vec<ChatMessage>, ) -> Result<ChatCompletionResponse, Error>
Create a chat completion.
Sourcepub async fn chat_completion_full(
&self,
request: ChatCompletionRequest,
) -> Result<ChatCompletionResponse, Error>
pub async fn chat_completion_full( &self, request: ChatCompletionRequest, ) -> Result<ChatCompletionResponse, Error>
Create a chat completion with full request control.
Sourcepub async fn list_models(&self) -> Result<ModelList, Error>
pub async fn list_models(&self) -> Result<ModelList, Error>
List available models.
Auto Trait Implementations§
impl Freeze for MonsterGaming
impl !RefUnwindSafe for MonsterGaming
impl Send for MonsterGaming
impl Sync for MonsterGaming
impl Unpin for MonsterGaming
impl UnsafeUnpin for MonsterGaming
impl !UnwindSafe for MonsterGaming
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