{"id":15175586,"url":"https://github.com/accudio/llm-cohere","last_synced_at":"2025-11-17T03:30:39.924Z","repository":{"id":185710034,"uuid":"672645890","full_name":"Accudio/llm-cohere","owner":"Accudio","description":"Plugin for LLM adding support for Cohere's Generate and Summarize models","archived":false,"fork":false,"pushed_at":"2024-03-29T20:13:43.000Z","size":11,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-20T04:18:01.568Z","etag":null,"topics":["cohere"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Accudio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-07-30T19:29:20.000Z","updated_at":"2024-05-29T13:43:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"978ae68d-bb13-4e78-8a25-4900afd43324","html_url":"https://github.com/Accudio/llm-cohere","commit_stats":null,"previous_names":["accudio/llm-cohere"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Accudio%2Fllm-cohere","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Accudio%2Fllm-cohere/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Accudio%2Fllm-cohere/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Accudio%2Fllm-cohere/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Accudio","download_url":"https://codeload.github.com/Accudio/llm-cohere/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235519884,"owners_count":19003201,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cohere"],"created_at":"2024-09-27T12:39:36.364Z","updated_at":"2025-10-06T10:32:00.503Z","avatar_url":"https://github.com/Accudio.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# llm-cohere\n\n[![PyPI](https://img.shields.io/pypi/v/llm-cohere.svg)](https://pypi.org/project/llm-cohere/)\n[![Changelog](https://img.shields.io/github/v/release/accudio/llm-cohere?include_prereleases\u0026label=changelog)](https://github.com/accudio/llm-cohere/releases)\n[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://github.com/accudio/llm-cohere/blob/main/LICENSE)\n\nPlugin for [LLM](https://llm.datasette.io/) adding support for [Cohere](https://cohere.com)'s Generater and Summarize models.\n\n## Installation\n\nInstall this plugin in the same environment as LLM.\n```bash\nllm install llm-cohere\n```\n## Configuration\n\nYou will need an API key from Cohere. You can obtain one by creating an account and going to 'API Keys'.\n\nYou can set that as an environment variable called `COHERE_API_KEY`, or add it to the `llm` set of saved keys using:\n\n```bash\nllm keys set cohere\n```\n```\nEnter key: \u003cpaste key here\u003e\n```\n\n## Usage\n\nThis plugin adds two models. `cohere-generate` uses an input prompt and generates output based on it. `summarize` takes an input prompt and generates a summarised response.\n\n```bash\nllm -m cohere-generate \"Seven great names for a pet lemur\"\n```\nCohere also supports system prompts, which are sent to Cohere in the format of `\u003cprompt\u003e: \u003csystem prompt\u003e`.\n```bash\necho \"I like lemurs a lot\" | llm -m cohere-generate --system \"Translate to german\"\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-cohere\npython3 -m venv venv\nsource venv/bin/activate\n```\n\nNow install the dependencies and test dependencies:\n\n```bash\npip install -e '.[test]'\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faccudio%2Fllm-cohere","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faccudio%2Fllm-cohere","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faccudio%2Fllm-cohere/lists"}