fix: fix typo (#12034)
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
This commit is contained in:
parent
e0c24c0e99
commit
6a0ff3686c
2 changed files with 5 additions and 6 deletions
|
|
@ -157,7 +157,6 @@ class HuggingfaceTeiTextEmbeddingModel(TextEmbeddingModel):
|
|||
headers["Authorization"] = f"Bearer {api_key}"
|
||||
|
||||
extra_args = TeiHelper.get_tei_extra_parameter(server_url, model, headers)
|
||||
print(extra_args)
|
||||
if extra_args.model_type != "embedding":
|
||||
raise CredentialsValidateFailedError("Current model is not a embedding model")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue