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.7.1.tar.gz
(11.1 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.7.1-py3-none-any.whl
(12.3 kB
view details)
File details
Details for the file myllm-4.7.1.tar.gz.
File metadata
- Download URL: myllm-4.7.1.tar.gz
- Upload date:
- Size: 11.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fc0eed8ee85d37acc5b55bbc8f12f8d0adca3f52ecd3bfa20be1e2dbbe26e590
|
|
| MD5 |
4851f534b4de5c5675abcd3a03c16ed7
|
|
| BLAKE2b-256 |
546a2126e7837510b73cf6c34351778b0f53d52ba2b1991900fd36c90d15639f
|
File details
Details for the file myllm-4.7.1-py3-none-any.whl.
File metadata
- Download URL: myllm-4.7.1-py3-none-any.whl
- Upload date:
- Size: 12.3 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 |
3f5792d40c22f0cf2bf8a55ec7d9c236350186ad869f71482ffea0dd419d0310
|
|
| MD5 |
7d346123ad0034d509e1fd17a88ac701
|
|
| BLAKE2b-256 |
11f35752bfe91cbdfcf710b6e90e1bc0615fa9e3ecbfd141e040cc73d11bbcdd
|