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.8.20.tar.gz (11.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

myllm-4.8.20-py3-none-any.whl (12.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for myllm-4.8.20.tar.gz
Algorithm Hash digest
SHA256 13412bb47c3a1138ca5dc0ce5db5289f65550a523d50955290cc02ae24257b20
MD5 b5daddee6443d817b37948aa89f19945
BLAKE2b-256 d27c1d432bdb20aaa3b966c9bc8cc35cb2490f16cdd9fc86aa674a0042fae417

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for myllm-4.8.20-py3-none-any.whl
Algorithm Hash digest
SHA256 fbe9fe2c99cf62c41253c5528236bea8c663656b82da0aadf2d1b6cd6632064b
MD5 badcf5d6aa60847bc5d7b566cde8503a
BLAKE2b-256 61ca10aff8db515f4649568e4dcb93b12b3b6810a78d3fb2829a02e4fab75c5c

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