Metadata-Version: 2.4
Name: MyLLM
Version: 4.19.12
Summary: A python package to interact with llm model supported by g4f and langchain.
Author-email: mraniki <8766259+mraniki@users.noreply.github.com>
License-Expression: MIT
Project-URL: Homepage, https://github.com/mraniki/MyLLM
Project-URL: Changelog, https://github.com/mraniki/MyLLM/blob/dev/CHANGELOG.rst
Project-URL: Support, https://github.com/mraniki/MyLLM/discussions
Project-URL: Issues, https://github.com/mraniki/MyLLM/issues
Keywords: chatgpt,llm,ai,llama,ai,g4f,freegpt
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: fastapi>=0.95.2
Requires-Dist: uvicorn>=0.22.0
Requires-Dist: dynaconf>=3.2.0
Requires-Dist: loguru>=0.6.0
Requires-Dist: httpx>=0.24.1
Requires-Dist: g4f==0.5.3.1
Requires-Dist: js2py~=0.74
Requires-Dist: PyExecJS2==1.6.1
Requires-Dist: curl_cffi==0.11.1
Requires-Dist: Brotli==1.1.0
Requires-Dist: openai==1.82.0
Requires-Dist: groq==0.25.0
Requires-Dist: playwright==1.52.0
Provides-Extra: dev
Requires-Dist: python-semantic-release>=8.0.8; extra == "dev"
Requires-Dist: ruff~=0.11; extra == "dev"
Requires-Dist: pre-commit~=4.0; extra == "dev"
Provides-Extra: test
Requires-Dist: pytest~=8.0; extra == "test"
Requires-Dist: pytest-cov~=6.0; extra == "test"
Requires-Dist: pytest-asyncio~=0.26; extra == "test"
Requires-Dist: pytest-mock~=3.11; extra == "test"
Requires-Dist: pytest-loguru~=0.4; extra == "test"
Provides-Extra: docs
Requires-Dist: sphinx==7.4.7; extra == "docs"
Requires-Dist: pydata-sphinx-theme~=0.14; extra == "docs"
Requires-Dist: sphinx-hoverxref~=1.3; extra == "docs"
Requires-Dist: sphinx_copybutton==0.5.2; extra == "docs"
Requires-Dist: myst_parser~=4.0; extra == "docs"
Requires-Dist: sphinx_design~=0.6; extra == "docs"
Requires-Dist: linkify-it-py==2.0.3; extra == "docs"
Dynamic: license-file

<table style="border: 1px solid transparent">
  <tr>
    <td>
<a href="http://talky.readthedocs.io"><img src="https://img.shields.io/badge/Wiki-%23000000.svg?style=for-the-badge&logo=wikipedia&logoColor=white"></a>
<a href="https://github.com/mraniki/tt/"><img src="https://img.shields.io/badge/github-%23000000.svg?style=for-the-badge&logo=github&logoColor=white"></a><br>
<a href="https://hub.docker.com/r/mraniki/tt"><img src="https://img.shields.io/docker/pulls/mraniki/tt?style=for-the-badge"></a><br>
       </td>
    <td align="center"><img width="200" alt="Logo" src="/docs/_static/logo-full.png"></td>
  </tr>
  <tr>
    <td>
      <a href="https://pypi.org/project/myllm/"><img src="https://img.shields.io/pypi/v/myllm?style=for-the-badge&logo=PyPI&logoColor=white"></a><br>
      <a href="https://pypi.org/project/myllm/"><img src="https://img.shields.io/pypi/dm/myllm?style=for-the-badge&logo=PyPI&logoColor=white"></a><br>
      <a href="https://github.com/mraniki/myllm/"><img src="https://img.shields.io/github/actions/workflow/status/mraniki/myllm/%F0%9F%91%B7Flow.yml?style=for-the-badge&logo=GitHub&logoColor=white"></a><br>
      <a href="https://talky.readthedocs.io/projects/myllm/"><img src="https://readthedocs.org/projects/myllm/badge/?version=latest&style=for-the-badge"></a><br>
      <a href="https://codebeat.co/projects/github-com-mraniki-myllm-main"><img src="https://codebeat.co/badges/0567b9d9-3cbb-4263-80ec-8ac8043332ea"/></a> <br>
      <a href="https://app.codacy.com/gh/mraniki/MyLLM/dashboard"><img src="https://app.codacy.com/project/badge/Grade/75f2650d58044355957fe667aeed50a1"/></a> <br>
      <a href="https://codecov.io/gh/mraniki/myllm"><img src="https://codecov.io/gh/mraniki/myllm/branch/main/graph/badge.svg?token=WAHUEMAJN6"/></a><br>
    </td>
    <td align="left"> 
Interact with LLM in simple way,<br>via  <a href="https://github.com/xtekky/gpt4free">G4F</a>, <a href="https://github.com/openai/openai-python">OPENAI</a>/<a href="https://localai.io/basics/getting_started/">LOCALAI</a><br>
  </td>   
  </tr>
</table>


<h5>How to use it</h5>
<pre>
<code>
    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()
</code>
</pre>

<h5>Documentation</h5>
<a href="https://talky.readthedocs.io/projects/myllm/en/latest/"><img src="https://img.shields.io/badge/Documentation-000000?style=for-the-badge&logo=readthedocs&logoColor=white"></a><br>
