langchain/libs/community/langchain_community/llms
mikeFore4 9d32af72ce
community[patch]: huggingface hub character removal bug fix (#16233)
- **Description:** Some text-generation models on huggingface repeat the
prompt in their generated response, but not all do! The tests use "gpt2"
which DOES repeat the prompt and as such, the HuggingFaceHub class is
hardcoded to remove the first few characters of the response (to match
the len(prompt)). However, if you are using a model (such as the very
popular "meta-llama/Llama-2-7b-chat-hf") that DOES NOT repeat the prompt
in it's generated text, then the beginning of the generated text will be
cut off. This code change fixes that bug by first checking whether the
prompt is repeated in the generated response and removing it
conditionally.
  - **Issue:** #16232 
  - **Dependencies:** N/A
  - **Twitter handle:** N/A
2024-01-18 18:44:10 -08:00
..
grammars
__init__.py community: add OCI Endpoint (#14250) 2023-12-20 11:52:20 -08:00
ai21.py
aleph_alpha.py
amazon_api_gateway.py
anthropic.py
anyscale.py
aphrodite.py community[minor]: Add Aphrodite Engine support (#14759) 2023-12-20 01:16:57 -05:00
arcee.py
aviary.py
azureml_endpoint.py
baidu_qianfan_endpoint.py community:qianfan endpoint support init params & remove useless params definietion (#15381) 2024-01-01 13:12:31 -08:00
bananadev.py
baseten.py community: refactor Baseten integration with new API endpoints & docs (#15017) 2023-12-22 12:46:24 -08:00
beam.py
bedrock.py Fix Bedrock broad error catching (#14398) 2024-01-02 17:25:48 -08:00
bittensor.py
cerebriumai.py
chatglm.py
clarifai.py
cloudflare_workersai.py
cohere.py
ctransformers.py
ctranslate2.py
databricks.py community[patch]: Add param "task" to Databricks LLM to work around serialization of transform_output_fn (#14933) 2023-12-20 12:50:23 -05:00
deepinfra.py
deepsparse.py community[patch]: Fix generation_config not setting properly for DeepSparse (#15036) 2023-12-22 01:39:22 -05:00
edenai.py community: replace deprecated davinci models (#14860) 2023-12-18 13:49:46 -08:00
fake.py
fireworks.py docs: docstrings langchain_community update (#14889) 2023-12-19 08:58:24 -05:00
forefrontai.py
gigachat.py
google_palm.py community[patch]: more deprecations (#15782) 2024-01-09 20:36:16 -08:00
gooseai.py
gpt4all.py
gradient_ai.py
huggingface_endpoint.py
huggingface_hub.py community[patch]: huggingface hub character removal bug fix (#16233) 2024-01-18 18:44:10 -08:00
huggingface_pipeline.py
huggingface_text_gen_inference.py
human.py
javelin_ai_gateway.py
koboldai.py
llamacpp.py
loading.py
manifest.py
minimax.py
mlflow_ai_gateway.py
mlflow.py Remove unused Params (#14385) 2024-01-02 22:45:18 -08:00
modal.py
mosaicml.py
nlpcloud.py community[patch]: fix top_p type hint (#15452) 2024-01-15 11:59:39 -08:00
oci_data_science_model_deployment_endpoint.py docs, community[patch], experimental[patch], langchain[patch], cli[pa… (#15412) 2024-01-02 15:32:16 -05:00
octoai_endpoint.py
ollama.py community[patch]: fix ollama astream (#16070) 2024-01-17 09:42:41 -08:00
opaqueprompts.py
openai.py community[patch]: more deprecations (#15782) 2024-01-09 20:36:16 -08:00
openllm.py
openlm.py
pai_eas_endpoint.py
petals.py Refactor: use SecretStr for Petals llms (#15121) 2023-12-26 12:57:37 -08:00
pipelineai.py Refactor: use SecretStr for PipelineAI llms (#15120) 2023-12-26 13:00:58 -08:00
predibase.py Refactor: use SecretStr for Predibase llms (#15119) 2023-12-26 13:01:42 -08:00
predictionguard.py
promptlayer_openai.py Do not issue beta or deprecation warnings on internal calls (#15641) 2024-01-07 20:54:45 -08:00
replicate.py
rwkv.py
sagemaker_endpoint.py
self_hosted_hugging_face.py
self_hosted.py
stochasticai.py Refactor: use SecretStr for StochasticAI llms (#15118) 2023-12-26 12:59:51 -08:00
symblai_nebula.py
textgen.py docs: docstrings langchain_community update (#14889) 2023-12-19 08:58:24 -05:00
titan_takeoff_pro.py docs: docstrings langchain_community update (#14889) 2023-12-19 08:58:24 -05:00
titan_takeoff.py
together.py together[minor]: add llm (#15853) 2024-01-10 17:55:34 -08:00
tongyi.py Upgrades the Tongyi LLM and ChatTongyi Model (#14793) 2023-12-29 12:06:12 -08:00
utils.py
vertexai.py community[patch]: more deprecations (#15782) 2024-01-09 20:36:16 -08:00
vllm.py
volcengine_maas.py Refactor: use SecretStr for VolcEngineMaas llms (#15117) 2023-12-26 12:59:08 -08:00
watsonxllm.py community[patch]: fix stop (stop_sequences) param on WatsonxLLM (#15541) 2024-01-15 11:44:57 -08:00
writer.py
xinference.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