mirror of
https://github.com/katanemo/plano.git
synced 2026-04-25 08:46:24 +02:00
use provider_name as model_id /v1/models api (#490)
This commit is contained in:
parent
9c4733590f
commit
470cdf9843
1 changed files with 2 additions and 2 deletions
|
|
@ -448,9 +448,9 @@ impl From<Vec<LlmProvider>> for Models {
|
|||
let data = llm_providers
|
||||
.iter()
|
||||
.map(|provider| ModelDetail {
|
||||
id: provider.model.as_ref().unwrap().clone(),
|
||||
id: provider.name.clone(),
|
||||
object: "model".to_string(),
|
||||
created: 1721172741,
|
||||
created: 0,
|
||||
owned_by: "system".to_string(),
|
||||
})
|
||||
.collect();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue