pub trait ModelInfo:
Send
+ Sync
+ Debug {
// Required methods
fn context_window(&self) -> usize;
fn max_output_tokens(&self) -> usize;
}Expand description
Model that can be converted to a string ID for API requests
Required Methods§
Sourcefn context_window(&self) -> usize
fn context_window(&self) -> usize
Context window size in tokens
Sourcefn max_output_tokens(&self) -> usize
fn max_output_tokens(&self) -> usize
Maximum number of output tokens NOTE: we may want to do something smart here to have this be context-dependent. for example if you set the right headers for anthropic, 3.7 can output 128k instead of 64k.