community: Fix SparkLLM error (#18015)

Thank you for contributing to LangChain!

- [x] **PR title**: "package: description"
- Where "package" is whichever of langchain, community, core,
experimental, etc. is being modified. Use "docs: ..." for purely docs
changes, "templates: ..." for template changes, "infra: ..." for CI
changes.
  - Example: "community: add foobar LLM"

- **Description:** fix SparkLLM  error
- **Issue:** the issue # it fixes, if applicable
- **Dependencies:** any dependencies required for this change
- **Twitter handle:** if your PR gets announced, and you'd like a
mention, we'll gladly shout you out!
This commit is contained in:
Guangdong Liu 2024-02-23 22:40:29 +08:00 committed by GitHub
parent d9e6ca2279
commit 4197efd67a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -959,5 +959,5 @@ def get_type_to_cls_dict() -> Dict[str, Callable[[], Type[BaseLLM]]]:
"yandex_gpt": _import_yandex_gpt, "yandex_gpt": _import_yandex_gpt,
"yuan2": _import_yuan2, "yuan2": _import_yuan2,
"VolcEngineMaasLLM": _import_volcengine_maas, "VolcEngineMaasLLM": _import_volcengine_maas,
"SparkLLM": _import_sparkllm(), "SparkLLM": _import_sparkllm,
} }