Skip to main content

A python package to interact with llm model supported by g4f and langchain.

Project description



Logo







Interact with LLM in simple way,
via G4F, OPENAI/LOCALAI
How to use it

    talky = MyLLM()
chat = await talky.chat("My name is Jack")
print(chat)
# 🐻 Hello Jack, this is Bing. I'm happy to help you with general tasks. 😊

chat = await talky.chat("tell me who is president of the united states?")
print(chat)
# The current president of the United States is **Joe Biden**[^1^][1] [^2^][2].
# He took office on **January 20, 2021**[^1^][1] [^2^][2].
# He is the **46th** president of the United States[^2^][2] [^3^][5].

chat = await talky.chat("what is my name")
print(chat)
# 🐻 You told me your name is Jack. Is that correct?

await talky.export_chat_history()
# talky.clear_chat_history()
Documentation

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

myllm-4.13.8.tar.gz (12.3 kB view details)

Uploaded Source

Built Distribution

myllm-4.13.8-py3-none-any.whl (13.7 kB view details)

Uploaded Python 3

File details

Details for the file myllm-4.13.8.tar.gz.

File metadata

  • Download URL: myllm-4.13.8.tar.gz
  • Upload date:
  • Size: 12.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.6

File hashes

Hashes for myllm-4.13.8.tar.gz
Algorithm Hash digest
SHA256 9ab0f795b3fb9edf8857b236e42b6fa8f6a9e8eaa1c006692744c4240d840271
MD5 b5058967ae8c0b269787f9f25535641a
BLAKE2b-256 05073da43ab8ee5b54401efd174bab0b9be4322c86281d6b1a9b1632829ebf4d

See more details on using hashes here.

File details

Details for the file myllm-4.13.8-py3-none-any.whl.

File metadata

  • Download URL: myllm-4.13.8-py3-none-any.whl
  • Upload date:
  • Size: 13.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.6

File hashes

Hashes for myllm-4.13.8-py3-none-any.whl
Algorithm Hash digest
SHA256 81d68477b01c3eadd3683f938b8920d8a21a48c23c9ed229dff5577d7b7d0483
MD5 2ce41f66e754ffc070370574343b8777
BLAKE2b-256 cb14ddf7c4d1e3f89e8426bb17d9af024e90893fd30de8a277822a352a46e431

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page