fix: Gracefully handle missing imports for model components (#4743)

* Handle ImportError for langchain_groq in Groq model initialization

* Refactor model input constants to handle missing imports gracefully

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
Gabriel Luiz Freitas Almeida 2024-11-21 13:41:01 -03:00 • committed by GitHub
commit be7eac9e00
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 130 additions and 40 deletions

2
uv.lock generated
View file

@ -3910,7 +3910,7 @@ requires-dist = [
{ name = "assemblyai", specifier = ">=0.33.0" },
{ name = "asyncer", specifier = ">=0.0.5" },
{ name = "bcrypt", specifier = "==4.0.1" },
{ name = "cachetools", specifier = ">=5.3.1" },
{ name = "cachetools", specifier = ">=5.5.0" },
{ name = "celery", marker = "extra == 'all'", specifier = ">=5.3.1" },
{ name = "celery", marker = "extra == 'deploy'", specifier = ">=5.3.1" },
{ name = "chardet", specifier = ">=5.2.0" },