pub struct WasmLlmConfig {
pub api_key: String,
pub base_url: String,
pub model: String,
}Expand description
LLM configuration for WASM environments.
Since std::env::var is not available in the browser, LLM config
is injected via sage_configure() from JavaScript.
Fields§
§api_key: String§base_url: String§model: StringTrait Implementations§
Source§impl Clone for WasmLlmConfig
impl Clone for WasmLlmConfig
Source§fn clone(&self) -> WasmLlmConfig
fn clone(&self) -> WasmLlmConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WasmLlmConfig
impl Debug for WasmLlmConfig
Auto Trait Implementations§
impl Freeze for WasmLlmConfig
impl RefUnwindSafe for WasmLlmConfig
impl Send for WasmLlmConfig
impl Sync for WasmLlmConfig
impl Unpin for WasmLlmConfig
impl UnsafeUnpin for WasmLlmConfig
impl UnwindSafe for WasmLlmConfig
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