mirror of
https://github.com/katanemo/plano.git
synced 2026-04-25 00:36:34 +02:00
remove unnecessary clones from code (#682)
This commit is contained in:
parent
40b9780774
commit
11fb4cd633
7 changed files with 35 additions and 40 deletions
|
|
@ -894,7 +894,7 @@ impl HttpContext for StreamContext {
|
|||
};
|
||||
|
||||
let model_name = match self.llm_provider.as_ref() {
|
||||
Some(llm_provider) => llm_provider.model.as_ref(),
|
||||
Some(llm_provider) => llm_provider.model.clone(),
|
||||
None => None,
|
||||
};
|
||||
|
||||
|
|
@ -903,7 +903,7 @@ impl HttpContext for StreamContext {
|
|||
|
||||
// Apply model name resolution logic using the trait method
|
||||
let resolved_model = match model_name {
|
||||
Some(model_name) => model_name.clone(),
|
||||
Some(model_name) => model_name,
|
||||
None => {
|
||||
warn!(
|
||||
"[PLANO_REQ_ID:{}] MODEL_RESOLUTION_ERROR: no model specified | req_model='{}' provider='{}' config_model={:?}",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue