mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-09-09 04:49:26 +00:00
chore: Fix pylint error (#1915)
This commit is contained in:
@@ -60,6 +60,7 @@ class EmbeddingLoader:
|
||||
return TongYiEmbeddings(**tongyi_param)
|
||||
elif model_name in ["proxy_qianfan"]:
|
||||
from dbgpt.rag.embedding import QianFanEmbeddings
|
||||
|
||||
proxy_param = cast(ProxyEmbeddingParameters, param)
|
||||
qianfan_param = {"api_key": proxy_param.proxy_api_key}
|
||||
if proxy_param.proxy_backend:
|
||||
|
@@ -563,7 +563,7 @@ class ProxyEmbeddingParameters(BaseEmbeddingModelParameters):
|
||||
metadata={
|
||||
"tags": "privacy",
|
||||
"help": "The api secret of the current embedding model(OPENAI_API_SECRET)",
|
||||
}
|
||||
},
|
||||
)
|
||||
proxy_api_version: Optional[str] = field(
|
||||
default=None,
|
||||
|
Reference in New Issue
Block a user