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.4.3.tar.gz
(10.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
myllm-4.4.3-py3-none-any.whl
(11.9 kB
view details)
File details
Details for the file myllm-4.4.3.tar.gz.
File metadata
- Download URL: myllm-4.4.3.tar.gz
- Upload date:
- Size: 10.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
290d7b67deaeaa65ed04bc7f54626436b1138559ff87576c27dd6813a81e96f4
|
|
| MD5 |
4a208ba18a0a68068c12aa155a81b8f6
|
|
| BLAKE2b-256 |
46654a40355ee7e11e232931d09a00513e32a01068f4c160953d6e21d4d86a03
|
File details
Details for the file myllm-4.4.3-py3-none-any.whl.
File metadata
- Download URL: myllm-4.4.3-py3-none-any.whl
- Upload date:
- Size: 11.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3c5db96f577377b6b309aea4c6cadc79bf7451e1b7ffbf53715e12abe5162f1d
|
|
| MD5 |
7d30ec59bfbf5b96f565e0eacb62d030
|
|
| BLAKE2b-256 |
13fe828fb399a4bb4699164f85080b83a5b5d214330818dbefa2be8679c89cdf
|