Skip to main content

Синхронная библиотека для работы с ChatGPT с историей сессии

Project description

chatinpylib

Простая библиотека для работы с ChatGPT.

Установка

pip install cmatlib==0.1.0

Пример использования

from chatinpylib import Chat
chat = Chat(token="YourToken")
condition = True
while condition:
    user_request = input('Введите свой запрос:')
    print(chat.ask(user_request))
    choice = input('Вы хотите продолжить? y/n:')
    if choice == 'y':
        condition = True
    elif choice == 'n':
        condition = False

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

cmatlib-0.1.1.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.

cmatlib-0.1.1-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cmatlib-0.1.1.tar.gz
  • Upload date:
  • Size: 2.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for cmatlib-0.1.1.tar.gz
Algorithm Hash digest
SHA256 ab84e6d5a304f1b0245c1b275533b922acc10dc2604d0813497b68a8e7b10b50
MD5 37dcee4cc37acdfec7cdd02bbc1afca1
BLAKE2b-256 b8faf67125cee72a0787c7f802b89ad7598ef3ef97b992215ecbc8d9b27e39cd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cmatlib-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 2.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for cmatlib-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0a9f682c03cf779ec389963a4746a1bdc4cc0c3b792bd595ccac1517953dcdbb
MD5 c619d9de1140fb2fdfc30efc6e3b0eb7
BLAKE2b-256 af8741bc884ed13564f58f0e9baefd20264a8c3855d8219f1b4a1d0eb45303e9

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