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

Uploaded Source

Built Distribution

versacorellmchatapi-0.1.6-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: versacorellmchatapi-0.1.6.tar.gz
  • Upload date:
  • Size: 3.6 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.6.tar.gz
Algorithm Hash digest
SHA256 9e380c69cf9668d144af015ded7068ac72231dafc9ade1effbcdb90655c22c98
MD5 e32fdf6536adeac92c58327a407733d6
BLAKE2b-256 f82de547868163be93b1a8d257b3176c761cde14bc0f7d686b507473550cea8e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for versacorellmchatapi-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 221b991e00a3a360151205fcc7f30efb0386391a247fef0546aab1a05107e7da
MD5 124532c3451290c1f21d82185d954131
BLAKE2b-256 58a34c50aaad0823b6a1359f6383ab058ee510542b7d8e8b74e6603df1883169

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