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.1.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

versacorellmchatapi-0.1.1-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: versacorellmchatapi-0.1.1.tar.gz
  • Upload date:
  • Size: 2.7 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.1.tar.gz
Algorithm Hash digest
SHA256 6e6ba3469ba09191c88f2580c4cf48ffc9c99233603d5325c6fe2ee350379236
MD5 28a2cbb3730cdff63426a9b4f2e49cc2
BLAKE2b-256 f0be1f02d9ecd73d2a48aac106c8447f724687e9f4c6ddd59e3fc862bdfe147a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for versacorellmchatapi-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c26deb17bca246aca083b0835a88c069cb7e5f587af49c63d5df130a07a48d96
MD5 a9a7a640370835e5fd14a6b7a3ae1296
BLAKE2b-256 3fa800e47a7563a1863899ed815a7586cfe4f80e5755c95136ac952821fc19f8

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