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.11.tar.gz
(12.3 kB
view details)
Built Distribution
myllm-4.13.11-py3-none-any.whl
(13.7 kB
view details)
File details
Details for the file myllm-4.13.11.tar.gz
.
File metadata
- Download URL: myllm-4.13.11.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 | 2547770ef77c193c2535cee5e3b1f6c7c27564c224bcf316d434172214a215a2 |
|
MD5 | bd91287b115da12f469d484521144e3e |
|
BLAKE2b-256 | 39bb7dd7a89591c0461106d6f3b4bdf9c87d82782432a82d5db90c19ab5a0142 |
File details
Details for the file myllm-4.13.11-py3-none-any.whl
.
File metadata
- Download URL: myllm-4.13.11-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 | 30f12a59a04422a17189702a8bfd663c34a6b2529b98f524bd40c5674cee91f2 |
|
MD5 | bf5a4a8cf183c1fadc640b260dd59d25 |
|
BLAKE2b-256 | f18c387dffac40ff280a42ee324499694358333b0c414d613dd18da0ab91d332 |