├── .github └── workflows │ └── python-publish.yml ├── .gitignore ├── LICENSE ├── README.md ├── assets └── logo.png ├── chainlite ├── __init__.py ├── chain_log_handler.py ├── chat_lite_llm.py ├── llm_config.py ├── llm_generate.py ├── llm_output.py ├── load_prompt.py ├── redis_cache.py ├── threadsafe_dict.py └── utils.py ├── llm_config.yaml ├── pyproject.toml ├── setup.py ├── tasks ├── __init__.py └── main.py └── tests ├── constants.prompt ├── copy.prompt ├── joke.prompt ├── reasoning.prompt ├── structured.prompt ├── test.prompt ├── test_function_calling.py ├── test_llm_generate.py ├── test_llm_structured_output.py ├── test_logprobs.py └── tool.prompt /.github/workflows/python-publish.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanford-oval/chainlite/HEAD/.github/workflows/python-publish.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanford-oval/chainlite/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanford-oval/chainlite/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanford-oval/chainlite/HEAD/README.md -------------------------------------------------------------------------------- /assets/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanford-oval/chainlite/HEAD/assets/logo.png -------------------------------------------------------------------------------- /chainlite/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanford-oval/chainlite/HEAD/chainlite/__init__.py -------------------------------------------------------------------------------- /chainlite/chain_log_handler.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanford-oval/chainlite/HEAD/chainlite/chain_log_handler.py -------------------------------------------------------------------------------- /chainlite/chat_lite_llm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanford-oval/chainlite/HEAD/chainlite/chat_lite_llm.py -------------------------------------------------------------------------------- /chainlite/llm_config.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanford-oval/chainlite/HEAD/chainlite/llm_config.py -------------------------------------------------------------------------------- /chainlite/llm_generate.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanford-oval/chainlite/HEAD/chainlite/llm_generate.py -------------------------------------------------------------------------------- /chainlite/llm_output.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanford-oval/chainlite/HEAD/chainlite/llm_output.py -------------------------------------------------------------------------------- /chainlite/load_prompt.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanford-oval/chainlite/HEAD/chainlite/load_prompt.py -------------------------------------------------------------------------------- /chainlite/redis_cache.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanford-oval/chainlite/HEAD/chainlite/redis_cache.py -------------------------------------------------------------------------------- /chainlite/threadsafe_dict.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanford-oval/chainlite/HEAD/chainlite/threadsafe_dict.py -------------------------------------------------------------------------------- /chainlite/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanford-oval/chainlite/HEAD/chainlite/utils.py -------------------------------------------------------------------------------- /llm_config.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanford-oval/chainlite/HEAD/llm_config.yaml -------------------------------------------------------------------------------- /pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanford-oval/chainlite/HEAD/pyproject.toml -------------------------------------------------------------------------------- /setup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanford-oval/chainlite/HEAD/setup.py -------------------------------------------------------------------------------- /tasks/__init__.py: -------------------------------------------------------------------------------- 1 | from tasks.main import * 2 | -------------------------------------------------------------------------------- /tasks/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanford-oval/chainlite/HEAD/tasks/main.py -------------------------------------------------------------------------------- /tests/constants.prompt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanford-oval/chainlite/HEAD/tests/constants.prompt -------------------------------------------------------------------------------- /tests/copy.prompt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanford-oval/chainlite/HEAD/tests/copy.prompt -------------------------------------------------------------------------------- /tests/joke.prompt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanford-oval/chainlite/HEAD/tests/joke.prompt -------------------------------------------------------------------------------- /tests/reasoning.prompt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanford-oval/chainlite/HEAD/tests/reasoning.prompt -------------------------------------------------------------------------------- /tests/structured.prompt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanford-oval/chainlite/HEAD/tests/structured.prompt -------------------------------------------------------------------------------- /tests/test.prompt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanford-oval/chainlite/HEAD/tests/test.prompt -------------------------------------------------------------------------------- /tests/test_function_calling.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanford-oval/chainlite/HEAD/tests/test_function_calling.py -------------------------------------------------------------------------------- /tests/test_llm_generate.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanford-oval/chainlite/HEAD/tests/test_llm_generate.py -------------------------------------------------------------------------------- /tests/test_llm_structured_output.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanford-oval/chainlite/HEAD/tests/test_llm_structured_output.py -------------------------------------------------------------------------------- /tests/test_logprobs.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stanford-oval/chainlite/HEAD/tests/test_logprobs.py -------------------------------------------------------------------------------- /tests/tool.prompt: -------------------------------------------------------------------------------- 1 | # input 2 | {{ message }} --------------------------------------------------------------------------------