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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: versacorellmchatapi-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 c95ff704712e0c537862c47521c571cbbc9a2976640a6acc5b3f8ecc88b4358c
MD5 2e41c24d93411177f1cf8c2aedbe1527
BLAKE2b-256 ef03b5aa10f3e02c8de62852aa8cb3ba3bc085f20626561ba0b299dd44e3ecd6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for versacorellmchatapi-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1e83aff2213269b5e26db142b6f0aa8be53153c589e9c17ddad29f7da5008584
MD5 f642a330c12727ad2a33d3c5d7ca1c00
BLAKE2b-256 90bf1e4f98cfb7ed3126a93145196aad882b261cc5214d1de28de43f0ba73a64

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