A python package to interact with llm model supported by g4f and langchain.
Project description
|
|
|
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.10.tar.gz
(12.3 kB
view details)
Built Distribution
myllm-4.13.10-py3-none-any.whl
(13.7 kB
view details)
File details
Details for the file myllm-4.13.10.tar.gz
.
File metadata
- Download URL: myllm-4.13.10.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca991f3eaf54850318be1dfbab91fe4f76eb424ef369a3b225d4b85e3d3c5bf1 |
|
MD5 | ed1e3dc2ba7b868382bf237ef7e9b154 |
|
BLAKE2b-256 | c29c751e86b625a337375bd28d665d53a0cdbcf1254e5d77170dde732a0e5f2f |
File details
Details for the file myllm-4.13.10-py3-none-any.whl
.
File metadata
- Download URL: myllm-4.13.10-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b2d609127a604cc86c971bd8907190808f46bac3baf39fc40d4bbae6174b209 |
|
MD5 | 825f9874403e561e28c4708697b3db2a |
|
BLAKE2b-256 | 7ee2265254f53d4d913358aeebafdfd1e546af1fe761ec060bdc2ea327bdb423 |