langchain/libs/community/langchain_community/chat_models
Xin Liu 5efec068c9
feat: Implement stream interface (#15875)
<!-- Thank you for contributing to LangChain!

Please title your PR "<package>: <description>", where <package> is
whichever of langchain, community, core, experimental, etc. is being
modified.

Replace this entire comment with:
  - **Description:** a description of the change, 
  - **Issue:** the issue # it fixes if applicable,
  - **Dependencies:** any dependencies required for this change,
- **Twitter handle:** we announce bigger features on Twitter. If your PR
gets announced, and you'd like a mention, we'll gladly shout you out!

Please make sure your PR is passing linting and testing before
submitting. Run `make format`, `make lint` and `make test` from the root
of the package you've modified to check this locally.

See contribution guidelines for more information on how to write/run
tests, lint, etc: https://python.langchain.com/docs/contributing/

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.

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

Major changes:

- Rename `wasm_chat.py` to `llama_edge.py`
- Rename the `WasmChatService` class to `ChatService`
- Implement the `stream` interface for `ChatService`
- Add `test_chat_wasm_service_streaming` in the integration test
- Update `llama_edge.ipynb`

---------

Signed-off-by: Xin Liu <sam@secondstate.io>
2024-01-11 21:32:48 -08:00
..
__init__.py feat: Implement stream interface (#15875) 2024-01-11 21:32:48 -08:00
anthropic.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 2023-12-11 13:53:30 -08:00
anyscale.py Do not issue beta or deprecation warnings on internal calls (#15641) 2024-01-07 20:54:45 -08:00
azure_openai.py community[patch]: more deprecations (#15782) 2024-01-09 20:36:16 -08:00
azureml_endpoint.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 2023-12-11 13:53:30 -08:00
baichuan.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 2023-12-11 13:53:30 -08:00
baidu_qianfan_endpoint.py community[patch]: fix qianfan chat stream calling caused exception (#13800) 2024-01-09 15:29:25 -08:00
bedrock.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 2023-12-11 13:53:30 -08:00
cohere.py docs: update cohere chat integration (#15562) 2024-01-05 16:33:29 -08:00
databricks.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 2023-12-11 13:53:30 -08:00
ernie.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 2023-12-11 13:53:30 -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 docs: docstrings langchain_community update (#14889) 2023-12-19 08:58:24 -05:00
gigachat.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 2023-12-11 13:53:30 -08:00
google_palm.py Refactor: use SecretStr for palm chat-model (#15100) 2024-01-01 15:21:41 -08:00
gpt_router.py Refactor: use SecretStr for GPTRouter chat-model (#15101) 2024-01-01 15:20:26 -08:00
huggingface.py community[minor]: add hf chat wrapper (#14736) 2023-12-21 12:28:30 -05:00
human.py Propagate context vars in all classes/methods 2023-12-29 12:34:03 -08:00
hunyuan.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 2023-12-11 13:53:30 -08:00
javelin_ai_gateway.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 2023-12-11 13:53:30 -08:00
jinachat.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 2023-12-11 13:53:30 -08:00
konko.py feat: mask api_key for konko (#14010) 2024-01-01 13:42:49 -08:00
litellm.py add api_base to _client_params (community version of #14393) (#14644) 2024-01-01 16:53:16 -08:00
llama_edge.py feat: Implement stream interface (#15875) 2024-01-11 21:32:48 -08:00
meta.py docs: docstrings langchain_community update (#14889) 2023-12-19 08:58:24 -05:00
minimax.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 2023-12-11 13:53:30 -08:00
mlflow_ai_gateway.py Propagate context vars in all classes/methods 2023-12-29 12:34:03 -08:00
mlflow.py Propagate context vars in all classes/methods 2023-12-29 12:34:03 -08:00
ollama.py community: fix typo in async ollama chat (#15276) 2023-12-28 09:56:55 -08:00
openai.py community[patch]: more deprecations (#15782) 2024-01-09 20:36:16 -08:00
pai_eas_endpoint.py Propagate context vars in all classes/methods 2023-12-29 12:34:03 -08:00
promptlayer_openai.py Do not issue beta or deprecation warnings on internal calls (#15641) 2024-01-07 20:54:45 -08:00
tongyi.py community: Fixed bug of "system message check" in chat_models/tongyi. (#15631) 2024-01-07 08:30:18 -08:00
vertexai.py community[patch]: more deprecations (#15782) 2024-01-09 20:36:16 -08:00
volcengine_maas.py docs: docstrings langchain_community update (#14889) 2023-12-19 08:58:24 -05:00
yandex.py community[patch]: Add retry logic to Yandex GPT API Calls (#14907) 2023-12-19 10:51:42 -05:00
zhipuai.py community: Correct Input API Key Name in Notebook and Enhance Readability of Comments for ZhipuAI Chat Model (#15529) 2024-01-07 09:27:47 -08:00