Skip to main content

Facilitates interaction with API LLMs such as ChatGPT, Claude, and Gemini

Project description

API Chatbots

A Python library that simplifies interactions with various Large Language Model APIs including ChatGPT, Claude, and Gemini.

Usage

Managing Conversation Context

The library maintains conversation history automatically. Each interaction is stored in the context:

chatbot = ChatGPT(api_key="your_api_key")
chatbot.add_user_message("Hello, how are you?")
chatbot.respond()
print(chatbot.get_latest_message())

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

api_chatbots-0.1.1.tar.gz (2.0 kB view details)

Uploaded Source

Built Distribution

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

api_chatbots-0.1.1-py3-none-any.whl (2.0 kB view details)

Uploaded Python 3

File details

Details for the file api_chatbots-0.1.1.tar.gz.

File metadata

  • Download URL: api_chatbots-0.1.1.tar.gz
  • Upload date:
  • Size: 2.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.0

File hashes

Hashes for api_chatbots-0.1.1.tar.gz
Algorithm Hash digest
SHA256 03e24696a278b6118c1439e68543e31234812cc44d9f56b31089cfd3377ab315
MD5 27ee041fb5140db6a1c31668f97aca11
BLAKE2b-256 845e9a42afc69fc8da6407d69e9e7432efe8358673a59a7f09cd28efa3ea47e2

See more details on using hashes here.

File details

Details for the file api_chatbots-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: api_chatbots-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 2.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.0

File hashes

Hashes for api_chatbots-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 75175f6097147368919031aadb765899a3fe84aae1fbebb6b44de0dfa6340848
MD5 3e246aa5f92fdfb35ec656dee3862a67
BLAKE2b-256 20cefcabd0af408bb1fb3851495f9755523ad73deddf7f119974db0dfeaf3bef

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