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
Shuai Liu 4b53440e70
Upgrades the Tongyi LLM and ChatTongyi Model (#14793)
- **Description:** fixes and upgrades for the Tongyi LLM and ChatTongyi
Model
      - Fixed typos; it should be `Tongyi`, not `OpenAI`.
- Fixed a bug in `stream_generate_with_retry`; it's a real stream
generator now.
- Fixed a bug in `validate_environment`; the `dashscope_api_key` should
be properly handled when set by environment variables or initialization
parameters.
- Changed the `dashscope` response to incremental output by setting the
parameter `incremental_output`, which eliminates the need for the
prefix-removal trick.
      - Removed some unused parameters, like `n`, `prefix_messages`.
      - Added `_stream` method.
- Added async methods support, such as `_astream`, `_agenerate`,
`_abatch`.
  - **Dependencies:** No new dependencies.
  - **Tag maintainer:** @hwchase17 

> PS: Some may be confused about the terms `dashscope`, `tongyi`, and
`Qwen`:
> - `dashscope`: A platform to deploy LLMs and provide APIs to invoke
the LLM.
> - `tongyi`: A brand name or overall term about Alibaba Cloud's LLM/AI.
> - `Qwen`: An LLM that is open-sourced and deployed in `dashscope`.
> 
> We use the `dashscope` SDK to interact with the `tongyi`-`Qwen` LLM.

---------

Co-authored-by: Harrison Chase <hw.chase.17@gmail.com>
9 months ago
..
adapters community[patch]: Add safe lookup to OpenAI response adapter (#14765) 10 months ago
agent_toolkits docs: docstrings `langchain_community` update (#14889) 10 months ago
callbacks core, community: propagate context between threads (#15171) 9 months ago
chat_loaders community[patch]: Enhance iMessage chat loader with timestamp parsing and message ownership (#14804) 10 months ago
chat_message_histories [community]: Elasticsearch chat history encoding (#15055) 10 months ago
chat_models Upgrades the Tongyi LLM and ChatTongyi Model (#14793) 9 months ago
docstore community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 10 months ago
document_loaders community: correct spelling mistakes of "Suffle" and "reporoducibility" (#15172) 9 months ago
document_transformers community: Make doctran synchronous (#15264) 9 months ago
embeddings fix: correct spelling mistakes of "seperate, intialise, pre-defined" (#14647) 10 months ago
graphs community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 10 months ago
indexes community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 10 months ago
llms Upgrades the Tongyi LLM and ChatTongyi Model (#14793) 9 months ago
retrievers Don't reassign chunk_type (#14923) 10 months ago
storage community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 10 months ago
tools Fix: Use `Union` instead of `|` to improve compatibility, fix #15244 (#15245) 9 months ago
utilities community: Enhance Github error prompt (#15248) 9 months ago
utils docs: docstrings `langchain_community` update (#14889) 10 months ago
vectorstores refactor: enable connection pool usage in PGVector (#11514) 9 months ago
__init__.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 10 months ago
cache.py community[patch]: Fixed issue with importing Row from sqlalchemy (#14488) 10 months ago
py.typed community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 10 months ago