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, temperature=0.7, max_tokens=50, stream=False)
print(response)

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

Uploaded Source

Built Distribution

versacorellmchatapi-0.1.0-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: versacorellmchatapi-0.1.0.tar.gz
  • Upload date:
  • Size: 2.6 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.0.tar.gz
Algorithm Hash digest
SHA256 94b468088fc065b89e7a256ffc6c7a1dd7a94d1ea1f833f6ef8a00ad3278956c
MD5 62c73668a24ab50b96bf5738ddbfef29
BLAKE2b-256 3402a9e16eebc5c2f9ea2f9f3a0dd8072c5e4ecf046e81c784004dab9d84661f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for versacorellmchatapi-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e5c7fd07422e6bdafc0ebaaf50d1718835375a99fe1a0e8859ed6279257db6b4
MD5 6fcc0709e4317634777cfd8e983d2111
BLAKE2b-256 df0be05f63b34fb86ed2853f0dc5297ca298f2f38b5f60f13f075b819207d340

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