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())

Supported Models

  • ChatGPT
  • Claude

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.4.tar.gz (2.7 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.4-py3-none-any.whl (2.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: api_chatbots-0.1.4.tar.gz
  • Upload date:
  • Size: 2.7 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.4.tar.gz
Algorithm Hash digest
SHA256 df49f0ce79620fa0d0febbc37d9ac921749654e23f58923e2d71478c3d05766e
MD5 671cf1b0b6872f6ba5b6c70d9e59d021
BLAKE2b-256 52fb1009aec4b9e126e91561ea324c758950dfbbd25bcab40ebe4933934033e0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: api_chatbots-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 2.3 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 9e948f95978d8058308fb6d8d037010645cd1e8f79410c02c86f2b028edcda7e
MD5 acf689f98f0e2f80118f083fdebe41d8
BLAKE2b-256 9767c99dfd5eb5587b16bb0482a925d1e252803114b86a53a0f75515297f9528

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