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:

from api_chatbots import ChatGPT

# Initialize the chatbot with your API key
chatbot = ChatGPT(api_key="your_api_key")

# Add a user message to the conversation
chatbot.add_user_message("Hello, how are you?")

# Generate a response
chatbot.respond()

# Get the latest message
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.2.tar.gz (2.1 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.2-py3-none-any.whl (2.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: api_chatbots-0.1.2.tar.gz
  • Upload date:
  • Size: 2.1 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.2.tar.gz
Algorithm Hash digest
SHA256 cab31e01c92fd79bc517059e316136d929d00055fd460f32354e07e09d7fc658
MD5 2d2a778d3dded3e8d07a3dabecbc6081
BLAKE2b-256 9d807b60afc0b119e03631bf9754eebca5563664e7691c9fa52f7ee4d2cc021e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: api_chatbots-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4839f4d33df837c20c4ddade99ec4ca1e1e0443c59b31ca99afe09d562846358
MD5 9921e357a906a44c17ec7ef7736b8b29
BLAKE2b-256 115d6a39e27a25557a332f07af7b6a97aab2aea1d2ea7e55a71a9eebd7128aba

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