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.54.tar.gz (12.0 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.13.54-py3-none-any.whl (13.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: myllm-4.13.54.tar.gz
  • Upload date:
  • Size: 12.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for myllm-4.13.54.tar.gz
Algorithm Hash digest
SHA256 e02778d94bd1d5b39fdcff52ff51b50d470cac076aecf437a36d8b35b8e4bfa7
MD5 2e46fed3385ed6798cc05f2e87a3ad7d
BLAKE2b-256 10c61c72a56e390b8cf129d21c54bb7355d816469ca5c32481e3e82001e4761b

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for myllm-4.13.54-py3-none-any.whl
Algorithm Hash digest
SHA256 9b4cdc235b512c83e87cb03c05007201c0930194e00c43c301415fb884d5ca37
MD5 f3dddcad9e9e9b59fbd0cfe4023b7741
BLAKE2b-256 b70aa21b0f45ed83f04b8066a807ab1e09e742a6783a9a0158ed00977ff53815

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