You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
langchain/libs/community/langchain_community/llms
Leonid Ganeline dc7c06bc07
community[minor]: import fix (#20995)
Issue: When the third-party package is not installed, whenever we need
to `pip install <package>` the ImportError is raised.
But sometimes, the `ValueError` or `ModuleNotFoundError` is raised. It
is bad for consistency.
Change: replaced the `ValueError` or `ModuleNotFoundError` with
`ImportError` when we raise an error with the `pip install <package>`
message.
Note: Ideally, we replace all `try: import... except... raise ... `with
helper functions like `import_aim` or just use the existing
[langchain_core.utils.utils.guard_import](https://api.python.langchain.com/en/latest/utils/langchain_core.utils.utils.guard_import.html#langchain_core.utils.utils.guard_import)
But it would be much bigger refactoring. @baskaryan Please, advice on
this.
4 months ago
..
grammars community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 9 months ago
__init__.py community[minor]: Unify Titan Takeoff Integrations and Adding Embedding Support (#18775) 4 months ago
ai21.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 9 months ago
aleph_alpha.py patch: remove usage of llm, chat model __call__ (#20788) 4 months ago
amazon_api_gateway.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 9 months ago
anthropic.py patch: remove usage of llm, chat model __call__ (#20788) 4 months ago
anyscale.py patch: remove usage of llm, chat model __call__ (#20788) 4 months ago
aphrodite.py community[minor]: Add Aphrodite Engine support (#14759) 8 months ago
arcee.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 9 months ago
aviary.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 9 months ago
azureml_endpoint.py patch: remove usage of llm, chat model __call__ (#20788) 4 months ago
baichuan.py infra: add -p to mkdir in lint steps (#17013) 7 months ago
baidu_qianfan_endpoint.py patch: remove usage of llm, chat model __call__ (#20788) 4 months ago
bananadev.py community[patch]: introduce convert_to_secret() to bananadev llm (#14283) 5 months ago
baseten.py community: refactor Baseten integration with new API endpoints & docs (#15017) 8 months ago
beam.py infra: add print rule to ruff (#16221) 7 months ago
bedrock.py community[minor]: import fix (#20995) 4 months ago
bigdl_llm.py community[minor]: import fix (#20995) 4 months ago
bittensor.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 9 months ago
cerebriumai.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 9 months ago
chatglm.py patch: remove usage of llm, chat model __call__ (#20788) 4 months ago
chatglm3.py patch: remove usage of llm, chat model __call__ (#20788) 4 months ago
clarifai.py patch: remove usage of llm, chat model __call__ (#20788) 4 months ago
cloudflare_workersai.py community[patch]: docstrings update (#20301) 5 months ago
cohere.py cohere[patch]: add cohere as a partner package (#19049) 5 months ago
ctransformers.py patch: remove usage of llm, chat model __call__ (#20788) 4 months ago
ctranslate2.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 9 months ago
databricks.py community[patch]: Databricks - fix scope of dangerous deserialization error in Databricks LLM connector (#20368) 5 months ago
deepinfra.py community[patch]: Invoke callback prior to yielding token fix [DeepInfra] (#20427) 4 months ago
deepsparse.py patch: remove usage of llm, chat model __call__ (#20788) 4 months ago
edenai.py community[patch]: docstrings update (#20301) 5 months ago
exllamav2.py community[minor]: add exllamav2 library for GPTQ & EXL2 models (#17817) 4 months ago
fake.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 9 months ago
fireworks.py community[patch]: invoke callback prior to yielding token (fireworks) (#19388) 5 months ago
forefrontai.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 9 months ago
friendli.py community[minor]: Integration for `Friendli` LLM and `ChatFriendli` ChatModel. (#17913) 6 months ago
gigachat.py community[minor]: Added GigaChat Embeddings support + updated previous GigaChat integration (#19516) 5 months ago
google_palm.py multiple[patch]: fix deprecation versions (#18349) 6 months ago
gooseai.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 9 months ago
gpt4all.py patch: remove usage of llm, chat model __call__ (#20788) 4 months ago
gradient_ai.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 9 months ago
huggingface_endpoint.py patch: remove usage of llm, chat model __call__ (#20788) 4 months ago
huggingface_hub.py community[minor]: import fix (#20995) 4 months ago
huggingface_pipeline.py community[minor]: import fix (#20995) 4 months ago
huggingface_text_gen_inference.py patch: remove usage of llm, chat model __call__ (#20788) 4 months ago
human.py community[patch]: docstrings update (#20301) 5 months ago
ipex_llm.py community[minor]: import fix (#20995) 4 months ago
javelin_ai_gateway.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 9 months ago
koboldai.py patch: remove usage of llm, chat model __call__ (#20788) 4 months ago
konko.py community[minor]: import fix (#20995) 4 months ago
layerup_security.py community[patch]: docstrings update (#20301) 5 months ago
llamacpp.py patch: remove usage of llm, chat model __call__ (#20788) 4 months ago
llamafile.py core, openai: support custom token encoders (#20762) 4 months ago
loading.py community[patch]: docstrings update (#20301) 5 months ago
manifest.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 9 months ago
minimax.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 9 months ago
mlflow.py community[patch]: docstrings update (#20301) 5 months ago
mlflow_ai_gateway.py community[patch]: docstrings update (#20301) 5 months ago
mlx_pipeline.py community[minor]: import fix (#20995) 4 months ago
modal.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 9 months ago
moonshot.py community[patch]: docstrings update (#20301) 5 months ago
mosaicml.py patch: remove usage of llm, chat model __call__ (#20788) 4 months ago
nlpcloud.py community[patch]: fix top_p type hint (#15452) 7 months ago
oci_data_science_model_deployment_endpoint.py docs, community[patch], experimental[patch], langchain[patch], cli[pa… (#15412) 8 months ago
oci_generative_ai.py community[minor]: import fix (#20995) 4 months ago
octoai_endpoint.py community[patch]: update OctoAI endpoint to subclass BaseOpenAI (#19757) 4 months ago
ollama.py community[patch]: Fix Ollama for LLaMA3 (#20624) 4 months ago
opaqueprompts.py patch: remove usage of llm, chat model __call__ (#20788) 4 months ago
openai.py community[patch]: invoke callback prior to yielding token (openai) (#19389) 5 months ago
openllm.py patch: remove usage of llm, chat model __call__ (#20788) 4 months ago
openlm.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 9 months ago
pai_eas_endpoint.py community[patch]: Invoke callback prior to yielding token (pai_eas_endpoint) (#18627) 5 months ago
petals.py Refactor: use SecretStr for Petals llms (#15121) 8 months ago
pipelineai.py infra: add -p to mkdir in lint steps (#17013) 7 months ago
predibase.py community: Support both Predibase SDK-v1 and SDK-v2 in Predibase-LangChain integration (#20859) 4 months ago
predictionguard.py patch: remove usage of llm, chat model __call__ (#20788) 4 months ago
promptlayer_openai.py community[patch]: docstrings update (#20301) 5 months ago
replicate.py community: update Replicate to work with official models (#20633) 4 months ago
rwkv.py patch: remove usage of llm, chat model __call__ (#20788) 4 months ago
sagemaker_endpoint.py community[patch]: docstrings update (#20301) 5 months ago
sambanova.py community[minor]: import fix (#20995) 4 months ago
self_hosted.py community[major]: breaking change in some APIs to force users to opt-in for pickling (#18696) 6 months ago
self_hosted_hugging_face.py community[minor]: import fix (#20995) 4 months ago
solar.py upstage: init package (#20574) 4 months ago
sparkllm.py community[patch]: docstrings update (#20301) 5 months ago
stochasticai.py infra: add -p to mkdir in lint steps (#17013) 7 months ago
symblai_nebula.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 9 months ago
textgen.py patch: remove usage of llm, chat model __call__ (#20788) 4 months ago
titan_takeoff.py community[minor]: Unify Titan Takeoff Integrations and Adding Embedding Support (#18775) 4 months ago
together.py together[minor]: add llm (#15853) 8 months ago
tongyi.py community[patch]: Fixed bug in merging `generation_info` during chunk concatenation in Tongyi and ChatTongyi (#19014) 5 months ago
utils.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 9 months ago
vertexai.py community[patch]: docstrings update (#20301) 5 months ago
vllm.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 9 months ago
volcengine_maas.py community[patch]: Invoke callback prior to yielding token (#18288) 6 months ago
watsonxllm.py patch: remove usage of llm, chat model __call__ (#20788) 4 months ago
weight_only_quantization.py community[minor]: import fix (#20995) 4 months ago
writer.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 9 months ago
xinference.py patch: remove usage of llm, chat model __call__ (#20788) 4 months ago
yandex.py community[patch]: YandexGPT API add ability to disable request logging (#20670) 4 months ago
yuan2.py patch: remove usage of llm, chat model __call__ (#20788) 4 months ago