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
}
```
2024-04-12 13:32:53 -04:00
..
__init__.py community[patch]: import flattening fix (#20110) 2024-04-10 13:01:19 -04:00
anthropic.py community[patch]: move pdf text tests to integration (#18746) 2024-03-07 10:34:22 -08:00
anyscale.py community[minor]: Add async_client for Anyscale Chat model (#18050) 2024-02-23 21:22:54 -05:00
azure_openai.py community[patch]: more deprecations (#15782) 2024-01-09 20:36:16 -08:00
azureml_endpoint.py community[patch]: Support Streaming in Azure Machine Learning (#18246) 2024-03-28 23:38:20 +00:00
baichuan.py community[patch]: standardize baichuan init args (#20209) 2024-04-09 11:00:40 -05:00
baidu_qianfan_endpoint.py community[patch]: Fix the error of Baidu Qianfan not passing the stop parameter (#18666) 2024-03-28 18:21:49 +00:00
bedrock.py community[patch]: docstrings update (#20301) 2024-04-11 16:23:27 -04:00
cohere.py community[patch]: fix bug in cohere that async for a coroutine in ChatCohere (#19381) 2024-03-27 21:34:46 -07:00
dappier.py community[minor]: Dappier chat model integration (#19370) 2024-03-25 07:29:05 +00:00
databricks.py docs: fix databricks document url (#19096) 2024-03-15 22:25:11 +00:00
deepinfra.py community[patch]: callback before yield for _stream/_astream (#17907) 2024-02-22 16:15:21 -08:00
edenai.py community[patch]: callback before yield for _stream/_astream (#17907) 2024-02-22 16:15:21 -08:00
ernie.py community[patch]: chat model mypy fixes (#17061) 2024-02-05 13:42:59 -08:00
everlyai.py Do not issue beta or deprecation warnings on internal calls (#15641) 2024-01-07 20:54:45 -08:00
fake.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 2023-12-11 13:53:30 -08:00
fireworks.py community[patch]: deprecate community fireworks (#18544) 2024-03-05 01:04:26 +00:00
friendli.py community[minor]: Integration for Friendli LLM and ChatFriendli ChatModel. (#17913) 2024-03-08 02:20:47 +00:00
gigachat.py community[minor]: Added GigaChat Embeddings support + updated previous GigaChat integration (#19516) 2024-03-25 16:08:37 -07:00
google_palm.py Refactor: use SecretStr for palm chat-model (#15100) 2024-01-01 15:21:41 -08:00
gpt_router.py community[patch]: callback before yield for _stream/_astream (#17907) 2024-02-22 16:15:21 -08:00
huggingface.py community[patch]: docstrings update (#20301) 2024-04-11 16:23:27 -04:00
human.py infra: add print rule to ruff (#16221) 2024-02-09 16:13:30 -08:00
hunyuan.py community[patch]: callback before yield for _stream/_astream (#17907) 2024-02-22 16:15:21 -08:00
javelin_ai_gateway.py community[patch]: chat model mypy fixes (#17061) 2024-02-05 13:42:59 -08:00
jinachat.py community[patch]: callback before yield for _stream/_astream (#17907) 2024-02-22 16:15:21 -08:00
kinetica.py community[patch]: type ignore fixes (#18395) 2024-03-01 11:21:02 -08:00
konko.py community: fix openai streaming throws 'AIMessageChunk' object has no attribute 'text' (#18006) 2024-02-23 12:12:47 -05:00
litellm_router.py community[patch]: callback before yield for _stream/_astream (#17907) 2024-02-22 16:15:21 -08:00
litellm.py community[patch]: docstrings update (#20301) 2024-04-11 16:23:27 -04:00
llama_edge.py community: fix openai streaming throws 'AIMessageChunk' object has no attribute 'text' (#18006) 2024-02-23 12:12:47 -05:00
maritalk.py community: Add model argument for maritalk models and better error handling (#19187) 2024-03-16 15:18:56 -07:00
meta.py docs: docstrings langchain_community update (#14889) 2023-12-19 08:58:24 -05:00
minimax.py community[patch]: docstrings update (#20301) 2024-04-11 16:23:27 -04:00
mlflow_ai_gateway.py community[patch]: chat model mypy fixes (#17061) 2024-02-05 13:42:59 -08:00
mlflow.py docs: fix databricks document url (#19096) 2024-03-15 22:25:11 +00:00
mlx.py community[minor]: Add support for MLX models (chat & llm) (#18152) 2024-04-09 14:17:07 +00:00
moonshot.py community[patch]: docstrings update (#20301) 2024-04-11 16:23:27 -04:00
ollama.py community[patch]: Add "model" attribute to the payload sent to Ollama in ChatOllama (#20354) 2024-04-12 13:32:53 -04:00
openai.py docs: use standard openai params (#20160) 2024-04-08 10:56:53 -05:00
pai_eas_endpoint.py community[patch]: docstrings update (#20301) 2024-04-11 16:23:27 -04:00
perplexity.py community[patch]: Invoke callback prior to yielding token (#18449) 2024-03-03 14:14:00 -08:00
premai.py community[patch]: docstrings update (#20301) 2024-04-11 16:23:27 -04:00
promptlayer_openai.py docs: use standard openai params (#20160) 2024-04-08 10:56:53 -05:00
solar.py community[patch]: docstrings update (#20301) 2024-04-11 16:23:27 -04:00
sparkllm.py community[patch]: docstrings update (#20301) 2024-04-11 16:23:27 -04:00
tongyi.py community[patch]: docstrings update (#20301) 2024-04-11 16:23:27 -04:00
vertexai.py community[patch]: add missing chunk parameter for _stream/_astream (#17807) 2024-02-21 15:32:28 -08:00
volcengine_maas.py community[patch]: add stop parameter support to volcengine maas (#19052) 2024-03-17 01:58:50 +00:00
yandex.py community[patch]: docstrings update (#20301) 2024-04-11 16:23:27 -04:00
yuan2.py community[patch]: fix yuan2 chat model errors while invoke. (#19015) 2024-03-15 16:28:36 -07:00
zhipuai.py community[patch]: docstrings update (#20301) 2024-04-11 16:23:27 -04:00