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

Uploaded Python 3

File details

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

File metadata

  • Download URL: myllm-4.8.24.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.24.tar.gz
Algorithm Hash digest
SHA256 fe557ba0590c46b4b5ac3dd693b3b8e18d5c781d4ba58160830c945dc2997f46
MD5 bbcbd4bfa10516d283df96769a77edcf
BLAKE2b-256 dda3f4860b4a57691008ce602cafc914f8674bf168fa1a8ea4b4f6e97a0ed7bc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: myllm-4.8.24-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.24-py3-none-any.whl
Algorithm Hash digest
SHA256 9820b853c061edcac30450c1edc17bf975bef1fbc199f9631b041b368e2342fa
MD5 9daf300eb89790ed9878dd3dc393cdb5
BLAKE2b-256 32fd556813321b1597f0c1dec8b984202a49f972429c5f39e85839e2cfbb2301

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