pub struct CacheKeyBuilder;
Implementations§
Source§impl CacheKeyBuilder
impl CacheKeyBuilder
Sourcepub fn chat_completion_key(model: &str, messages_hash: &str) -> String
pub fn chat_completion_key(model: &str, messages_hash: &str) -> String
Sourcepub fn embedding_key(model: &str, input_hash: &str) -> String
pub fn embedding_key(model: &str, input_hash: &str) -> String
Sourcepub fn image_generation_key(model: &str, prompt_hash: &str) -> String
pub fn image_generation_key(model: &str, prompt_hash: &str) -> String
Auto Trait Implementations§
impl Freeze for CacheKeyBuilder
impl RefUnwindSafe for CacheKeyBuilder
impl Send for CacheKeyBuilder
impl Sync for CacheKeyBuilder
impl Unpin for CacheKeyBuilder
impl UnwindSafe for CacheKeyBuilder
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