llm-deepseek-xtreme


Namellm-deepseek-xtreme JSON
Version 0.1.0 PyPI version JSON
download
home_pageNone
SummaryLLM access to DeepSeek's API
upload_time2024-09-10 18:48:27
maintainerNone
docs_urlNone
authorNick Mystic
requires_python>=3.8
licenseMIT License Copyright (c) 2024 ghostofpokemon Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # llm-deepseek

[![GitHub release (latest by date including pre-releases)](https://img.shields.io/github/v/release/ghostofpokemon/llm-deepseek?include_prereleases)](https://github.com/ghostofpokemon/llm-deepseek/releases)
[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/ghostofpokemon/llm-deepseek/blob/main/LICENSE)

LLM access to DeepSeek's API

## Installation

Install this plugin in the same environment as [LLM](https://llm.datasette.io/).

```bash
llm install llm-deepseek-xtreme
```

## Usage

First, set an [API key](https://platform.deepseek.com/api_keys) for DeepSeek:

```bash
llm keys set deepseek
# Paste key here
```

Run `llm models` to list the models, and `llm models --options` to include a list of their options.

### Running Prompts

Run prompts like this:

```bash
llm -m deepseek-chat "Describe a futuristic city on Mars"
llm -m deepseek-chat-completion "The AI began to dream, and in its dreams," -o echo true
llm -m deepseek-coder "Write a Python function to sort a list of numbers"
llm -m deepseek-coder-completion "IDENTIFICATION DIVISION. PROGRAM-ID. skynet." -o echo true
```

### New Features

#### Prefill

The `prefill` option allows you to provide initial text for the model's response. This is useful for guiding the model's output.

Example:

```bash
llm -m deepseek-chat "What are some wild and crazy activities for a holiday party?" -o prefill "Here are some off-the-wall ideas to make your holiday party unforgettable [warning: these may not be suitable for work holiday parties]:"
```

#### JSON Response Format

The `response_format` option allows you to specify that the model should output its response in JSON format. To ensure the model outputs valid JSON, include the word "json" in the system or user prompt. Optionally, you can provide an example of the desired JSON format to guide the model.

Example:

```bash
llm -m deepseek-chat "What are some fun activities for a holiday party?" -o response_format json_object --system "json"
```

To guide the model further, you can provide an example JSON structure:

```bash
llm -m deepseek-chat "What are some way to tell if a holiday party is fun?" -o response_format json_object --system 'EXAMPLE JSON OUTPUT: {"event": "holiday_party_fun", "success_metric": ["..."]}'
```

## Development

To set up this plugin locally, first checkout the code. Then create a new virtual environment:

```bash
cd llm-deepseek
python3 -m venv venv
source venv/bin/activate
```

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "llm-deepseek-xtreme",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": null,
    "author": "Nick Mystic",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/91/ac/4b22190afda1183f6332778bc3e5c7e4c3d7fd2a87a6dd458c72695ddde1/llm_deepseek_xtreme-0.1.0.tar.gz",
    "platform": null,
    "description": "# llm-deepseek\n\n[![GitHub release (latest by date including pre-releases)](https://img.shields.io/github/v/release/ghostofpokemon/llm-deepseek?include_prereleases)](https://github.com/ghostofpokemon/llm-deepseek/releases)\n[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/ghostofpokemon/llm-deepseek/blob/main/LICENSE)\n\nLLM access to DeepSeek's API\n\n## Installation\n\nInstall this plugin in the same environment as [LLM](https://llm.datasette.io/).\n\n```bash\nllm install llm-deepseek-xtreme\n```\n\n## Usage\n\nFirst, set an [API key](https://platform.deepseek.com/api_keys) for DeepSeek:\n\n```bash\nllm keys set deepseek\n# Paste key here\n```\n\nRun `llm models` to list the models, and `llm models --options` to include a list of their options.\n\n### Running Prompts\n\nRun prompts like this:\n\n```bash\nllm -m deepseek-chat \"Describe a futuristic city on Mars\"\nllm -m deepseek-chat-completion \"The AI began to dream, and in its dreams,\" -o echo true\nllm -m deepseek-coder \"Write a Python function to sort a list of numbers\"\nllm -m deepseek-coder-completion \"IDENTIFICATION DIVISION. PROGRAM-ID. skynet.\" -o echo true\n```\n\n### New Features\n\n#### Prefill\n\nThe `prefill` option allows you to provide initial text for the model's response. This is useful for guiding the model's output.\n\nExample:\n\n```bash\nllm -m deepseek-chat \"What are some wild and crazy activities for a holiday party?\" -o prefill \"Here are some off-the-wall ideas to make your holiday party unforgettable [warning: these may not be suitable for work holiday parties]:\"\n```\n\n#### JSON Response Format\n\nThe `response_format` option allows you to specify that the model should output its response in JSON format. To ensure the model outputs valid JSON, include the word \"json\" in the system or user prompt. Optionally, you can provide an example of the desired JSON format to guide the model.\n\nExample:\n\n```bash\nllm -m deepseek-chat \"What are some fun activities for a holiday party?\" -o response_format json_object --system \"json\"\n```\n\nTo guide the model further, you can provide an example JSON structure:\n\n```bash\nllm -m deepseek-chat \"What are some way to tell if a holiday party is fun?\" -o response_format json_object --system 'EXAMPLE JSON OUTPUT: {\"event\": \"holiday_party_fun\", \"success_metric\": [\"...\"]}'\n```\n\n## Development\n\nTo set up this plugin locally, first checkout the code. Then create a new virtual environment:\n\n```bash\ncd llm-deepseek\npython3 -m venv venv\nsource venv/bin/activate\n```\n",
    "bugtrack_url": null,
    "license": "MIT License  Copyright (c) 2024 ghostofpokemon  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ",
    "summary": "LLM access to DeepSeek's API",
    "version": "0.1.0",
    "project_urls": {
        "CI": "https://github.com/ghostofpokemon/llm-deepseek/actions",
        "Changelog": "https://github.com/ghostofpokemon/llm-deepseek/blob/main/CHANGELOG.md",
        "Homepage": "https://github.com/ghostofpokemon/llm-deepseek",
        "Issues": "https://github.com/ghostofpokemon/llm-deepseek/issues"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "eff7118ee2c5313fe72511e9b0773e5004c51a3c9b69c0c6eb754b7a9eadf3ef",
                "md5": "5c3cb475072805228ff2c625d86fac3c",
                "sha256": "71bb5e11790ffc83dcbb83f66ba3a2bb82f50e67c3751c7362ee07265a78f4bf"
            },
            "downloads": -1,
            "filename": "llm_deepseek_xtreme-0.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "5c3cb475072805228ff2c625d86fac3c",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 6285,
            "upload_time": "2024-09-10T18:48:26",
            "upload_time_iso_8601": "2024-09-10T18:48:26.265190Z",
            "url": "https://files.pythonhosted.org/packages/ef/f7/118ee2c5313fe72511e9b0773e5004c51a3c9b69c0c6eb754b7a9eadf3ef/llm_deepseek_xtreme-0.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "91ac4b22190afda1183f6332778bc3e5c7e4c3d7fd2a87a6dd458c72695ddde1",
                "md5": "2d732e0da1319e07d3d33b0e7546d16c",
                "sha256": "b8c5aa54c89014b952d4c282c50443ee5b24459b290265419d6f4107675d0da8"
            },
            "downloads": -1,
            "filename": "llm_deepseek_xtreme-0.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "2d732e0da1319e07d3d33b0e7546d16c",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 5279,
            "upload_time": "2024-09-10T18:48:27",
            "upload_time_iso_8601": "2024-09-10T18:48:27.952645Z",
            "url": "https://files.pythonhosted.org/packages/91/ac/4b22190afda1183f6332778bc3e5c7e4c3d7fd2a87a6dd458c72695ddde1/llm_deepseek_xtreme-0.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-09-10 18:48:27",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "ghostofpokemon",
    "github_project": "llm-deepseek",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "llm-deepseek-xtreme"
}
        
Elapsed time: 0.67936s