fix: jina’s incorrect return value: modelname (#17716)

### Summary

As title:
This commit is contained in:
Haruko386
2026-08-03 18:07:55 +08:00
committed by GitHub
parent 9adcd59586
commit 858c48a88e

View File

@@ -384,7 +384,7 @@ func (j *JinaModel) ListModels(ctx context.Context, apiConfig *APIConfig) ([]Lis
// convert result["data"] to []map[string]interface{}
models := make([]ModelListItem, 0, len(result["data"].([]interface{})))
for _, model := range result["data"].([]interface{}) {
modelName := model.(map[string]interface{})["name"].(string)
modelName := model.(map[string]interface{})["id"].(string)
models = append(models, ModelListItem{
ID: modelName,
OwnedBy: "",