Metadata-Version: 2.1
Name: MyLLM
Version: 4.2.1
Summary: A python package to interact with llm model supported by g4f and langchain.
License: MIT
Keywords: chatgpt,llm,ai,llama,ai,g4f,freegpt
Author: mraniki
Author-email: 8766259+mraniki@users.noreply.github.com
Requires-Python: >=3.10,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Dist: Brotli (==1.1.0)
Requires-Dist: PyExecJS2 (==1.6.1)
Requires-Dist: bardapi (==0.1.39)
Requires-Dist: curl_cffi (==0.6.0)
Requires-Dist: dynaconf (>=3.2.0)
Requires-Dist: fastapi (>=0.95.2)
Requires-Dist: g4f (==0.2.1.6)
Requires-Dist: httpx (>=0.24.1)
Requires-Dist: js2py (>=0.74,<0.75)
Requires-Dist: loguru (>=0.6.0)
Requires-Dist: openai (==1.12.0)
Requires-Dist: uvicorn (>=0.22.0)
Project-URL: Changelog, https://github.com/mraniki/MyLLM/blob/dev/CHANGELOG.rst
Project-URL: Issues, https://github.com/mraniki/MyLLM/issues
Project-URL: Support, https://github.com/mraniki/MyLLM/discussions
Description-Content-Type: text/markdown

<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>, OPENAI, Bard<br>
  </td>   
  </tr>
</table>


<h5>How to use it</h5>
<pre>
<code>
  talky = MyLLM()
  logger.info(await talky.chat(
        prompt="tell me who is president of the united states?"))
  # The current President of the United States is Joe Biden.
  logger.info(await talky.chat(prompt="let's start a conversation"))
  # keep the 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>

