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
Bitmonkey 570d45b2a1
Update ollama.py with optional raw setting. (#21486)
Ollama has a raw option now. 

https://github.com/ollama/ollama/blob/main/docs/api.md

Thank you for contributing to LangChain!

- [ ] **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"


- [ ] **PR message**: ***Delete this entire checklist*** and replace
with
    - **Description:** a description of the change
    - **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!


- [ ] **Add tests and docs**: If you're adding a new integration, please
include
1. a test for the integration, preferably unit tests that do not rely on
network access,
2. an example notebook showing its use. It lives in
`docs/docs/integrations` directory.


- [ ] **Lint and test**: Run `make format`, `make lint` and `make test`
from the root of the package(s) you've modified. See contribution
guidelines for more: https://python.langchain.com/docs/contributing/

Additional guidelines:
- Make sure optional dependencies are imported within a function.
- Please do not add dependencies to pyproject.toml files (even optional
ones) unless they are required for unit tests.
- Most PRs should not touch more than one package.
- Changes should be backwards compatible.
- If you are adding something to community, do not re-import it in
langchain.

If no one reviews your PR within a few days, please @-mention one of
baskaryan, efriis, eyurtsev, hwchase17.

---------

Co-authored-by: Isaac Francisco <78627776+isahers1@users.noreply.github.com>
Co-authored-by: isaac hershenson <ihershenson@hmc.edu>
2 weeks ago
..
grammars community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 7 months ago
__init__.py community: minor changes sambanova integration (#21231) 2 months ago
ai21.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 7 months ago
aleph_alpha.py community[patch]: upgrade to recent version of mypy (#21616) 2 months ago
amazon_api_gateway.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 7 months ago
anthropic.py (all): update removal in deprecation warnings from 0.2 to 0.3 (#21265) 2 months ago
anyscale.py patch: remove usage of llm, chat model __call__ (#20788) 2 months ago
aphrodite.py community[minor]: Add Aphrodite Engine support (#14759) 6 months ago
arcee.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 7 months ago
aviary.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 7 months ago
azureml_endpoint.py infra: rm unused # noqa violations (#22049) 1 month ago
baichuan.py docs: community docstring updates (#21040) 2 months ago
baidu_qianfan_endpoint.py patch: remove usage of llm, chat model __call__ (#20788) 2 months ago
bananadev.py community[patch]: introduce convert_to_secret() to bananadev llm (#14283) 3 months ago
baseten.py community: refactor Baseten integration with new API endpoints & docs (#15017) 6 months ago
beam.py infra: add print rule to ruff (#16221) 5 months ago
bedrock.py community[minor]: import fix (#20995) 2 months ago
bigdl_llm.py community[minor]: import fix (#20995) 2 months ago
bittensor.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 7 months ago
cerebriumai.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 7 months ago
chatglm.py patch: remove usage of llm, chat model __call__ (#20788) 2 months ago
chatglm3.py patch: remove usage of llm, chat model __call__ (#20788) 2 months ago
clarifai.py patch: remove usage of llm, chat model __call__ (#20788) 2 months ago
cloudflare_workersai.py community[patch]: docstrings update (#20301) 3 months ago
cohere.py (all): update removal in deprecation warnings from 0.2 to 0.3 (#21265) 2 months ago
ctransformers.py patch: remove usage of llm, chat model __call__ (#20788) 2 months ago
ctranslate2.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 7 months ago
databricks.py ci: Add script to check for pickle usage in community (#22863) 2 weeks ago
deepinfra.py community[patch]: fix deepinfra inference (#22680) 3 weeks ago
deepsparse.py patch: remove usage of llm, chat model __call__ (#20788) 2 months ago
edenai.py community[patch]: docstrings update (#20301) 3 months ago
exllamav2.py community[minor]: add exllamav2 library for GPTQ & EXL2 models (#17817) 2 months ago
fake.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 7 months ago
fireworks.py (all): update removal in deprecation warnings from 0.2 to 0.3 (#21265) 2 months ago
forefrontai.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 7 months ago
friendli.py community[minor]: Integration for `Friendli` LLM and `ChatFriendli` ChatModel. (#17913) 4 months ago
gigachat.py community[minor]: Added GigaChat Embeddings support + updated previous GigaChat integration (#19516) 3 months ago
google_palm.py multiple[patch]: fix deprecation versions (#18349) 4 months ago
gooseai.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 7 months ago
gpt4all.py patch: remove usage of llm, chat model __call__ (#20788) 2 months ago
gradient_ai.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 7 months ago
huggingface_endpoint.py community: fix huggingface deprecations (#22522) 3 weeks ago
huggingface_hub.py community: fix huggingface deprecations (#22522) 3 weeks ago
huggingface_pipeline.py [Community]add option to delete the prompt from HF output (#22225) 3 weeks ago
huggingface_text_gen_inference.py community: fix huggingface deprecations (#22522) 3 weeks ago
human.py community[patch]: docstrings update (#20301) 3 months ago
ipex_llm.py community[minor]: import fix (#20995) 2 months ago
javelin_ai_gateway.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 7 months ago
koboldai.py patch: remove usage of llm, chat model __call__ (#20788) 2 months ago
konko.py community[minor]: import fix (#20995) 2 months ago
layerup_security.py community[minor]: bump version of LayerupSecurity, add support for untrusted_input parameter (#19985) 2 months ago
llamacpp.py patch: remove usage of llm, chat model __call__ (#20788) 2 months ago
llamafile.py core, openai: support custom token encoders (#20762) 2 months ago
loading.py community[patch]: docstrings update (#20301) 3 months ago
manifest.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 7 months ago
minimax.py community[patch]: upgrade to recent version of mypy (#21616) 2 months ago
mlflow.py community[patch]: docstrings update (#20301) 3 months ago
mlflow_ai_gateway.py community[patch]: docstrings update (#20301) 3 months ago
mlx_pipeline.py community[patch]: Fix MLX LLM Stream (#20575) 1 month ago
modal.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 7 months ago
moonshot.py community[patch]: docstrings update (#20301) 3 months ago
mosaicml.py patch: remove usage of llm, chat model __call__ (#20788) 2 months ago
nlpcloud.py community[patch]: fix top_p type hint (#15452) 5 months ago
oci_data_science_model_deployment_endpoint.py community[patch]: Add missing type annotations (#22758) 3 weeks ago
oci_generative_ai.py community[minor]: import fix (#20995) 2 months ago
octoai_endpoint.py community[patch]: update OctoAI endpoint to subclass BaseOpenAI (#19757) 2 months ago
ollama.py Update ollama.py with optional raw setting. (#21486) 2 weeks ago
opaqueprompts.py patch: remove usage of llm, chat model __call__ (#20788) 2 months ago
openai.py infra: rm unused # noqa violations (#22049) 1 month ago
openllm.py community[patch]: upgrade to recent version of mypy (#21616) 2 months ago
openlm.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 7 months ago
pai_eas_endpoint.py community[patch]: Invoke callback prior to yielding token (pai_eas_endpoint) (#18627) 3 months ago
petals.py Refactor: use SecretStr for Petals llms (#15121) 6 months ago
pipelineai.py infra: add -p to mkdir in lint steps (#17013) 5 months ago
predibase.py community: Support both Predibase SDK-v1 and SDK-v2 in Predibase-LangChain integration (#20859) 2 months ago
predictionguard.py patch: remove usage of llm, chat model __call__ (#20788) 2 months ago
promptlayer_openai.py community[patch]: docstrings update (#20301) 3 months ago
replicate.py community: update Replicate to work with official models (#20633) 2 months ago
rwkv.py patch: remove usage of llm, chat model __call__ (#20788) 2 months ago
sagemaker_endpoint.py community[patch]: docstrings update (#20301) 3 months ago
sambanova.py community[patch]: Sambanova integration api update (#21848) 1 month ago
self_hosted.py ci: Add script to check for pickle usage in community (#22863) 2 weeks ago
self_hosted_hugging_face.py community[minor]: import fix (#20995) 2 months ago
solar.py upstage: init package (#20574) 2 months ago
sparkllm.py community[patch]: upgrade to recent version of mypy (#21616) 2 months ago
stochasticai.py infra: add -p to mkdir in lint steps (#17013) 5 months ago
symblai_nebula.py infra: rm unused # noqa violations (#22049) 1 month ago
textgen.py community[patch]: upgrade to recent version of mypy (#21616) 2 months ago
titan_takeoff.py community[patch]: upgrade to recent version of mypy (#21616) 2 months ago
together.py (all): update removal in deprecation warnings from 0.2 to 0.3 (#21265) 2 months ago
tongyi.py community: Implement `bind_tools` for ChatTongyi (#20725) 1 month ago
utils.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 7 months ago
vertexai.py community[patch]: upgrade to recent version of mypy (#21616) 2 months ago
vllm.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 7 months ago
volcengine_maas.py community[patch]: Invoke callback prior to yielding token (#18288) 4 months ago
watsonxllm.py (all): update removal in deprecation warnings from 0.2 to 0.3 (#21265) 2 months ago
weight_only_quantization.py community[minor]: import fix (#20995) 2 months ago
writer.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 7 months ago
xinference.py community[patch]: upgrade to recent version of mypy (#21616) 2 months ago
yandex.py community[patch]: YandexGPT API add ability to disable request logging (#20670) 2 months ago
yuan2.py patch: remove usage of llm, chat model __call__ (#20788) 2 months ago