Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

versacorellmchatapi-0.1.3.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

versacorellmchatapi-0.1.3-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file versacorellmchatapi-0.1.3.tar.gz.

File metadata

  • Download URL: versacorellmchatapi-0.1.3.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.11.9

File hashes

Hashes for versacorellmchatapi-0.1.3.tar.gz
Algorithm Hash digest
SHA256 c08dc9c36766a36b97872439b412451427bd95c845b4c56be264abeeb4e17cee
MD5 05db6c4c21f195a4dbe200256e021df1
BLAKE2b-256 79f4ca94ad0721aa129908fd29fc2841eccf80dbb29f1d469f40810a2a0830e7

See more details on using hashes here.

File details

Details for the file versacorellmchatapi-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for versacorellmchatapi-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 fecbca699288262d7de5d4fdc5cfbe39ceefa404dc60229372490782f793ed16
MD5 261d3fe53d2d3c82c2dc8fc3dd40d332
BLAKE2b-256 fb064655a31137bea9a2e2bf2f5e7430f3390f9632a69e3f0b2066bc04829f15

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page