MCPcopy Create free account
hub / github.com/aws/amazon-q-developer-cli / invalidate_model_cache

Method invalidate_model_cache

crates/chat-cli/src/api_client/mod.rs:330–334  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

328 }
329
330 pub async fn invalidate_model_cache(&self) {
331 let mut cache = self.model_cache.write().await;
332 *cache = None;
333 tracing::info!("Model cache invalidated");
334 }
335
336 pub async fn get_available_models(&self, _region: &str) -> Result<ModelListResult, ApiClientError> {
337 let res = self.list_available_models_cached().await?;

Callers 1

retry_model_overloadMethod · 0.80

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected