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-0.0.1a2.tar.gz
.
File metadata
- Download URL: llmstudio_core-0.0.1a2.tar.gz
- Upload date:
- Size: 15.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.12.2 Darwin/23.1.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c7c10db754ab59e5310157084d035b75b88d231eddc0625d0095494f296939c8 |
|
MD5 | 8a899a7acc7a89b64499d0737cc189c8 |
|
BLAKE2b-256 | d3cde9b3a981fc154ff2af8c76d513ed9d9f51c073090db88e6777cc0fd16f4c |
File details
Details for the file llmstudio_core-0.0.1a2-py3-none-any.whl
.
File metadata
- Download URL: llmstudio_core-0.0.1a2-py3-none-any.whl
- Upload date:
- Size: 18.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.12.2 Darwin/23.1.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 37259774bf8c4f98890a3b293aba7aa22b5fb1943ce52dd183b41787b10bf38b |
|
MD5 | 56d3e1b4e7bc99eea3ede5806fbf477f |
|
BLAKE2b-256 | 4928ac8fbd7dbe90814518151a4f97b0d15efbd16ab5565a1211d10a5d0fd116 |