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.4.1.tar.gz (10.4 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.4.1-py3-none-any.whl (11.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for myllm-4.4.1.tar.gz
Algorithm Hash digest
SHA256 91b11a8cc0863e69fcc0630e945962a1dedb8df79ebea1936a897b59feb192d1
MD5 42563b5e0b3c83de11a26672db5609dc
BLAKE2b-256 59620521184f004e0b9c0e4fff87d6e6791183368937dacc3acbd964537e4a46

See more details on using hashes here.

File details

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

File metadata

  • Download URL: myllm-4.4.1-py3-none-any.whl
  • Upload date:
  • Size: 11.8 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.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 73a35b59af041a4cb8851851659d27fa35e240f3411607cef594905ffc3a8f6b
MD5 79feb817c0dadbd0f9f38a40978162ab
BLAKE2b-256 dc37c1fe1301b9d01541ace563b8ec04221e00b72b06fd9d5f2a1c211f0d06ac

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