lydgs commited on
Commit
492db2f
·
verified ·
1 Parent(s): a8a963a

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -0
Dockerfile CHANGED
@@ -47,6 +47,7 @@ def fetch_embedding_models():
47
  except Exception as e:
48
  print(f"动态获取模型列表失败,回退到静态列表: {e}")
49
  return STATIC_MODELS
 
50
 
51
  @app.get("/v1/models")
52
  async def list_models():
 
47
  except Exception as e:
48
  print(f"动态获取模型列表失败,回退到静态列表: {e}")
49
  return STATIC_MODELS
50
+ #采用这种“动态获取 + 静态兜底”的方案后,你的代理就不再需要手动更新模型列表了。当 Google 发布新的 Embedding 模型时,只需在你的 Dockerfile 中更新 MODEL_MAP 和 STATIC_MODELS,并重新部署即可。
51
 
52
  @app.get("/v1/models")
53
  async def list_models():