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

Uploaded Source

Built Distribution

versacorellmchatapi-0.1.5-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for versacorellmchatapi-0.1.5.tar.gz
Algorithm Hash digest
SHA256 275fa513ce5c7c1f2d46a899afc888a64f9ac146aa9cea5de52c63cf10037a36
MD5 1472a1d7f292658b65711ee7e9f47060
BLAKE2b-256 6d44e6f95fdebcf994e5ddeea3c4c18ace07d9372ee455296e0eae1568d4c818

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for versacorellmchatapi-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 7065dc1c084f5b65190d2953c672a1e9f59521850e801d1be9123c5740136519
MD5 87c00261d7058e1d601fb1ff2aa54434
BLAKE2b-256 4e5587940c295ae98a4b61c5c5aa62111eecaa4b2048dea78fa318bd014d35a0

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