Fixed some grammatical and Exception types issues (#12015)

Fixed some grammatical issues and Exception types.

@baskaryan , @eyurtsev

---------

Co-authored-by: Sanskar Tanwar <142409040+SanskarTanwarShorthillsAI@users.noreply.github.com>
Co-authored-by: UpneetShorthillsAI <144228282+UpneetShorthillsAI@users.noreply.github.com>
Co-authored-by: HarshGuptaShorthillsAI <144897987+HarshGuptaShorthillsAI@users.noreply.github.com>
Co-authored-by: AdityaKalraShorthillsAI <143726711+AdityaKalraShorthillsAI@users.noreply.github.com>
Co-authored-by: SakshiShorthillsAI <144228183+SakshiShorthillsAI@users.noreply.github.com>
This commit is contained in:
Shorthills AI
2023-10-27 06:42:38 +05:30
committed by GitHub
parent 923696b664
commit 25c98dbba9
6 changed files with 8 additions and 8 deletions

View File

@@ -96,7 +96,7 @@ class QianfanLLMEndpoint(LLM):
values["client"] = qianfan.Completion(**params)
except ImportError:
raise ValueError(
raise ImportError(
"qianfan package not found, please install it with "
"`pip install qianfan`"
)

View File

@@ -92,7 +92,7 @@ def get_repl_context() -> Any:
return get_context()
except ImportError:
raise ValueError(
raise ImportError(
"Cannot access dbruntime, not running inside a Databricks notebook."
)