llm-cat


Namellm-cat JSON
Version 0.0.1 PyPI version JSON
download
home_pagehttps://www.linkedin.com/in/chandlersong/
Summaryllm api and prompt
upload_time2024-11-17 10:14:08
maintainerNone
docs_urlNone
authorchandler song
requires_pythonNone
licenseMIT
keywords llm api and prompt
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Introduction
## Install package
```shell
pip install llm_cat
```
##  Example Usage:
```python
# deepseek
message = "What is the capital of France?"
token ="sk-xxxxxxxxxxxxx"
result = deepseek_chat(message,token)
print(result)


# ollama
message = "What is the capital of France?"
response = ollama_chat(message,model='llama3.1',url = 'http://localhost:11434/api/chat')
print(response)
```



## Template

```python
from jinja2 import Template

prompt_template = "Hello {{ name }}!"
template = Template(prompt_template)
print(template.render(name="John Doe"))
```


            

Raw data

            {
    "_id": null,
    "home_page": "https://www.linkedin.com/in/chandlersong/",
    "name": "llm-cat",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "llm api and prompt",
    "author": "chandler song",
    "author_email": "275737875@qq.com",
    "download_url": "https://files.pythonhosted.org/packages/60/09/e63f51ced7b9fe6a18e3435eb1641166902347ba43246e696067fe9674ab/llm_cat-0.0.1.tar.gz",
    "platform": "all",
    "description": "# Introduction\r\n## Install package\r\n```shell\r\npip install llm_cat\r\n```\r\n##  Example Usage:\r\n```python\r\n# deepseek\r\nmessage = \"What is the capital of France?\"\r\ntoken =\"sk-xxxxxxxxxxxxx\"\r\nresult = deepseek_chat(message,token)\r\nprint(result)\r\n\r\n\r\n# ollama\r\nmessage = \"What is the capital of France?\"\r\nresponse = ollama_chat(message,model='llama3.1',url = 'http://localhost:11434/api/chat')\r\nprint(response)\r\n```\r\n\r\n\r\n\r\n## Template\r\n\r\n```python\r\nfrom jinja2 import Template\r\n\r\nprompt_template = \"Hello {{ name }}!\"\r\ntemplate = Template(prompt_template)\r\nprint(template.render(name=\"John Doe\"))\r\n```\r\n\r\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "llm api and prompt",
    "version": "0.0.1",
    "project_urls": {
        "Homepage": "https://www.linkedin.com/in/chandlersong/"
    },
    "split_keywords": [
        "llm",
        "api",
        "and",
        "prompt"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "6009e63f51ced7b9fe6a18e3435eb1641166902347ba43246e696067fe9674ab",
                "md5": "f223c0739aef0a2184fe2a94fb141557",
                "sha256": "bb6c7d47873192be54fea7bef33bd209bfab726313dc0119755eea817042f1da"
            },
            "downloads": -1,
            "filename": "llm_cat-0.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "f223c0739aef0a2184fe2a94fb141557",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 3897,
            "upload_time": "2024-11-17T10:14:08",
            "upload_time_iso_8601": "2024-11-17T10:14:08.911410Z",
            "url": "https://files.pythonhosted.org/packages/60/09/e63f51ced7b9fe6a18e3435eb1641166902347ba43246e696067fe9674ab/llm_cat-0.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-11-17 10:14:08",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "llm-cat"
}
        
Elapsed time: 0.38349s