A Python library for interacting with the VersaCore LLM Chat API.
Project description
VersaCoreLLMChatAPI
A Python library for interacting with VersaCore LLM Chat API.
Installation
pip install versacorellmchatapi
Usage
from versacorellmchatapi.api import VersaCoreLLMChatAPI
llm_api = VersaCoreLLMChatAPI("ollama")
messages = [
{"role": "user", "content": "why is the sky blue?"}
]
response = llm_api.chat_completions(messages, model="mistral", temperature=0.7, max_tokens=50, stream=False)
print(response['message']['content'])
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 versacorellmchatapi-0.1.4.tar.gz
.
File metadata
- Download URL: versacorellmchatapi-0.1.4.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fbb3a7aa994af396fe1bd4930e9ad55f607a86de3a8144583997f0f5eba8567a |
|
MD5 | c5070e134c55c8a3356e521f8c7ca9e9 |
|
BLAKE2b-256 | 7dce6ead60bc24670cdd4ca6e6d01300effbba63ed4ced5d46e7f3c8b0608e20 |
File details
Details for the file versacorellmchatapi-0.1.4-py3-none-any.whl
.
File metadata
- Download URL: versacorellmchatapi-0.1.4-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 27fd073ab2a6bdaa26c81212dfa7bb1e869aec288097125c5246bfebed455259 |
|
MD5 | 33a7257b1fe58af9940dc4df01f7198d |
|
BLAKE2b-256 | 157505d419027135ab28d9681b7b8f08ec5a6c80e98025d0623a4fd8d2476a53 |