LLMStudio core capabilities for routing llm calls for any vendor. No proxy server required. For that use llmstudio[proxy]
Project description
LLMstudio-core by TensorOps
Prompt Engineering at your fingertips
🌟 Features
- Custom and Local LLM Support: Use custom or local open-source LLMs through Ollama.
- Python SDK: Easily integrate LLMstudio into your existing workflows.
- LangChain Integration: LLMstudio integrates with your already existing LangChain projects.
🚀 Quickstart
Don't forget to check out https://docs.llmstudio.ai page.
Installation
Install the latest version of LLMstudio using pip
. We suggest that you create and activate a new environment using conda
pip install llmstudio-core
Create a .env
file at the same path you'll run LLMstudio
OPENAI_API_KEY="sk-api_key"
GOOGLE_API_KEY="sk-api_key"
Now you should be able to run LLMstudio Providers using the following code:
# You can set OPENAI_API_KEY environment variable, add it to .env, or pass directly as api_key
import os
from llmstudio_core.providers import LLMCore as LLM
llm = LLM("vertexai", api_key=os.environ["GOOGLE_API_KEY"])
response = llm.chat("How are you", model="gemini-1.5-pro-latest")
print(response.chat_output, response.metrics)
📖 Documentation
- Visit our docs to learn how the SDK works (coming soon)
- Checkout our notebook examples to follow along with interactive tutorials
👨💻 Contributing
- Head on to our Contribution Guide to see how you can help LLMstudio.
- Join our Discord to talk with other LLMstudio enthusiasts.
Training
Thank you for choosing LLMstudio. Your journey to perfecting AI interactions starts here.
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
Built Distribution
File details
Details for the file llmstudio_core-1.0.1.tar.gz
.
File metadata
- Download URL: llmstudio_core-1.0.1.tar.gz
- Upload date:
- Size: 16.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.4 CPython/3.12.7 Linux/6.5.0-1025-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 71306b52a1598ac88af614b26436fc123cbb2c700fc9475372f2ce319f604a4c |
|
MD5 | 82cba45da959c43aeca75a9574bcb0f2 |
|
BLAKE2b-256 | a4a08f2c85e4c9edbc3a39cebcc34b02de3b693436a631cb68e289da8494de65 |
File details
Details for the file llmstudio_core-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: llmstudio_core-1.0.1-py3-none-any.whl
- Upload date:
- Size: 20.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.4 CPython/3.12.7 Linux/6.5.0-1025-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 410869e1b7b1084dbe2474c534a7ffca3ea6067a44908e3e56ea9195a7452b7a |
|
MD5 | 176440c6483bddf01af1301f9f93c215 |
|
BLAKE2b-256 | 41a255414736a92ad1bb8367dcc25c7e49459d2711cc3c39882508babf5a31f0 |