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/chat_models
P. Taylor Goetz 9317df7f16
community[patch]: Add "model" attribute to the payload sent to Ollama in `ChatOllama` (#20354)
Example Ollama API calls:

Request without "model":
```
curl --location 'http://localhost:11434/api/chat' \
--header 'Content-Type: application/json' \
--data '{
  "messages": [
    {
      "role": "user",
      "content": "What is the capitol of PA?"
    }
  ],
  "stream": false
}'
```
Response:
```
{"error":"model is required"}
```

Request with "model":
```
curl --location 'http://localhost:11434/api/chat' \
--header 'Content-Type: application/json' \
--data '{
  "model": "openchat",
  "messages": [
    {
      "role": "user",
      "content": "What is the capitol of PA?"
    }
  ],
  "stream": false
}'
```

Response:
```
{
  "eval_duration" : 733248000,
  "created_at" : "2024-04-11T23:04:08.735766843Z",
  "model" : "openchat",
  "message" : {
    "content" : " The capital city of Pennsylvania is Harrisburg.",
    "role" : "assistant"
  },
  "total_duration" : 3138731168,
  "prompt_eval_count" : 25,
  "load_duration" : 466562959,
  "done" : true,
  "prompt_eval_duration" : 1938495000,
  "eval_count" : 10
}
```
5 months ago
..
__init__.py community[patch]: import flattening fix (#20110) 6 months ago
anthropic.py community[patch]: move pdf text tests to integration (#18746) 7 months ago
anyscale.py community[minor]: Add async_client for Anyscale Chat model (#18050) 7 months ago
azure_openai.py community[patch]: more deprecations (#15782) 9 months ago
azureml_endpoint.py community[patch]: Support Streaming in Azure Machine Learning (#18246) 6 months ago
baichuan.py community[patch]: standardize baichuan init args (#20209) 6 months ago
baidu_qianfan_endpoint.py community[patch]: Fix the error of Baidu Qianfan not passing the stop parameter (#18666) 6 months ago
bedrock.py community[patch]: docstrings update (#20301) 5 months ago
cohere.py community[patch]: fix bug in cohere that `async for` a coroutine in ChatCohere (#19381) 6 months ago
dappier.py community[minor]: Dappier chat model integration (#19370) 6 months ago
databricks.py docs: fix databricks document url (#19096) 6 months ago
deepinfra.py community[patch]: callback before yield for _stream/_astream (#17907) 7 months ago
edenai.py community[patch]: callback before yield for _stream/_astream (#17907) 7 months ago
ernie.py community[patch]: chat model mypy fixes (#17061) 8 months ago
everlyai.py Do not issue beta or deprecation warnings on internal calls (#15641) 9 months ago
fake.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 10 months ago
fireworks.py community[patch]: deprecate community fireworks (#18544) 7 months ago
friendli.py community[minor]: Integration for `Friendli` LLM and `ChatFriendli` ChatModel. (#17913) 7 months ago
gigachat.py community[minor]: Added GigaChat Embeddings support + updated previous GigaChat integration (#19516) 6 months ago
google_palm.py Refactor: use SecretStr for palm chat-model (#15100) 9 months ago
gpt_router.py community[patch]: callback before yield for _stream/_astream (#17907) 7 months ago
huggingface.py community[patch]: docstrings update (#20301) 5 months ago
human.py infra: add print rule to ruff (#16221) 8 months ago
hunyuan.py community[patch]: callback before yield for _stream/_astream (#17907) 7 months ago
javelin_ai_gateway.py community[patch]: chat model mypy fixes (#17061) 8 months ago
jinachat.py community[patch]: callback before yield for _stream/_astream (#17907) 7 months ago
kinetica.py community[patch]: type ignore fixes (#18395) 7 months ago
konko.py community: fix openai streaming throws 'AIMessageChunk' object has no attribute 'text' (#18006) 7 months ago
litellm.py community[patch]: docstrings update (#20301) 5 months ago
litellm_router.py community[patch]: callback before yield for _stream/_astream (#17907) 7 months ago
llama_edge.py community: fix openai streaming throws 'AIMessageChunk' object has no attribute 'text' (#18006) 7 months ago
maritalk.py community: Add model argument for maritalk models and better error handling (#19187) 6 months ago
meta.py docs: docstrings `langchain_community` update (#14889) 9 months ago
minimax.py community[patch]: docstrings update (#20301) 5 months ago
mlflow.py docs: fix databricks document url (#19096) 6 months ago
mlflow_ai_gateway.py community[patch]: chat model mypy fixes (#17061) 8 months ago
mlx.py community[minor]: Add support for MLX models (chat & llm) (#18152) 6 months ago
moonshot.py community[patch]: docstrings update (#20301) 5 months ago
ollama.py community[patch]: Add "model" attribute to the payload sent to Ollama in `ChatOllama` (#20354) 5 months ago
openai.py docs: use standard openai params (#20160) 6 months ago
pai_eas_endpoint.py community[patch]: docstrings update (#20301) 5 months ago
perplexity.py community[patch]: Invoke callback prior to yielding token (#18449) 7 months ago
premai.py community[patch]: docstrings update (#20301) 5 months ago
promptlayer_openai.py docs: use standard openai params (#20160) 6 months ago
solar.py community[patch]: docstrings update (#20301) 5 months ago
sparkllm.py community[patch]: docstrings update (#20301) 5 months ago
tongyi.py community[patch]: docstrings update (#20301) 5 months ago
vertexai.py community[patch]: add missing chunk parameter for _stream/_astream (#17807) 7 months ago
volcengine_maas.py community[patch]: add stop parameter support to volcengine maas (#19052) 6 months ago
yandex.py community[patch]: docstrings update (#20301) 5 months ago
yuan2.py community[patch]: fix yuan2 chat model errors while invoke. (#19015) 6 months ago
zhipuai.py community[patch]: docstrings update (#20301) 5 months ago