fix hf bug

This commit is contained in:
tackhwa
2024-10-23 15:02:28 +08:00
parent ec9acd6824
commit dfec83de1d
2 changed files with 12 additions and 4 deletions

View File

@@ -19,7 +19,7 @@ async def llm_model_func(
prompt,
system_prompt=system_prompt,
history_messages=history_messages,
api_key=os.getenv("UPSTAGE_API_KEY"),
api_key=os.getenv("SILICONFLOW_API_KEY"),
base_url="https://api.siliconflow.cn/v1/",
**kwargs,
)
@@ -29,7 +29,7 @@ async def embedding_func(texts: list[str]) -> np.ndarray:
return await siliconcloud_embedding(
texts,
model="netease-youdao/bce-embedding-base_v1",
api_key=os.getenv("UPSTAGE_API_KEY"),
api_key=os.getenv("SILICONFLOW_API_KEY"),
max_token_size=512
)