mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-07-15 20:27:20 +08:00
Fix: failed to get embedding model by embd_id: model config not found BAAI/bge-m3@...@SILICONFLOW (#16445)
This commit is contained in:
@@ -93,6 +93,15 @@
|
||||
"embedding"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "BAAI/bge-m3",
|
||||
"max_tokens": 8192,
|
||||
"model_types": [
|
||||
"embedding"
|
||||
],
|
||||
"max_dimension": 1024,
|
||||
"dimensions": []
|
||||
},
|
||||
{
|
||||
"name": "fnlp/MOSS-TTSD-v0.5",
|
||||
"max_tokens": 8192,
|
||||
|
||||
@@ -346,8 +346,8 @@ func TestSiliconFlowProviderConfigLoadsLatestProModels(t *testing.T) {
|
||||
if provider.ModelDriver.Name() != "siliconflow" {
|
||||
t.Errorf("ModelDriver.Name()=%q", provider.ModelDriver.Name())
|
||||
}
|
||||
if len(provider.Models) != 12 {
|
||||
t.Fatalf("SiliconFlow model count=%d, want 12", len(provider.Models))
|
||||
if len(provider.Models) != 13 {
|
||||
t.Fatalf("SiliconFlow model count=%d, want 13", len(provider.Models))
|
||||
}
|
||||
|
||||
deepSeekV4Pro, err := pm.GetModelByName("SiliconFlow", "Pro/deepseek-ai/DeepSeek-V4-Pro")
|
||||
|
||||
Reference in New Issue
Block a user