Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mraniki/myllm
A python package to interact with llm model
https://github.com/mraniki/myllm
ai chatbots chatgpt gpt llm localai talky
Last synced: 7 days ago
JSON representation
A python package to interact with llm model
- Host: GitHub
- URL: https://github.com/mraniki/myllm
- Owner: mraniki
- License: mit
- Created: 2023-08-05T09:09:53.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-09-21T14:12:16.000Z (12 days ago)
- Last Synced: 2024-09-22T12:06:33.703Z (11 days ago)
- Topics: ai, chatbots, chatgpt, gpt, llm, localai, talky
- Language: Python
- Homepage: https://talky.readthedocs.io
- Size: 1.59 MB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
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