pub enum ModelCost {
Local,
Cheap,
Standard,
Premium,
Plan,
}Expand description
Who pays for a harness model’s tokens and, for a hosted model, its price
class as the ag-harness provider catalog declares it.
Variants§
Local
A local or self-hosted server runs the model at no per-token cost.
Cheap
A hosted provider bills at most $2.50 per million output tokens, suited to simple tasks such as titles and commit messages.
Standard
A hosted provider bills between the cheap and premium bounds.
Premium
A hosted provider bills at least $15 per million output tokens.
Plan
The user’s subscription plan, such as ChatGPT’s, covers the model’s
usage within its limits instead of per-token API billing.
Implementations§
Trait Implementations§
impl Copy for ModelCost
impl Eq for ModelCost
impl StructuralPartialEq for ModelCost
Auto Trait Implementations§
impl Forget for ModelCost
impl Freeze for ModelCost
impl RefUnwindSafe for ModelCost
impl Send for ModelCost
impl Sync for ModelCost
impl Unpin for ModelCost
impl UnsafeUnpin for ModelCost
impl UnwindSafe for ModelCost
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.