Skip to content

SmartMediQ/med-chat

Repository files navigation

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)

Set environment variable OPENAI_API_KEY before calling ChatClient.use("chatgpt").

See more examples under tests directory.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published