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

Uploaded Source

Built Distribution

versacorellmchatapi-0.1.7-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: versacorellmchatapi-0.1.7.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.7.tar.gz
Algorithm Hash digest
SHA256 73744a38442aa39437ae21c3a5b7fb24530afd8694dfb9526eee9b32b2486c7d
MD5 f3d47835deca719e6b5dd8b0c463266a
BLAKE2b-256 df28704fcba0e1d2d0b8aa59723b402ebb02f996815e8b77a3643381456fdf17

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for versacorellmchatapi-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 56bf597a77b6c70b3227f38fe703beb0d86385ff8cafadce1534383f24819716
MD5 117959f834bcd19b81eda1c1af2a0092
BLAKE2b-256 aa48c632e48a767931ee54bc1d0f801ef947943232e770accf48553ce70fa70a

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