Skip to main content

A framework of LLM chat clients for mediq applications.

Project description

med-chat

A framework of LLM chat clients for mediq applications.

Install

pip install med-chat

Usage

from med_chat import Message, ChatClient

chat_client = ChatClient.use("chatgpt")
response = chat_client.complete_chat(
  messages = [
    Message(role="user", content="What is the capital of the United States?"),
  ],
  model="gpt-3.5-turbo"
)
print(response)

See more examples under tests directory.

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

med_chat-0.1.0.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

med_chat-0.1.0-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: med_chat-0.1.0.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.9

File hashes

Hashes for med_chat-0.1.0.tar.gz
Algorithm Hash digest
SHA256 435e41e84df57e86a98cfa90e1588a9fb25840d33697b6276a7128da8356486c
MD5 1bc3c6ba90bdf5ee860a7569cc6ecf56
BLAKE2b-256 b702b5e621b80a7992da7be6cbc08be12ed40e502774bea00479d77c59834f3a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: med_chat-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.9

File hashes

Hashes for med_chat-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3e9d4451cf8a3b6b7325a4699a64c1821da39054d54a4d59b93a5e733ebe2e04
MD5 47fe79ced0eb78644c026db42de7d9ed
BLAKE2b-256 b619e553b8a9ab51ae919127cac90dc761ab5d4e92014e8651d9d62a75f49ca7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page