Instructions to use luclima/mythos-models with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use luclima/mythos-models with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf luclima/mythos-models:Q4_K_M # Run inference directly in the terminal: llama cli -hf luclima/mythos-models:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf luclima/mythos-models:Q4_K_M # Run inference directly in the terminal: llama cli -hf luclima/mythos-models:Q4_K_M
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf luclima/mythos-models:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf luclima/mythos-models:Q4_K_M
Use Docker
docker model run hf.co/luclima/mythos-models:Q4_K_M
- Llama new
- LM Studio
- Jan
- Ollama
How to use luclima/mythos-models with Ollama:
ollama run hf.co/luclima/mythos-models:Q4_K_M
- Unsloth Desktop
- Docker Model Runner
How to use luclima/mythos-models with Docker Model Runner:
docker model run hf.co/luclima/mythos-models:Q4_K_M
- Lemonade
How to use luclima/mythos-models with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull luclima/mythos-models:Q4_K_M
Run and chat with the model
lemonade run user.mythos-models-Q4_K_M
List all available models
lemonade list
- Atomic Chat
Upload folder using huggingface_hub (part 18)
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- .gitattributes +4 -0
- western_ai/usa/langchain/libs/langchain/LICENSE +21 -0
- western_ai/usa/langchain/libs/langchain/Makefile +89 -0
- western_ai/usa/langchain/libs/langchain/README.md +42 -0
- western_ai/usa/langchain/libs/langchain/langchain_classic/llms/javelin_ai_gateway.py +28 -0
- western_ai/usa/langchain/libs/langchain/langchain_classic/llms/koboldai.py +23 -0
- western_ai/usa/langchain/libs/langchain/langchain_classic/llms/llamacpp.py +23 -0
- western_ai/usa/langchain/libs/langchain/langchain_classic/llms/loading.py +27 -0
- western_ai/usa/langchain/libs/langchain/langchain_classic/llms/manifest.py +23 -0
- western_ai/usa/langchain/libs/langchain/langchain_classic/llms/minimax.py +23 -0
- western_ai/usa/langchain/libs/langchain/langchain_classic/llms/mlflow.py +23 -0
- western_ai/usa/langchain/libs/langchain/langchain_classic/llms/mlflow_ai_gateway.py +23 -0
- western_ai/usa/langchain/libs/langchain/langchain_classic/llms/modal.py +23 -0
- western_ai/usa/langchain/libs/langchain/langchain_classic/llms/mosaicml.py +23 -0
- western_ai/usa/langchain/libs/langchain/langchain_classic/llms/nlpcloud.py +23 -0
- western_ai/usa/langchain/libs/langchain/langchain_classic/llms/octoai_endpoint.py +23 -0
- western_ai/usa/langchain/libs/langchain/langchain_classic/llms/ollama.py +23 -0
- western_ai/usa/langchain/libs/langchain/langchain_classic/llms/opaqueprompts.py +23 -0
- western_ai/usa/langchain/libs/langchain/langchain_classic/llms/openai.py +32 -0
- western_ai/usa/langchain/libs/langchain/langchain_classic/llms/openllm.py +23 -0
- western_ai/usa/langchain/libs/langchain/langchain_classic/llms/openlm.py +23 -0
- western_ai/usa/langchain/libs/langchain/langchain_classic/llms/pai_eas_endpoint.py +23 -0
- western_ai/usa/langchain/libs/langchain/langchain_classic/llms/petals.py +23 -0
- western_ai/usa/langchain/libs/langchain/langchain_classic/llms/pipelineai.py +23 -0
- western_ai/usa/langchain/libs/langchain/langchain_classic/llms/predibase.py +23 -0
- western_ai/usa/langchain/libs/langchain/langchain_classic/llms/predictionguard.py +23 -0
- western_ai/usa/langchain/libs/langchain/langchain_classic/llms/promptlayer_openai.py +27 -0
- western_ai/usa/langchain/libs/langchain/langchain_classic/llms/replicate.py +23 -0
- western_ai/usa/langchain/libs/langchain/langchain_classic/llms/rwkv.py +23 -0
- western_ai/usa/langchain/libs/langchain/langchain_classic/llms/sagemaker_endpoint.py +28 -0
- western_ai/usa/langchain/libs/langchain/langchain_classic/llms/self_hosted.py +23 -0
- western_ai/usa/langchain/libs/langchain/langchain_classic/llms/self_hosted_hugging_face.py +23 -0
- western_ai/usa/langchain/libs/langchain/langchain_classic/llms/stochasticai.py +23 -0
- western_ai/usa/langchain/libs/langchain/langchain_classic/llms/symblai_nebula.py +23 -0
- western_ai/usa/langchain/libs/langchain/langchain_classic/llms/textgen.py +23 -0
- western_ai/usa/langchain/libs/langchain/langchain_classic/llms/titan_takeoff.py +23 -0
- western_ai/usa/langchain/libs/langchain/langchain_classic/llms/titan_takeoff_pro.py +23 -0
- western_ai/usa/langchain/libs/langchain/langchain_classic/llms/together.py +23 -0
- western_ai/usa/langchain/libs/langchain/langchain_classic/llms/tongyi.py +23 -0
- western_ai/usa/langchain/libs/langchain/langchain_classic/llms/utils.py +23 -0
- western_ai/usa/langchain/libs/langchain/langchain_classic/llms/vertexai.py +27 -0
- western_ai/usa/langchain/libs/langchain/langchain_classic/llms/vllm.py +27 -0
- western_ai/usa/langchain/libs/langchain/langchain_classic/llms/volcengine_maas.py +28 -0
- western_ai/usa/langchain/libs/langchain/langchain_classic/llms/watsonxllm.py +23 -0
- western_ai/usa/langchain/libs/langchain/langchain_classic/llms/writer.py +23 -0
- western_ai/usa/langchain/libs/langchain/langchain_classic/llms/xinference.py +23 -0
- western_ai/usa/langchain/libs/langchain/langchain_classic/llms/yandex.py +23 -0
- western_ai/usa/langchain/libs/langchain/langchain_classic/load/__init__.py +11 -0
- western_ai/usa/langchain/libs/langchain/langchain_classic/load/dump.py +3 -0
- western_ai/usa/langchain/libs/langchain/langchain_classic/load/load.py +3 -0
.gitattributes
CHANGED
|
@@ -1114,3 +1114,7 @@ western_ai/europe/flux/assets/flux-1-krea-dev-grid.png filter=lfs diff=lfs merge
|
|
| 1114 |
western_ai/europe/flux/assets/grid.jpg filter=lfs diff=lfs merge=lfs -text
|
| 1115 |
western_ai/europe/flux/assets/schnell_grid.jpg filter=lfs diff=lfs merge=lfs -text
|
| 1116 |
western_ai/europe/mistral/assets/smoe.png filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1114 |
western_ai/europe/flux/assets/grid.jpg filter=lfs diff=lfs merge=lfs -text
|
| 1115 |
western_ai/europe/flux/assets/schnell_grid.jpg filter=lfs diff=lfs merge=lfs -text
|
| 1116 |
western_ai/europe/mistral/assets/smoe.png filter=lfs diff=lfs merge=lfs -text
|
| 1117 |
+
western_ai/usa/langchain/libs/langchain/tests/integration_tests/examples/duplicate-chars.pdf filter=lfs diff=lfs merge=lfs -text
|
| 1118 |
+
western_ai/usa/langchain/libs/langchain/tests/integration_tests/examples/hello.msg filter=lfs diff=lfs merge=lfs -text
|
| 1119 |
+
western_ai/usa/langchain/libs/langchain/tests/integration_tests/examples/layout-parser-paper.pdf filter=lfs diff=lfs merge=lfs -text
|
| 1120 |
+
western_ai/usa/langchain/libs/langchain/tests/integration_tests/examples/multi-page-forms-sample-2-page.pdf filter=lfs diff=lfs merge=lfs -text
|
western_ai/usa/langchain/libs/langchain/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
MIT License
|
| 2 |
+
|
| 3 |
+
Copyright (c) LangChain, Inc.
|
| 4 |
+
|
| 5 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 6 |
+
of this software and associated documentation files (the "Software"), to deal
|
| 7 |
+
in the Software without restriction, including without limitation the rights
|
| 8 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 9 |
+
copies of the Software, and to permit persons to whom the Software is
|
| 10 |
+
furnished to do so, subject to the following conditions:
|
| 11 |
+
|
| 12 |
+
The above copyright notice and this permission notice shall be included in all
|
| 13 |
+
copies or substantial portions of the Software.
|
| 14 |
+
|
| 15 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 16 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 17 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 18 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 19 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 20 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 21 |
+
SOFTWARE.
|
western_ai/usa/langchain/libs/langchain/Makefile
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
.PHONY: all coverage test tests extended_tests test_watch test_watch_extended integration_tests check_imports lint format type lint_diff format_diff lint_package lint_tests help
|
| 2 |
+
|
| 3 |
+
# Default target executed when no arguments are given to make.
|
| 4 |
+
all: help
|
| 5 |
+
|
| 6 |
+
######################
|
| 7 |
+
# TESTING AND COVERAGE
|
| 8 |
+
######################
|
| 9 |
+
|
| 10 |
+
# Define a variable for the test file path.
|
| 11 |
+
TEST_FILE ?= tests/unit_tests/
|
| 12 |
+
PYTEST_EXTRA ?=
|
| 13 |
+
|
| 14 |
+
.EXPORT_ALL_VARIABLES:
|
| 15 |
+
UV_FROZEN = true
|
| 16 |
+
|
| 17 |
+
# Run unit tests and generate a coverage report.
|
| 18 |
+
coverage:
|
| 19 |
+
uv run --group test pytest --cov \
|
| 20 |
+
--cov-config=.coveragerc \
|
| 21 |
+
--cov-report xml \
|
| 22 |
+
--cov-report term-missing:skip-covered \
|
| 23 |
+
$(TEST_FILE)
|
| 24 |
+
|
| 25 |
+
test tests:
|
| 26 |
+
uv run --group test pytest -n auto --benchmark-disable $(PYTEST_EXTRA) --disable-socket --allow-unix-socket $(TEST_FILE)
|
| 27 |
+
|
| 28 |
+
extended_tests:
|
| 29 |
+
uv run --group test pytest $(PYTEST_EXTRA) --disable-socket --allow-unix-socket --only-extended tests/unit_tests
|
| 30 |
+
|
| 31 |
+
test_watch:
|
| 32 |
+
uv run --group test ptw --snapshot-update --now . -- -x --disable-socket --allow-unix-socket --disable-warnings tests/unit_tests
|
| 33 |
+
|
| 34 |
+
test_watch_extended:
|
| 35 |
+
uv run --group test ptw --snapshot-update --now . -- -x --disable-socket --allow-unix-socket --only-extended tests/unit_tests
|
| 36 |
+
|
| 37 |
+
integration_tests:
|
| 38 |
+
uv run --group test --group test_integration pytest tests/integration_tests
|
| 39 |
+
|
| 40 |
+
check_imports: $(shell find langchain_classic -name '*.py')
|
| 41 |
+
uv run python ./scripts/check_imports.py $^
|
| 42 |
+
|
| 43 |
+
######################
|
| 44 |
+
# LINTING AND FORMATTING
|
| 45 |
+
######################
|
| 46 |
+
|
| 47 |
+
# Define a variable for Python and notebook files.
|
| 48 |
+
PYTHON_FILES=.
|
| 49 |
+
MYPY_CACHE=.mypy_cache
|
| 50 |
+
lint format: PYTHON_FILES=.
|
| 51 |
+
lint_diff format_diff: PYTHON_FILES=$(shell git diff --relative=libs/langchain --name-only --diff-filter=d master | grep -E '\.py$$|\.ipynb$$')
|
| 52 |
+
lint_package: PYTHON_FILES=langchain_classic
|
| 53 |
+
lint_tests: PYTHON_FILES=tests
|
| 54 |
+
lint_tests: MYPY_CACHE=.mypy_cache_test
|
| 55 |
+
UV_RUN_LINT = uv run --all-groups
|
| 56 |
+
UV_RUN_TYPE = uv run --all-groups
|
| 57 |
+
lint_package lint_tests: UV_RUN_LINT = uv run --group lint
|
| 58 |
+
|
| 59 |
+
lint lint_diff lint_package lint_tests:
|
| 60 |
+
./scripts/lint_imports.sh
|
| 61 |
+
[ "$(PYTHON_FILES)" = "" ] || $(UV_RUN_LINT) ruff check $(PYTHON_FILES)
|
| 62 |
+
[ "$(PYTHON_FILES)" = "" ] || $(UV_RUN_LINT) ruff format $(PYTHON_FILES) --diff
|
| 63 |
+
[ "$(PYTHON_FILES)" = "" ] || mkdir -p $(MYPY_CACHE) && $(UV_RUN_TYPE) mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE)
|
| 64 |
+
|
| 65 |
+
type:
|
| 66 |
+
mkdir -p $(MYPY_CACHE) && $(UV_RUN_TYPE) mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE)
|
| 67 |
+
|
| 68 |
+
format format_diff:
|
| 69 |
+
[ "$(PYTHON_FILES)" = "" ] || $(UV_RUN_LINT) ruff format $(PYTHON_FILES)
|
| 70 |
+
[ "$(PYTHON_FILES)" = "" ] || $(UV_RUN_LINT) ruff check --fix $(PYTHON_FILES)
|
| 71 |
+
|
| 72 |
+
######################
|
| 73 |
+
# HELP
|
| 74 |
+
######################
|
| 75 |
+
|
| 76 |
+
help:
|
| 77 |
+
@echo '===================='
|
| 78 |
+
@echo '-- LINTING --'
|
| 79 |
+
@echo 'format - run code formatters'
|
| 80 |
+
@echo 'lint - run linters'
|
| 81 |
+
@echo 'type - run type checking'
|
| 82 |
+
@echo '-- TESTS --'
|
| 83 |
+
@echo 'coverage - run unit tests and generate coverage report'
|
| 84 |
+
@echo 'test - run unit tests'
|
| 85 |
+
@echo 'tests - run unit tests (alias for "make test")'
|
| 86 |
+
@echo 'test TEST_FILE=<test_file> - run all tests in file'
|
| 87 |
+
@echo 'extended_tests - run only extended unit tests'
|
| 88 |
+
@echo 'test_watch - run unit tests in watch mode'
|
| 89 |
+
@echo 'integration_tests - run integration tests'
|
western_ai/usa/langchain/libs/langchain/README.md
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# 🦜️🔗 LangChain Classic
|
| 2 |
+
|
| 3 |
+
[](https://pypi.org/project/langchain-classic/#history)
|
| 4 |
+
[](https://opensource.org/licenses/MIT)
|
| 5 |
+
[](https://pypistats.org/packages/langchain-classic)
|
| 6 |
+
[](https://x.com/langchain_oss)
|
| 7 |
+
|
| 8 |
+
Looking for the JS/TS version? Check out [LangChain.js](https://github.com/langchain-ai/langchainjs).
|
| 9 |
+
|
| 10 |
+
To help you ship LangChain apps to production faster, check out [LangSmith](https://www.langchain.com/langsmith).
|
| 11 |
+
[LangSmith](https://www.langchain.com/langsmith) is a unified developer platform for building, testing, and monitoring LLM applications.
|
| 12 |
+
|
| 13 |
+
## Quick Install
|
| 14 |
+
|
| 15 |
+
```bash
|
| 16 |
+
uv add langchain-classic
|
| 17 |
+
```
|
| 18 |
+
|
| 19 |
+
## 🤔 What is this?
|
| 20 |
+
|
| 21 |
+
Legacy chains, `langchain-community` re-exports, indexing API, deprecated functionality, and more.
|
| 22 |
+
|
| 23 |
+
In most cases, you should be using the main [`langchain`](https://pypi.org/project/langchain/) package.
|
| 24 |
+
|
| 25 |
+
## 📖 Documentation
|
| 26 |
+
|
| 27 |
+
For full documentation, see the [API reference](https://reference.langchain.com/python/langchain_classic). For conceptual guides, tutorials, and examples on using LangChain, see the [LangChain Docs](https://docs.langchain.com/oss/python/langchain/overview).
|
| 28 |
+
|
| 29 |
+
## 📕 Releases & Versioning
|
| 30 |
+
|
| 31 |
+
See our [Releases](https://docs.langchain.com/oss/python/release-policy) and [Versioning](https://docs.langchain.com/oss/python/versioning) policies.
|
| 32 |
+
|
| 33 |
+
## 💁 Contributing
|
| 34 |
+
|
| 35 |
+
As an open-source project in a rapidly developing field, we are extremely open to contributions, whether it be in the form of a new feature, improved infrastructure, or better documentation.
|
| 36 |
+
|
| 37 |
+
For detailed information on how to contribute, see the [Contributing Guide](https://docs.langchain.com/oss/python/contributing/overview).
|
| 38 |
+
|
| 39 |
+
## Resources
|
| 40 |
+
|
| 41 |
+
- [LangChain Academy](https://academy.langchain.com/) — comprehensive, free courses on LangChain libraries and products, made by the LangChain team
|
| 42 |
+
- [Code of Conduct](https://github.com/langchain-ai/langchain/?tab=coc-ov-file) — community guidelines and standards
|
western_ai/usa/langchain/libs/langchain/langchain_classic/llms/javelin_ai_gateway.py
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import TYPE_CHECKING, Any
|
| 2 |
+
|
| 3 |
+
from langchain_classic._api import create_importer
|
| 4 |
+
|
| 5 |
+
if TYPE_CHECKING:
|
| 6 |
+
from langchain_community.llms import JavelinAIGateway
|
| 7 |
+
from langchain_community.llms.javelin_ai_gateway import Params
|
| 8 |
+
|
| 9 |
+
# Create a way to dynamically look up deprecated imports.
|
| 10 |
+
# Used to consolidate logic for raising deprecation warnings and
|
| 11 |
+
# handling optional imports.
|
| 12 |
+
DEPRECATED_LOOKUP = {
|
| 13 |
+
"JavelinAIGateway": "langchain_community.llms",
|
| 14 |
+
"Params": "langchain_community.llms.javelin_ai_gateway",
|
| 15 |
+
}
|
| 16 |
+
|
| 17 |
+
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
|
| 18 |
+
|
| 19 |
+
|
| 20 |
+
def __getattr__(name: str) -> Any:
|
| 21 |
+
"""Look up attributes dynamically."""
|
| 22 |
+
return _import_attribute(name)
|
| 23 |
+
|
| 24 |
+
|
| 25 |
+
__all__ = [
|
| 26 |
+
"JavelinAIGateway",
|
| 27 |
+
"Params",
|
| 28 |
+
]
|
western_ai/usa/langchain/libs/langchain/langchain_classic/llms/koboldai.py
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import TYPE_CHECKING, Any
|
| 2 |
+
|
| 3 |
+
from langchain_classic._api import create_importer
|
| 4 |
+
|
| 5 |
+
if TYPE_CHECKING:
|
| 6 |
+
from langchain_community.llms import KoboldApiLLM
|
| 7 |
+
|
| 8 |
+
# Create a way to dynamically look up deprecated imports.
|
| 9 |
+
# Used to consolidate logic for raising deprecation warnings and
|
| 10 |
+
# handling optional imports.
|
| 11 |
+
DEPRECATED_LOOKUP = {"KoboldApiLLM": "langchain_community.llms"}
|
| 12 |
+
|
| 13 |
+
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
def __getattr__(name: str) -> Any:
|
| 17 |
+
"""Look up attributes dynamically."""
|
| 18 |
+
return _import_attribute(name)
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
__all__ = [
|
| 22 |
+
"KoboldApiLLM",
|
| 23 |
+
]
|
western_ai/usa/langchain/libs/langchain/langchain_classic/llms/llamacpp.py
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import TYPE_CHECKING, Any
|
| 2 |
+
|
| 3 |
+
from langchain_classic._api import create_importer
|
| 4 |
+
|
| 5 |
+
if TYPE_CHECKING:
|
| 6 |
+
from langchain_community.llms import LlamaCpp
|
| 7 |
+
|
| 8 |
+
# Create a way to dynamically look up deprecated imports.
|
| 9 |
+
# Used to consolidate logic for raising deprecation warnings and
|
| 10 |
+
# handling optional imports.
|
| 11 |
+
DEPRECATED_LOOKUP = {"LlamaCpp": "langchain_community.llms"}
|
| 12 |
+
|
| 13 |
+
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
def __getattr__(name: str) -> Any:
|
| 17 |
+
"""Look up attributes dynamically."""
|
| 18 |
+
return _import_attribute(name)
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
__all__ = [
|
| 22 |
+
"LlamaCpp",
|
| 23 |
+
]
|
western_ai/usa/langchain/libs/langchain/langchain_classic/llms/loading.py
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import TYPE_CHECKING, Any
|
| 2 |
+
|
| 3 |
+
from langchain_classic._api import create_importer
|
| 4 |
+
|
| 5 |
+
if TYPE_CHECKING:
|
| 6 |
+
from langchain_community.llms.loading import load_llm, load_llm_from_config
|
| 7 |
+
|
| 8 |
+
# Create a way to dynamically look up deprecated imports.
|
| 9 |
+
# Used to consolidate logic for raising deprecation warnings and
|
| 10 |
+
# handling optional imports.
|
| 11 |
+
DEPRECATED_LOOKUP = {
|
| 12 |
+
"load_llm_from_config": "langchain_community.llms.loading",
|
| 13 |
+
"load_llm": "langchain_community.llms.loading",
|
| 14 |
+
}
|
| 15 |
+
|
| 16 |
+
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+
def __getattr__(name: str) -> Any:
|
| 20 |
+
"""Look up attributes dynamically."""
|
| 21 |
+
return _import_attribute(name)
|
| 22 |
+
|
| 23 |
+
|
| 24 |
+
__all__ = [
|
| 25 |
+
"load_llm",
|
| 26 |
+
"load_llm_from_config",
|
| 27 |
+
]
|
western_ai/usa/langchain/libs/langchain/langchain_classic/llms/manifest.py
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import TYPE_CHECKING, Any
|
| 2 |
+
|
| 3 |
+
from langchain_classic._api import create_importer
|
| 4 |
+
|
| 5 |
+
if TYPE_CHECKING:
|
| 6 |
+
from langchain_community.llms import ManifestWrapper
|
| 7 |
+
|
| 8 |
+
# Create a way to dynamically look up deprecated imports.
|
| 9 |
+
# Used to consolidate logic for raising deprecation warnings and
|
| 10 |
+
# handling optional imports.
|
| 11 |
+
DEPRECATED_LOOKUP = {"ManifestWrapper": "langchain_community.llms"}
|
| 12 |
+
|
| 13 |
+
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
def __getattr__(name: str) -> Any:
|
| 17 |
+
"""Look up attributes dynamically."""
|
| 18 |
+
return _import_attribute(name)
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
__all__ = [
|
| 22 |
+
"ManifestWrapper",
|
| 23 |
+
]
|
western_ai/usa/langchain/libs/langchain/langchain_classic/llms/minimax.py
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import TYPE_CHECKING, Any
|
| 2 |
+
|
| 3 |
+
from langchain_classic._api import create_importer
|
| 4 |
+
|
| 5 |
+
if TYPE_CHECKING:
|
| 6 |
+
from langchain_community.llms import Minimax
|
| 7 |
+
|
| 8 |
+
# Create a way to dynamically look up deprecated imports.
|
| 9 |
+
# Used to consolidate logic for raising deprecation warnings and
|
| 10 |
+
# handling optional imports.
|
| 11 |
+
DEPRECATED_LOOKUP = {"Minimax": "langchain_community.llms"}
|
| 12 |
+
|
| 13 |
+
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
def __getattr__(name: str) -> Any:
|
| 17 |
+
"""Look up attributes dynamically."""
|
| 18 |
+
return _import_attribute(name)
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
__all__ = [
|
| 22 |
+
"Minimax",
|
| 23 |
+
]
|
western_ai/usa/langchain/libs/langchain/langchain_classic/llms/mlflow.py
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import TYPE_CHECKING, Any
|
| 2 |
+
|
| 3 |
+
from langchain_classic._api import create_importer
|
| 4 |
+
|
| 5 |
+
if TYPE_CHECKING:
|
| 6 |
+
from langchain_community.llms import Mlflow
|
| 7 |
+
|
| 8 |
+
# Create a way to dynamically look up deprecated imports.
|
| 9 |
+
# Used to consolidate logic for raising deprecation warnings and
|
| 10 |
+
# handling optional imports.
|
| 11 |
+
DEPRECATED_LOOKUP = {"Mlflow": "langchain_community.llms"}
|
| 12 |
+
|
| 13 |
+
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
def __getattr__(name: str) -> Any:
|
| 17 |
+
"""Look up attributes dynamically."""
|
| 18 |
+
return _import_attribute(name)
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
__all__ = [
|
| 22 |
+
"Mlflow",
|
| 23 |
+
]
|
western_ai/usa/langchain/libs/langchain/langchain_classic/llms/mlflow_ai_gateway.py
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import TYPE_CHECKING, Any
|
| 2 |
+
|
| 3 |
+
from langchain_classic._api import create_importer
|
| 4 |
+
|
| 5 |
+
if TYPE_CHECKING:
|
| 6 |
+
from langchain_community.llms import MlflowAIGateway
|
| 7 |
+
|
| 8 |
+
# Create a way to dynamically look up deprecated imports.
|
| 9 |
+
# Used to consolidate logic for raising deprecation warnings and
|
| 10 |
+
# handling optional imports.
|
| 11 |
+
DEPRECATED_LOOKUP = {"MlflowAIGateway": "langchain_community.llms"}
|
| 12 |
+
|
| 13 |
+
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
def __getattr__(name: str) -> Any:
|
| 17 |
+
"""Look up attributes dynamically."""
|
| 18 |
+
return _import_attribute(name)
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
__all__ = [
|
| 22 |
+
"MlflowAIGateway",
|
| 23 |
+
]
|
western_ai/usa/langchain/libs/langchain/langchain_classic/llms/modal.py
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import TYPE_CHECKING, Any
|
| 2 |
+
|
| 3 |
+
from langchain_classic._api import create_importer
|
| 4 |
+
|
| 5 |
+
if TYPE_CHECKING:
|
| 6 |
+
from langchain_community.llms import Modal
|
| 7 |
+
|
| 8 |
+
# Create a way to dynamically look up deprecated imports.
|
| 9 |
+
# Used to consolidate logic for raising deprecation warnings and
|
| 10 |
+
# handling optional imports.
|
| 11 |
+
DEPRECATED_LOOKUP = {"Modal": "langchain_community.llms"}
|
| 12 |
+
|
| 13 |
+
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
def __getattr__(name: str) -> Any:
|
| 17 |
+
"""Look up attributes dynamically."""
|
| 18 |
+
return _import_attribute(name)
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
__all__ = [
|
| 22 |
+
"Modal",
|
| 23 |
+
]
|
western_ai/usa/langchain/libs/langchain/langchain_classic/llms/mosaicml.py
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import TYPE_CHECKING, Any
|
| 2 |
+
|
| 3 |
+
from langchain_classic._api import create_importer
|
| 4 |
+
|
| 5 |
+
if TYPE_CHECKING:
|
| 6 |
+
from langchain_community.llms import MosaicML
|
| 7 |
+
|
| 8 |
+
# Create a way to dynamically look up deprecated imports.
|
| 9 |
+
# Used to consolidate logic for raising deprecation warnings and
|
| 10 |
+
# handling optional imports.
|
| 11 |
+
DEPRECATED_LOOKUP = {"MosaicML": "langchain_community.llms"}
|
| 12 |
+
|
| 13 |
+
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
def __getattr__(name: str) -> Any:
|
| 17 |
+
"""Look up attributes dynamically."""
|
| 18 |
+
return _import_attribute(name)
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
__all__ = [
|
| 22 |
+
"MosaicML",
|
| 23 |
+
]
|
western_ai/usa/langchain/libs/langchain/langchain_classic/llms/nlpcloud.py
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import TYPE_CHECKING, Any
|
| 2 |
+
|
| 3 |
+
from langchain_classic._api import create_importer
|
| 4 |
+
|
| 5 |
+
if TYPE_CHECKING:
|
| 6 |
+
from langchain_community.llms import NLPCloud
|
| 7 |
+
|
| 8 |
+
# Create a way to dynamically look up deprecated imports.
|
| 9 |
+
# Used to consolidate logic for raising deprecation warnings and
|
| 10 |
+
# handling optional imports.
|
| 11 |
+
DEPRECATED_LOOKUP = {"NLPCloud": "langchain_community.llms"}
|
| 12 |
+
|
| 13 |
+
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
def __getattr__(name: str) -> Any:
|
| 17 |
+
"""Look up attributes dynamically."""
|
| 18 |
+
return _import_attribute(name)
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
__all__ = [
|
| 22 |
+
"NLPCloud",
|
| 23 |
+
]
|
western_ai/usa/langchain/libs/langchain/langchain_classic/llms/octoai_endpoint.py
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import TYPE_CHECKING, Any
|
| 2 |
+
|
| 3 |
+
from langchain_classic._api import create_importer
|
| 4 |
+
|
| 5 |
+
if TYPE_CHECKING:
|
| 6 |
+
from langchain_community.llms import OctoAIEndpoint
|
| 7 |
+
|
| 8 |
+
# Create a way to dynamically look up deprecated imports.
|
| 9 |
+
# Used to consolidate logic for raising deprecation warnings and
|
| 10 |
+
# handling optional imports.
|
| 11 |
+
DEPRECATED_LOOKUP = {"OctoAIEndpoint": "langchain_community.llms"}
|
| 12 |
+
|
| 13 |
+
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
def __getattr__(name: str) -> Any:
|
| 17 |
+
"""Look up attributes dynamically."""
|
| 18 |
+
return _import_attribute(name)
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
__all__ = [
|
| 22 |
+
"OctoAIEndpoint",
|
| 23 |
+
]
|
western_ai/usa/langchain/libs/langchain/langchain_classic/llms/ollama.py
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import TYPE_CHECKING, Any
|
| 2 |
+
|
| 3 |
+
from langchain_classic._api import create_importer
|
| 4 |
+
|
| 5 |
+
if TYPE_CHECKING:
|
| 6 |
+
from langchain_community.llms import Ollama
|
| 7 |
+
|
| 8 |
+
# Create a way to dynamically look up deprecated imports.
|
| 9 |
+
# Used to consolidate logic for raising deprecation warnings and
|
| 10 |
+
# handling optional imports.
|
| 11 |
+
DEPRECATED_LOOKUP = {"Ollama": "langchain_community.llms"}
|
| 12 |
+
|
| 13 |
+
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
def __getattr__(name: str) -> Any:
|
| 17 |
+
"""Look up attributes dynamically."""
|
| 18 |
+
return _import_attribute(name)
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
__all__ = [
|
| 22 |
+
"Ollama",
|
| 23 |
+
]
|
western_ai/usa/langchain/libs/langchain/langchain_classic/llms/opaqueprompts.py
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import TYPE_CHECKING, Any
|
| 2 |
+
|
| 3 |
+
from langchain_classic._api import create_importer
|
| 4 |
+
|
| 5 |
+
if TYPE_CHECKING:
|
| 6 |
+
from langchain_community.llms import OpaquePrompts
|
| 7 |
+
|
| 8 |
+
# Create a way to dynamically look up deprecated imports.
|
| 9 |
+
# Used to consolidate logic for raising deprecation warnings and
|
| 10 |
+
# handling optional imports.
|
| 11 |
+
DEPRECATED_LOOKUP = {"OpaquePrompts": "langchain_community.llms"}
|
| 12 |
+
|
| 13 |
+
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
def __getattr__(name: str) -> Any:
|
| 17 |
+
"""Look up attributes dynamically."""
|
| 18 |
+
return _import_attribute(name)
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
__all__ = [
|
| 22 |
+
"OpaquePrompts",
|
| 23 |
+
]
|
western_ai/usa/langchain/libs/langchain/langchain_classic/llms/openai.py
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import TYPE_CHECKING, Any
|
| 2 |
+
|
| 3 |
+
from langchain_classic._api import create_importer
|
| 4 |
+
|
| 5 |
+
if TYPE_CHECKING:
|
| 6 |
+
from langchain_community.llms import AzureOpenAI, OpenAI, OpenAIChat
|
| 7 |
+
from langchain_community.llms.openai import BaseOpenAI
|
| 8 |
+
|
| 9 |
+
# Create a way to dynamically look up deprecated imports.
|
| 10 |
+
# Used to consolidate logic for raising deprecation warnings and
|
| 11 |
+
# handling optional imports.
|
| 12 |
+
DEPRECATED_LOOKUP = {
|
| 13 |
+
"BaseOpenAI": "langchain_community.llms.openai",
|
| 14 |
+
"OpenAI": "langchain_community.llms",
|
| 15 |
+
"AzureOpenAI": "langchain_community.llms",
|
| 16 |
+
"OpenAIChat": "langchain_community.llms",
|
| 17 |
+
}
|
| 18 |
+
|
| 19 |
+
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
|
| 20 |
+
|
| 21 |
+
|
| 22 |
+
def __getattr__(name: str) -> Any:
|
| 23 |
+
"""Look up attributes dynamically."""
|
| 24 |
+
return _import_attribute(name)
|
| 25 |
+
|
| 26 |
+
|
| 27 |
+
__all__ = [
|
| 28 |
+
"AzureOpenAI",
|
| 29 |
+
"BaseOpenAI",
|
| 30 |
+
"OpenAI",
|
| 31 |
+
"OpenAIChat",
|
| 32 |
+
]
|
western_ai/usa/langchain/libs/langchain/langchain_classic/llms/openllm.py
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import TYPE_CHECKING, Any
|
| 2 |
+
|
| 3 |
+
from langchain_classic._api import create_importer
|
| 4 |
+
|
| 5 |
+
if TYPE_CHECKING:
|
| 6 |
+
from langchain_community.llms import OpenLLM
|
| 7 |
+
|
| 8 |
+
# Create a way to dynamically look up deprecated imports.
|
| 9 |
+
# Used to consolidate logic for raising deprecation warnings and
|
| 10 |
+
# handling optional imports.
|
| 11 |
+
DEPRECATED_LOOKUP = {"OpenLLM": "langchain_community.llms"}
|
| 12 |
+
|
| 13 |
+
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
def __getattr__(name: str) -> Any:
|
| 17 |
+
"""Look up attributes dynamically."""
|
| 18 |
+
return _import_attribute(name)
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
__all__ = [
|
| 22 |
+
"OpenLLM",
|
| 23 |
+
]
|
western_ai/usa/langchain/libs/langchain/langchain_classic/llms/openlm.py
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import TYPE_CHECKING, Any
|
| 2 |
+
|
| 3 |
+
from langchain_classic._api import create_importer
|
| 4 |
+
|
| 5 |
+
if TYPE_CHECKING:
|
| 6 |
+
from langchain_community.llms import OpenLM
|
| 7 |
+
|
| 8 |
+
# Create a way to dynamically look up deprecated imports.
|
| 9 |
+
# Used to consolidate logic for raising deprecation warnings and
|
| 10 |
+
# handling optional imports.
|
| 11 |
+
DEPRECATED_LOOKUP = {"OpenLM": "langchain_community.llms"}
|
| 12 |
+
|
| 13 |
+
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
def __getattr__(name: str) -> Any:
|
| 17 |
+
"""Look up attributes dynamically."""
|
| 18 |
+
return _import_attribute(name)
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
__all__ = [
|
| 22 |
+
"OpenLM",
|
| 23 |
+
]
|
western_ai/usa/langchain/libs/langchain/langchain_classic/llms/pai_eas_endpoint.py
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import TYPE_CHECKING, Any
|
| 2 |
+
|
| 3 |
+
from langchain_classic._api import create_importer
|
| 4 |
+
|
| 5 |
+
if TYPE_CHECKING:
|
| 6 |
+
from langchain_community.llms import PaiEasEndpoint
|
| 7 |
+
|
| 8 |
+
# Create a way to dynamically look up deprecated imports.
|
| 9 |
+
# Used to consolidate logic for raising deprecation warnings and
|
| 10 |
+
# handling optional imports.
|
| 11 |
+
DEPRECATED_LOOKUP = {"PaiEasEndpoint": "langchain_community.llms"}
|
| 12 |
+
|
| 13 |
+
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
def __getattr__(name: str) -> Any:
|
| 17 |
+
"""Look up attributes dynamically."""
|
| 18 |
+
return _import_attribute(name)
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
__all__ = [
|
| 22 |
+
"PaiEasEndpoint",
|
| 23 |
+
]
|
western_ai/usa/langchain/libs/langchain/langchain_classic/llms/petals.py
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import TYPE_CHECKING, Any
|
| 2 |
+
|
| 3 |
+
from langchain_classic._api import create_importer
|
| 4 |
+
|
| 5 |
+
if TYPE_CHECKING:
|
| 6 |
+
from langchain_community.llms import Petals
|
| 7 |
+
|
| 8 |
+
# Create a way to dynamically look up deprecated imports.
|
| 9 |
+
# Used to consolidate logic for raising deprecation warnings and
|
| 10 |
+
# handling optional imports.
|
| 11 |
+
DEPRECATED_LOOKUP = {"Petals": "langchain_community.llms"}
|
| 12 |
+
|
| 13 |
+
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
def __getattr__(name: str) -> Any:
|
| 17 |
+
"""Look up attributes dynamically."""
|
| 18 |
+
return _import_attribute(name)
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
__all__ = [
|
| 22 |
+
"Petals",
|
| 23 |
+
]
|
western_ai/usa/langchain/libs/langchain/langchain_classic/llms/pipelineai.py
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import TYPE_CHECKING, Any
|
| 2 |
+
|
| 3 |
+
from langchain_classic._api import create_importer
|
| 4 |
+
|
| 5 |
+
if TYPE_CHECKING:
|
| 6 |
+
from langchain_community.llms import PipelineAI
|
| 7 |
+
|
| 8 |
+
# Create a way to dynamically look up deprecated imports.
|
| 9 |
+
# Used to consolidate logic for raising deprecation warnings and
|
| 10 |
+
# handling optional imports.
|
| 11 |
+
DEPRECATED_LOOKUP = {"PipelineAI": "langchain_community.llms"}
|
| 12 |
+
|
| 13 |
+
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
def __getattr__(name: str) -> Any:
|
| 17 |
+
"""Look up attributes dynamically."""
|
| 18 |
+
return _import_attribute(name)
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
__all__ = [
|
| 22 |
+
"PipelineAI",
|
| 23 |
+
]
|
western_ai/usa/langchain/libs/langchain/langchain_classic/llms/predibase.py
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import TYPE_CHECKING, Any
|
| 2 |
+
|
| 3 |
+
from langchain_classic._api import create_importer
|
| 4 |
+
|
| 5 |
+
if TYPE_CHECKING:
|
| 6 |
+
from langchain_community.llms import Predibase
|
| 7 |
+
|
| 8 |
+
# Create a way to dynamically look up deprecated imports.
|
| 9 |
+
# Used to consolidate logic for raising deprecation warnings and
|
| 10 |
+
# handling optional imports.
|
| 11 |
+
DEPRECATED_LOOKUP = {"Predibase": "langchain_community.llms"}
|
| 12 |
+
|
| 13 |
+
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
def __getattr__(name: str) -> Any:
|
| 17 |
+
"""Look up attributes dynamically."""
|
| 18 |
+
return _import_attribute(name)
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
__all__ = [
|
| 22 |
+
"Predibase",
|
| 23 |
+
]
|
western_ai/usa/langchain/libs/langchain/langchain_classic/llms/predictionguard.py
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import TYPE_CHECKING, Any
|
| 2 |
+
|
| 3 |
+
from langchain_classic._api import create_importer
|
| 4 |
+
|
| 5 |
+
if TYPE_CHECKING:
|
| 6 |
+
from langchain_community.llms import PredictionGuard
|
| 7 |
+
|
| 8 |
+
# Create a way to dynamically look up deprecated imports.
|
| 9 |
+
# Used to consolidate logic for raising deprecation warnings and
|
| 10 |
+
# handling optional imports.
|
| 11 |
+
DEPRECATED_LOOKUP = {"PredictionGuard": "langchain_community.llms"}
|
| 12 |
+
|
| 13 |
+
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
def __getattr__(name: str) -> Any:
|
| 17 |
+
"""Look up attributes dynamically."""
|
| 18 |
+
return _import_attribute(name)
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
__all__ = [
|
| 22 |
+
"PredictionGuard",
|
| 23 |
+
]
|
western_ai/usa/langchain/libs/langchain/langchain_classic/llms/promptlayer_openai.py
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import TYPE_CHECKING, Any
|
| 2 |
+
|
| 3 |
+
from langchain_classic._api import create_importer
|
| 4 |
+
|
| 5 |
+
if TYPE_CHECKING:
|
| 6 |
+
from langchain_community.llms import PromptLayerOpenAI, PromptLayerOpenAIChat
|
| 7 |
+
|
| 8 |
+
# Create a way to dynamically look up deprecated imports.
|
| 9 |
+
# Used to consolidate logic for raising deprecation warnings and
|
| 10 |
+
# handling optional imports.
|
| 11 |
+
DEPRECATED_LOOKUP = {
|
| 12 |
+
"PromptLayerOpenAI": "langchain_community.llms",
|
| 13 |
+
"PromptLayerOpenAIChat": "langchain_community.llms",
|
| 14 |
+
}
|
| 15 |
+
|
| 16 |
+
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+
def __getattr__(name: str) -> Any:
|
| 20 |
+
"""Look up attributes dynamically."""
|
| 21 |
+
return _import_attribute(name)
|
| 22 |
+
|
| 23 |
+
|
| 24 |
+
__all__ = [
|
| 25 |
+
"PromptLayerOpenAI",
|
| 26 |
+
"PromptLayerOpenAIChat",
|
| 27 |
+
]
|
western_ai/usa/langchain/libs/langchain/langchain_classic/llms/replicate.py
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import TYPE_CHECKING, Any
|
| 2 |
+
|
| 3 |
+
from langchain_classic._api import create_importer
|
| 4 |
+
|
| 5 |
+
if TYPE_CHECKING:
|
| 6 |
+
from langchain_community.llms import Replicate
|
| 7 |
+
|
| 8 |
+
# Create a way to dynamically look up deprecated imports.
|
| 9 |
+
# Used to consolidate logic for raising deprecation warnings and
|
| 10 |
+
# handling optional imports.
|
| 11 |
+
DEPRECATED_LOOKUP = {"Replicate": "langchain_community.llms"}
|
| 12 |
+
|
| 13 |
+
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
def __getattr__(name: str) -> Any:
|
| 17 |
+
"""Look up attributes dynamically."""
|
| 18 |
+
return _import_attribute(name)
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
__all__ = [
|
| 22 |
+
"Replicate",
|
| 23 |
+
]
|
western_ai/usa/langchain/libs/langchain/langchain_classic/llms/rwkv.py
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import TYPE_CHECKING, Any
|
| 2 |
+
|
| 3 |
+
from langchain_classic._api import create_importer
|
| 4 |
+
|
| 5 |
+
if TYPE_CHECKING:
|
| 6 |
+
from langchain_community.llms import RWKV
|
| 7 |
+
|
| 8 |
+
# Create a way to dynamically look up deprecated imports.
|
| 9 |
+
# Used to consolidate logic for raising deprecation warnings and
|
| 10 |
+
# handling optional imports.
|
| 11 |
+
DEPRECATED_LOOKUP = {"RWKV": "langchain_community.llms"}
|
| 12 |
+
|
| 13 |
+
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
def __getattr__(name: str) -> Any:
|
| 17 |
+
"""Look up attributes dynamically."""
|
| 18 |
+
return _import_attribute(name)
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
__all__ = [
|
| 22 |
+
"RWKV",
|
| 23 |
+
]
|
western_ai/usa/langchain/libs/langchain/langchain_classic/llms/sagemaker_endpoint.py
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import TYPE_CHECKING, Any
|
| 2 |
+
|
| 3 |
+
from langchain_classic._api import create_importer
|
| 4 |
+
|
| 5 |
+
if TYPE_CHECKING:
|
| 6 |
+
from langchain_community.llms import SagemakerEndpoint
|
| 7 |
+
from langchain_community.llms.sagemaker_endpoint import LLMContentHandler
|
| 8 |
+
|
| 9 |
+
# Create a way to dynamically look up deprecated imports.
|
| 10 |
+
# Used to consolidate logic for raising deprecation warnings and
|
| 11 |
+
# handling optional imports.
|
| 12 |
+
DEPRECATED_LOOKUP = {
|
| 13 |
+
"SagemakerEndpoint": "langchain_community.llms",
|
| 14 |
+
"LLMContentHandler": "langchain_community.llms.sagemaker_endpoint",
|
| 15 |
+
}
|
| 16 |
+
|
| 17 |
+
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
|
| 18 |
+
|
| 19 |
+
|
| 20 |
+
def __getattr__(name: str) -> Any:
|
| 21 |
+
"""Look up attributes dynamically."""
|
| 22 |
+
return _import_attribute(name)
|
| 23 |
+
|
| 24 |
+
|
| 25 |
+
__all__ = [
|
| 26 |
+
"LLMContentHandler",
|
| 27 |
+
"SagemakerEndpoint",
|
| 28 |
+
]
|
western_ai/usa/langchain/libs/langchain/langchain_classic/llms/self_hosted.py
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import TYPE_CHECKING, Any
|
| 2 |
+
|
| 3 |
+
from langchain_classic._api import create_importer
|
| 4 |
+
|
| 5 |
+
if TYPE_CHECKING:
|
| 6 |
+
from langchain_community.llms import SelfHostedPipeline
|
| 7 |
+
|
| 8 |
+
# Create a way to dynamically look up deprecated imports.
|
| 9 |
+
# Used to consolidate logic for raising deprecation warnings and
|
| 10 |
+
# handling optional imports.
|
| 11 |
+
DEPRECATED_LOOKUP = {"SelfHostedPipeline": "langchain_community.llms"}
|
| 12 |
+
|
| 13 |
+
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
def __getattr__(name: str) -> Any:
|
| 17 |
+
"""Look up attributes dynamically."""
|
| 18 |
+
return _import_attribute(name)
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
__all__ = [
|
| 22 |
+
"SelfHostedPipeline",
|
| 23 |
+
]
|
western_ai/usa/langchain/libs/langchain/langchain_classic/llms/self_hosted_hugging_face.py
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import TYPE_CHECKING, Any
|
| 2 |
+
|
| 3 |
+
from langchain_classic._api import create_importer
|
| 4 |
+
|
| 5 |
+
if TYPE_CHECKING:
|
| 6 |
+
from langchain_community.llms import SelfHostedHuggingFaceLLM
|
| 7 |
+
|
| 8 |
+
# Create a way to dynamically look up deprecated imports.
|
| 9 |
+
# Used to consolidate logic for raising deprecation warnings and
|
| 10 |
+
# handling optional imports.
|
| 11 |
+
DEPRECATED_LOOKUP = {"SelfHostedHuggingFaceLLM": "langchain_community.llms"}
|
| 12 |
+
|
| 13 |
+
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
def __getattr__(name: str) -> Any:
|
| 17 |
+
"""Look up attributes dynamically."""
|
| 18 |
+
return _import_attribute(name)
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
__all__ = [
|
| 22 |
+
"SelfHostedHuggingFaceLLM",
|
| 23 |
+
]
|
western_ai/usa/langchain/libs/langchain/langchain_classic/llms/stochasticai.py
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import TYPE_CHECKING, Any
|
| 2 |
+
|
| 3 |
+
from langchain_classic._api import create_importer
|
| 4 |
+
|
| 5 |
+
if TYPE_CHECKING:
|
| 6 |
+
from langchain_community.llms import StochasticAI
|
| 7 |
+
|
| 8 |
+
# Create a way to dynamically look up deprecated imports.
|
| 9 |
+
# Used to consolidate logic for raising deprecation warnings and
|
| 10 |
+
# handling optional imports.
|
| 11 |
+
DEPRECATED_LOOKUP = {"StochasticAI": "langchain_community.llms"}
|
| 12 |
+
|
| 13 |
+
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
def __getattr__(name: str) -> Any:
|
| 17 |
+
"""Look up attributes dynamically."""
|
| 18 |
+
return _import_attribute(name)
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
__all__ = [
|
| 22 |
+
"StochasticAI",
|
| 23 |
+
]
|
western_ai/usa/langchain/libs/langchain/langchain_classic/llms/symblai_nebula.py
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import TYPE_CHECKING, Any
|
| 2 |
+
|
| 3 |
+
from langchain_classic._api import create_importer
|
| 4 |
+
|
| 5 |
+
if TYPE_CHECKING:
|
| 6 |
+
from langchain_community.llms import Nebula
|
| 7 |
+
|
| 8 |
+
# Create a way to dynamically look up deprecated imports.
|
| 9 |
+
# Used to consolidate logic for raising deprecation warnings and
|
| 10 |
+
# handling optional imports.
|
| 11 |
+
DEPRECATED_LOOKUP = {"Nebula": "langchain_community.llms"}
|
| 12 |
+
|
| 13 |
+
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
def __getattr__(name: str) -> Any:
|
| 17 |
+
"""Look up attributes dynamically."""
|
| 18 |
+
return _import_attribute(name)
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
__all__ = [
|
| 22 |
+
"Nebula",
|
| 23 |
+
]
|
western_ai/usa/langchain/libs/langchain/langchain_classic/llms/textgen.py
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import TYPE_CHECKING, Any
|
| 2 |
+
|
| 3 |
+
from langchain_classic._api import create_importer
|
| 4 |
+
|
| 5 |
+
if TYPE_CHECKING:
|
| 6 |
+
from langchain_community.llms import TextGen
|
| 7 |
+
|
| 8 |
+
# Create a way to dynamically look up deprecated imports.
|
| 9 |
+
# Used to consolidate logic for raising deprecation warnings and
|
| 10 |
+
# handling optional imports.
|
| 11 |
+
DEPRECATED_LOOKUP = {"TextGen": "langchain_community.llms"}
|
| 12 |
+
|
| 13 |
+
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
def __getattr__(name: str) -> Any:
|
| 17 |
+
"""Look up attributes dynamically."""
|
| 18 |
+
return _import_attribute(name)
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
__all__ = [
|
| 22 |
+
"TextGen",
|
| 23 |
+
]
|
western_ai/usa/langchain/libs/langchain/langchain_classic/llms/titan_takeoff.py
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import TYPE_CHECKING, Any
|
| 2 |
+
|
| 3 |
+
from langchain_classic._api import create_importer
|
| 4 |
+
|
| 5 |
+
if TYPE_CHECKING:
|
| 6 |
+
from langchain_community.llms import TitanTakeoff
|
| 7 |
+
|
| 8 |
+
# Create a way to dynamically look up deprecated imports.
|
| 9 |
+
# Used to consolidate logic for raising deprecation warnings and
|
| 10 |
+
# handling optional imports.
|
| 11 |
+
DEPRECATED_LOOKUP = {"TitanTakeoff": "langchain_community.llms"}
|
| 12 |
+
|
| 13 |
+
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
def __getattr__(name: str) -> Any:
|
| 17 |
+
"""Look up attributes dynamically."""
|
| 18 |
+
return _import_attribute(name)
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
__all__ = [
|
| 22 |
+
"TitanTakeoff",
|
| 23 |
+
]
|
western_ai/usa/langchain/libs/langchain/langchain_classic/llms/titan_takeoff_pro.py
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import TYPE_CHECKING, Any
|
| 2 |
+
|
| 3 |
+
from langchain_classic._api import create_importer
|
| 4 |
+
|
| 5 |
+
if TYPE_CHECKING:
|
| 6 |
+
from langchain_community.llms import TitanTakeoffPro
|
| 7 |
+
|
| 8 |
+
# Create a way to dynamically look up deprecated imports.
|
| 9 |
+
# Used to consolidate logic for raising deprecation warnings and
|
| 10 |
+
# handling optional imports.
|
| 11 |
+
DEPRECATED_LOOKUP = {"TitanTakeoffPro": "langchain_community.llms"}
|
| 12 |
+
|
| 13 |
+
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
def __getattr__(name: str) -> Any:
|
| 17 |
+
"""Look up attributes dynamically."""
|
| 18 |
+
return _import_attribute(name)
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
__all__ = [
|
| 22 |
+
"TitanTakeoffPro",
|
| 23 |
+
]
|
western_ai/usa/langchain/libs/langchain/langchain_classic/llms/together.py
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import TYPE_CHECKING, Any
|
| 2 |
+
|
| 3 |
+
from langchain_classic._api import create_importer
|
| 4 |
+
|
| 5 |
+
if TYPE_CHECKING:
|
| 6 |
+
from langchain_community.llms import Together
|
| 7 |
+
|
| 8 |
+
# Create a way to dynamically look up deprecated imports.
|
| 9 |
+
# Used to consolidate logic for raising deprecation warnings and
|
| 10 |
+
# handling optional imports.
|
| 11 |
+
DEPRECATED_LOOKUP = {"Together": "langchain_community.llms"}
|
| 12 |
+
|
| 13 |
+
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
def __getattr__(name: str) -> Any:
|
| 17 |
+
"""Look up attributes dynamically."""
|
| 18 |
+
return _import_attribute(name)
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
__all__ = [
|
| 22 |
+
"Together",
|
| 23 |
+
]
|
western_ai/usa/langchain/libs/langchain/langchain_classic/llms/tongyi.py
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import TYPE_CHECKING, Any
|
| 2 |
+
|
| 3 |
+
from langchain_classic._api import create_importer
|
| 4 |
+
|
| 5 |
+
if TYPE_CHECKING:
|
| 6 |
+
from langchain_community.llms import Tongyi
|
| 7 |
+
|
| 8 |
+
# Create a way to dynamically look up deprecated imports.
|
| 9 |
+
# Used to consolidate logic for raising deprecation warnings and
|
| 10 |
+
# handling optional imports.
|
| 11 |
+
DEPRECATED_LOOKUP = {"Tongyi": "langchain_community.llms"}
|
| 12 |
+
|
| 13 |
+
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
def __getattr__(name: str) -> Any:
|
| 17 |
+
"""Look up attributes dynamically."""
|
| 18 |
+
return _import_attribute(name)
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
__all__ = [
|
| 22 |
+
"Tongyi",
|
| 23 |
+
]
|
western_ai/usa/langchain/libs/langchain/langchain_classic/llms/utils.py
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import TYPE_CHECKING, Any
|
| 2 |
+
|
| 3 |
+
from langchain_classic._api import create_importer
|
| 4 |
+
|
| 5 |
+
if TYPE_CHECKING:
|
| 6 |
+
from langchain_community.llms.utils import enforce_stop_tokens
|
| 7 |
+
|
| 8 |
+
# Create a way to dynamically look up deprecated imports.
|
| 9 |
+
# Used to consolidate logic for raising deprecation warnings and
|
| 10 |
+
# handling optional imports.
|
| 11 |
+
DEPRECATED_LOOKUP = {"enforce_stop_tokens": "langchain_community.llms.utils"}
|
| 12 |
+
|
| 13 |
+
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
def __getattr__(name: str) -> Any:
|
| 17 |
+
"""Look up attributes dynamically."""
|
| 18 |
+
return _import_attribute(name)
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
__all__ = [
|
| 22 |
+
"enforce_stop_tokens",
|
| 23 |
+
]
|
western_ai/usa/langchain/libs/langchain/langchain_classic/llms/vertexai.py
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import TYPE_CHECKING, Any
|
| 2 |
+
|
| 3 |
+
from langchain_classic._api import create_importer
|
| 4 |
+
|
| 5 |
+
if TYPE_CHECKING:
|
| 6 |
+
from langchain_community.llms import VertexAI, VertexAIModelGarden
|
| 7 |
+
|
| 8 |
+
# Create a way to dynamically look up deprecated imports.
|
| 9 |
+
# Used to consolidate logic for raising deprecation warnings and
|
| 10 |
+
# handling optional imports.
|
| 11 |
+
DEPRECATED_LOOKUP = {
|
| 12 |
+
"VertexAI": "langchain_community.llms",
|
| 13 |
+
"VertexAIModelGarden": "langchain_community.llms",
|
| 14 |
+
}
|
| 15 |
+
|
| 16 |
+
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+
def __getattr__(name: str) -> Any:
|
| 20 |
+
"""Look up attributes dynamically."""
|
| 21 |
+
return _import_attribute(name)
|
| 22 |
+
|
| 23 |
+
|
| 24 |
+
__all__ = [
|
| 25 |
+
"VertexAI",
|
| 26 |
+
"VertexAIModelGarden",
|
| 27 |
+
]
|
western_ai/usa/langchain/libs/langchain/langchain_classic/llms/vllm.py
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import TYPE_CHECKING, Any
|
| 2 |
+
|
| 3 |
+
from langchain_classic._api import create_importer
|
| 4 |
+
|
| 5 |
+
if TYPE_CHECKING:
|
| 6 |
+
from langchain_community.llms import VLLM, VLLMOpenAI
|
| 7 |
+
|
| 8 |
+
# Create a way to dynamically look up deprecated imports.
|
| 9 |
+
# Used to consolidate logic for raising deprecation warnings and
|
| 10 |
+
# handling optional imports.
|
| 11 |
+
DEPRECATED_LOOKUP = {
|
| 12 |
+
"VLLM": "langchain_community.llms",
|
| 13 |
+
"VLLMOpenAI": "langchain_community.llms",
|
| 14 |
+
}
|
| 15 |
+
|
| 16 |
+
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+
def __getattr__(name: str) -> Any:
|
| 20 |
+
"""Look up attributes dynamically."""
|
| 21 |
+
return _import_attribute(name)
|
| 22 |
+
|
| 23 |
+
|
| 24 |
+
__all__ = [
|
| 25 |
+
"VLLM",
|
| 26 |
+
"VLLMOpenAI",
|
| 27 |
+
]
|
western_ai/usa/langchain/libs/langchain/langchain_classic/llms/volcengine_maas.py
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import TYPE_CHECKING, Any
|
| 2 |
+
|
| 3 |
+
from langchain_classic._api import create_importer
|
| 4 |
+
|
| 5 |
+
if TYPE_CHECKING:
|
| 6 |
+
from langchain_community.llms import VolcEngineMaasLLM
|
| 7 |
+
from langchain_community.llms.volcengine_maas import VolcEngineMaasBase
|
| 8 |
+
|
| 9 |
+
# Create a way to dynamically look up deprecated imports.
|
| 10 |
+
# Used to consolidate logic for raising deprecation warnings and
|
| 11 |
+
# handling optional imports.
|
| 12 |
+
DEPRECATED_LOOKUP = {
|
| 13 |
+
"VolcEngineMaasBase": "langchain_community.llms.volcengine_maas",
|
| 14 |
+
"VolcEngineMaasLLM": "langchain_community.llms",
|
| 15 |
+
}
|
| 16 |
+
|
| 17 |
+
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
|
| 18 |
+
|
| 19 |
+
|
| 20 |
+
def __getattr__(name: str) -> Any:
|
| 21 |
+
"""Look up attributes dynamically."""
|
| 22 |
+
return _import_attribute(name)
|
| 23 |
+
|
| 24 |
+
|
| 25 |
+
__all__ = [
|
| 26 |
+
"VolcEngineMaasBase",
|
| 27 |
+
"VolcEngineMaasLLM",
|
| 28 |
+
]
|
western_ai/usa/langchain/libs/langchain/langchain_classic/llms/watsonxllm.py
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import TYPE_CHECKING, Any
|
| 2 |
+
|
| 3 |
+
from langchain_classic._api import create_importer
|
| 4 |
+
|
| 5 |
+
if TYPE_CHECKING:
|
| 6 |
+
from langchain_community.llms import WatsonxLLM
|
| 7 |
+
|
| 8 |
+
# Create a way to dynamically look up deprecated imports.
|
| 9 |
+
# Used to consolidate logic for raising deprecation warnings and
|
| 10 |
+
# handling optional imports.
|
| 11 |
+
DEPRECATED_LOOKUP = {"WatsonxLLM": "langchain_community.llms"}
|
| 12 |
+
|
| 13 |
+
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
def __getattr__(name: str) -> Any:
|
| 17 |
+
"""Look up attributes dynamically."""
|
| 18 |
+
return _import_attribute(name)
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
__all__ = [
|
| 22 |
+
"WatsonxLLM",
|
| 23 |
+
]
|
western_ai/usa/langchain/libs/langchain/langchain_classic/llms/writer.py
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import TYPE_CHECKING, Any
|
| 2 |
+
|
| 3 |
+
from langchain_classic._api import create_importer
|
| 4 |
+
|
| 5 |
+
if TYPE_CHECKING:
|
| 6 |
+
from langchain_community.llms import Writer
|
| 7 |
+
|
| 8 |
+
# Create a way to dynamically look up deprecated imports.
|
| 9 |
+
# Used to consolidate logic for raising deprecation warnings and
|
| 10 |
+
# handling optional imports.
|
| 11 |
+
DEPRECATED_LOOKUP = {"Writer": "langchain_community.llms"}
|
| 12 |
+
|
| 13 |
+
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
def __getattr__(name: str) -> Any:
|
| 17 |
+
"""Look up attributes dynamically."""
|
| 18 |
+
return _import_attribute(name)
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
__all__ = [
|
| 22 |
+
"Writer",
|
| 23 |
+
]
|
western_ai/usa/langchain/libs/langchain/langchain_classic/llms/xinference.py
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import TYPE_CHECKING, Any
|
| 2 |
+
|
| 3 |
+
from langchain_classic._api import create_importer
|
| 4 |
+
|
| 5 |
+
if TYPE_CHECKING:
|
| 6 |
+
from langchain_community.llms import Xinference
|
| 7 |
+
|
| 8 |
+
# Create a way to dynamically look up deprecated imports.
|
| 9 |
+
# Used to consolidate logic for raising deprecation warnings and
|
| 10 |
+
# handling optional imports.
|
| 11 |
+
DEPRECATED_LOOKUP = {"Xinference": "langchain_community.llms"}
|
| 12 |
+
|
| 13 |
+
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
def __getattr__(name: str) -> Any:
|
| 17 |
+
"""Look up attributes dynamically."""
|
| 18 |
+
return _import_attribute(name)
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
__all__ = [
|
| 22 |
+
"Xinference",
|
| 23 |
+
]
|
western_ai/usa/langchain/libs/langchain/langchain_classic/llms/yandex.py
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import TYPE_CHECKING, Any
|
| 2 |
+
|
| 3 |
+
from langchain_classic._api import create_importer
|
| 4 |
+
|
| 5 |
+
if TYPE_CHECKING:
|
| 6 |
+
from langchain_community.llms import YandexGPT
|
| 7 |
+
|
| 8 |
+
# Create a way to dynamically look up deprecated imports.
|
| 9 |
+
# Used to consolidate logic for raising deprecation warnings and
|
| 10 |
+
# handling optional imports.
|
| 11 |
+
DEPRECATED_LOOKUP = {"YandexGPT": "langchain_community.llms"}
|
| 12 |
+
|
| 13 |
+
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
def __getattr__(name: str) -> Any:
|
| 17 |
+
"""Look up attributes dynamically."""
|
| 18 |
+
return _import_attribute(name)
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
__all__ = [
|
| 22 |
+
"YandexGPT",
|
| 23 |
+
]
|
western_ai/usa/langchain/libs/langchain/langchain_classic/load/__init__.py
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Serialization and deserialization."""
|
| 2 |
+
|
| 3 |
+
from langchain_core.load.dump import dumpd, dumps
|
| 4 |
+
from langchain_core.load.load import load, loads
|
| 5 |
+
|
| 6 |
+
__all__ = [
|
| 7 |
+
"dumpd",
|
| 8 |
+
"dumps",
|
| 9 |
+
"load",
|
| 10 |
+
"loads",
|
| 11 |
+
]
|
western_ai/usa/langchain/libs/langchain/langchain_classic/load/dump.py
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from langchain_core.load.dump import default, dumpd, dumps
|
| 2 |
+
|
| 3 |
+
__all__ = ["default", "dumpd", "dumps"]
|
western_ai/usa/langchain/libs/langchain/langchain_classic/load/load.py
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from langchain_core.load.load import Reviver, load, loads
|
| 2 |
+
|
| 3 |
+
__all__ = ["Reviver", "load", "loads"]
|