A small example package
Project description
Lite LLM Client
This project made for very light llm client.
the main idea is do not use any llm client library
.
setup
How to pass API_KEY
- use parameter of LLMConfig
LiteLLMClient(OpenAIConfig(api_key="YOUR API KEY"))
- use .env
- rename
.env_example
to.env
- replace YOUR KEY to real api_key
- rename
OPENAI_API_KEY=YOUR KEY
ANTHROPIC_API_KEY=YOUR KEY
GEMINI_API_KEY=YOUR KEY
Known issue
- gemini path may not stable. guide code has
/v1beta/...
. sometimes gemini returns http 500 error
Roadmap
-
2024-07-21
support OpenAI -
2024-07-25
support Anthropic -
2024-07-27
add options for inference -
2024-07-28
support Gemini -
2024-07-30
support streaming (OpenAI). simple SSE implement. -
2024-07-31
support streaming (Anthropic). -
2024-08-01
support streaming (Gemini). unstable google gemini. - support multimodal (image and text)
Reference
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
lite_llm_client-0.1.0.tar.gz
(8.0 kB
view details)
Built Distribution
File details
Details for the file lite_llm_client-0.1.0.tar.gz
.
File metadata
- Download URL: lite_llm_client-0.1.0.tar.gz
- Upload date:
- Size: 8.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c9cd62e6d84a4db5f1b0d88c6daeae9d4d0919fd986fe9bfbb90e1cb85cbcd67 |
|
MD5 | 98b3f815ebfdfa33217daac0be94c606 |
|
BLAKE2b-256 | dd741c40fa0f6ef23f49fd09cc86653d26f5635c7fb25da15981c90570982937 |
File details
Details for the file lite_llm_client-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: lite_llm_client-0.1.0-py3-none-any.whl
- Upload date:
- Size: 9.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3a2e037f1b87de608a67d216132a1b4c39de81b8fc84e93302d3d6a57b2e261e |
|
MD5 | b348ba55ee41c054efa5bb1c3013095c |
|
BLAKE2b-256 | 8eb6edc20b832a5bbcb4851d1e8dd8db8bceb8ebc17e7e42652918b7b2679ee7 |