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
William De Vena 6b58943917
community[patch]: Invoke callback prior to yielding token (#18288)
## PR title
community[patch]: Invoke callback prior to yielding

PR message
Description: Invoke on_llm_new_token callback prior to yielding token in
_stream and _astream methods.
Issue: https://github.com/langchain-ai/langchain/issues/16913
Dependencies: None
Twitter handle: None
7 months ago
..
grammars
__init__.py community[patch]: BaseLLM typing in init (#18029) 7 months ago
ai21.py
aleph_alpha.py infra: add print rule to ruff (#16221) 8 months ago
amazon_api_gateway.py
anthropic.py community[patch]: Expose Anthropic Retry Logic (#17069) 8 months ago
anyscale.py community[patch]: Remove model limitation on Anyscale LLM (#17662) 7 months ago
aphrodite.py community[minor]: Add Aphrodite Engine support (#14759) 10 months ago
arcee.py
aviary.py
azureml_endpoint.py community[patch]: chat model mypy fixes (#17061) 8 months ago
baichuan.py infra: add -p to mkdir in lint steps (#17013) 8 months ago
baidu_qianfan_endpoint.py community:qianfan endpoint support init params & remove useless params definietion (#15381) 9 months ago
bananadev.py
baseten.py community: refactor Baseten integration with new API endpoints & docs (#15017) 9 months ago
beam.py infra: add print rule to ruff (#16221) 8 months ago
bedrock.py community[patch]: Fix pydantic ForwardRef error in BedrockBase (#17416) 8 months ago
bittensor.py
cerebriumai.py
chatglm.py <langchain_community\llms\chatglm.py>: <Correcting "history"> (#16729) 8 months ago
chatglm3.py community: Add ChatGLM3 (#15265) 8 months ago
clarifai.py
cloudflare_workersai.py
cohere.py
ctransformers.py
ctranslate2.py
databricks.py community[patch]: Support SerDe transform functions in Databricks LLM (#16752) 8 months ago
deepinfra.py
deepsparse.py infra: add print rule to ruff (#16221) 8 months ago
edenai.py community: replace deprecated davinci models (#14860) 10 months ago
fake.py
fireworks.py docs: docstrings `langchain_community` update (#14889) 10 months ago
forefrontai.py
gigachat.py
google_palm.py community[patch]: more deprecations (#15782) 9 months ago
gooseai.py
gpt4all.py community[patch]: Enable streaming for GPT4all (#16392) 8 months ago
gradient_ai.py
huggingface_endpoint.py Community: Fuse HuggingFace Endpoint-related classes into one (#17254) 8 months ago
huggingface_hub.py Community: Fuse HuggingFace Endpoint-related classes into one (#17254) 8 months ago
huggingface_pipeline.py Community: Fuse HuggingFace Endpoint-related classes into one (#17254) 8 months ago
huggingface_text_gen_inference.py Community: Fuse HuggingFace Endpoint-related classes into one (#17254) 8 months ago
human.py infra: add print rule to ruff (#16221) 8 months ago
javelin_ai_gateway.py
koboldai.py
konko.py community[minor]: Adding Konko Completion endpoint (#15570) 8 months ago
llamacpp.py infra: add print rule to ruff (#16221) 8 months ago
llamafile.py community[minor]: Adds Llamafile as an LLM (#17431) 8 months ago
loading.py core[patch]: Support .yml extension for YAML (#16783) 8 months ago
manifest.py
minimax.py
mlflow.py Remove unused `Params` (#14385) 9 months ago
mlflow_ai_gateway.py
modal.py
mosaicml.py
nlpcloud.py community[patch]: fix top_p type hint (#15452) 9 months ago
oci_data_science_model_deployment_endpoint.py docs, community[patch], experimental[patch], langchain[patch], cli[pa… (#15412) 9 months ago
oci_generative_ai.py community[patch]: docstrings (#16810) 8 months ago
octoai_endpoint.py community[minor]: Update OctoAI LLM, Embedding and documentation (#16710) 8 months ago
ollama.py community: Bugfix - correct Ollama API path to avoid HTTP 307 (#17895) 7 months ago
opaqueprompts.py
openai.py openai[patch]: Explicitly support embedding dimensions (#16596) 8 months ago
openllm.py community[patch]: OpenLLM Client Fixes + Added Timeout Parameter (#17478) 8 months ago
openlm.py
pai_eas_endpoint.py
petals.py Refactor: use SecretStr for Petals llms (#15121) 9 months ago
pipelineai.py infra: add -p to mkdir in lint steps (#17013) 8 months ago
predibase.py Refactor: use SecretStr for Predibase llms (#15119) 9 months ago
predictionguard.py
promptlayer_openai.py Do not issue beta or deprecation warnings on internal calls (#15641) 9 months ago
replicate.py
rwkv.py
sagemaker_endpoint.py
self_hosted.py
self_hosted_hugging_face.py
sparkllm.py community[minor]: Add SparkLLM to community (#17702) 7 months ago
stochasticai.py infra: add -p to mkdir in lint steps (#17013) 8 months ago
symblai_nebula.py
textgen.py infra: add print rule to ruff (#16221) 8 months ago
titan_takeoff.py
titan_takeoff_pro.py docs: docstrings `langchain_community` update (#14889) 10 months ago
together.py together[minor]: add llm (#15853) 9 months ago
tongyi.py community[patch]: docstrings (#16810) 8 months ago
utils.py
vertexai.py infra: add -p to mkdir in lint steps (#17013) 8 months ago
vllm.py
volcengine_maas.py community[patch]: Invoke callback prior to yielding token (#18288) 7 months ago
watsonxllm.py ibm: added partners package `langchain_ibm`, added llm (#16512) 8 months ago
writer.py
xinference.py docs: docstrings `langchain_community` update (#14889) 10 months ago
yandex.py community[patch]: chat model mypy fixes (#17061) 8 months ago
yuan2.py community[minor]: integrate with model Yuan2.0 (#15411) 8 months ago