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.0.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.0-py3-none-any.whl (1.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: api_chatbots-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 41292c6c14689e169ee885cf6d5443ebda10c57cadda5056e157cd6bc32b9d0a
MD5 338664455408cde3d65e6bda43aef8f9
BLAKE2b-256 b73b2609745c57c81a41bf1981b456285c063ca8f618f647d64081945288466c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: api_chatbots-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 1.9 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 06f56f4b8dca7bed9d9c5a6eb1717855b1a7e1fa7e36234b618d0b8ce9672c1a
MD5 b91325f0aeb4ad40c3ba6e26774bddd0
BLAKE2b-256 308abac79d5d389244ae91f346e467c6557578b7387ae80a97165a87225f9dd6

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