# ChatGPT Fallback Skill
When in doubt, ask ChatGPT, powered by [OpenAI Solver](https://github.com/OpenVoiceOS/ovos-solver-plugin-openai-persona).
You need to configure a `key`, get it at https://platform.openai.com/api-keys
Or use a LocalAI (see example below)
## About
Capabilities:
- Remembers what user said earlier in the conversation
- Trained to decline inappropriate requests
Limitations:
- May occasionally generate incorrect information
- May occasionally produce harmful instructions or biased content
- Limited knowledge of world and events after 2021
## Configuration
Under skill settings (`.config/mycroft/skills/skill-ovos-fallback-chatgpt.openvoiceos/settings.json`) you can tweak some parameters for chatGPT.
| Option | Value | Description |
| --------------- | ----------------------------------------------------------------------- | ------------------------------------------------------------------------------------- |
| `key` | `sk-XXXYYYZZZAAABBB123` | Your `api_key` to access OpenAI API |
| `persona` | `You are a helpful assistant who gives very short but factual answers.` | Give a personality to chatGPT |
| `model` | `gpt-3.5-turbo` | LLM model to use, see all the options [here](https://platform.openai.com/docs/models) |
| `api_url` | `https://llama.smartgic.io/v1` | Optional and **only** required with a local AI server |
| `enable_memory` | `true` | Remember the last generated outputs |
| `memory_size` | `15` | How many memories to keep |
| `name` | `Chat G.P.T.` | Name to give to the AI assistant |
| `confirmation` | `true` | Spoken confirmation will be triggered when a request is sent to the AI |
The default persona is `You are a helpful voice assistant with a friendly tone and fun sense of humor. You respond in 40 words or fewer.`
## Configurations
The skill utilizes the `~/.config/mycroft/skills/skill-ovos-fallback-chatgpt.openvoiceos/settings.json` file which allows you to configure it.
### Configuration for use with OpenAI **(ChatGPT)**
```json
{
"key": "sk-XXXYYYZZZAAABBB123",
"model": "gpt-3.5-turbo",
"persona": "You are a helpful voice assistant with a friendly tone and fun sense of humor. You respond in 40 words or fewer.",
"enable_memory": true,
"memory_size": 15,
"__mycroft_skill_firstrun": false
}
```
### Configuration for use with Local AI
When using a local AI server instead of OpenAI, the `api_url` has to redirect to an alternative/local server compatible with OpenAI API. When using local AI, the `key` can be anything, but it has to exist. Read more about it in the OVOS technical manual, page [persona server](https://openvoiceos.github.io/ovos-technical-manual/persona_server/#compatible-projects)
Hint: If you're running an ollama server, you can use `http://localhost:11434/v1` as the api_url.
```json
{
"api_url": "https://llama.smartgic.io/v1",
"key": "sk-xxx",
"model": "llama3:latest",
"persona": "You are a helpful voice assistant with a friendly tone and fun sense of humor. You respond in 40 words or fewer.",
"enable_memory": true,
"memory_size": 15,
"name": "A.I.",
"confirmation": false,
"__mycroft_skill_firstrun": false
}
```
## See also
- [OVOS OpenAI Persona Plugin](https://github.com/OpenVoiceOS/ovos-solver-openai-persona-plugin) - The underlying plugin that powers this skill's integration with various AI models.
- [Ollama OpenAI Compatibility](https://ollama.com/blog/openai-compatibility).
- [Other compatible servers in the OVOS docs](https://openvoiceos.github.io/ovos-technical-manual/202-persona_server/#compatible-projects)
## Examples
- "Explain quantum computing in simple terms"
- "Got any creative ideas for a 10 year old’s birthday?"
Raw data
{
"_id": null,
"home_page": "https://github.com/OpenVoiceOS/skill-ovos-fallback-chatgpt",
"name": "skill-ovos-fallback-chatgpt",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "ovos skill plugin",
"author": "JarbasAi",
"author_email": "jarbasai@mailfence.com",
"download_url": "https://files.pythonhosted.org/packages/07/19/6912f42d33ee78fcac4deaf53cf56b74a87e634cfc2f87703ae90d924c9c/skill-ovos-fallback-chatgpt-0.1.13.tar.gz",
"platform": null,
"description": "# ChatGPT Fallback Skill\n\nWhen in doubt, ask ChatGPT, powered by [OpenAI Solver](https://github.com/OpenVoiceOS/ovos-solver-plugin-openai-persona).\n\nYou need to configure a `key`, get it at https://platform.openai.com/api-keys\n\nOr use a LocalAI (see example below)\n\n## About\n\nCapabilities:\n\n- Remembers what user said earlier in the conversation\n- Trained to decline inappropriate requests\n\nLimitations:\n\n- May occasionally generate incorrect information\n- May occasionally produce harmful instructions or biased content\n- Limited knowledge of world and events after 2021\n\n## Configuration\n\nUnder skill settings (`.config/mycroft/skills/skill-ovos-fallback-chatgpt.openvoiceos/settings.json`) you can tweak some parameters for chatGPT.\n\n| Option | Value | Description |\n| --------------- | ----------------------------------------------------------------------- | ------------------------------------------------------------------------------------- |\n| `key` | `sk-XXXYYYZZZAAABBB123` | Your `api_key` to access OpenAI API |\n| `persona` | `You are a helpful assistant who gives very short but factual answers.` | Give a personality to chatGPT |\n| `model` | `gpt-3.5-turbo` | LLM model to use, see all the options [here](https://platform.openai.com/docs/models) |\n| `api_url` | `https://llama.smartgic.io/v1` | Optional and **only** required with a local AI server |\n| `enable_memory` | `true` | Remember the last generated outputs |\n| `memory_size` | `15` | How many memories to keep |\n| `name` | `Chat G.P.T.` | Name to give to the AI assistant |\n| `confirmation` | `true` | Spoken confirmation will be triggered when a request is sent to the AI |\n\nThe default persona is `You are a helpful voice assistant with a friendly tone and fun sense of humor. You respond in 40 words or fewer.`\n\n## Configurations\n\nThe skill utilizes the `~/.config/mycroft/skills/skill-ovos-fallback-chatgpt.openvoiceos/settings.json` file which allows you to configure it.\n\n### Configuration for use with OpenAI **(ChatGPT)**\n\n```json\n{\n \"key\": \"sk-XXXYYYZZZAAABBB123\",\n \"model\": \"gpt-3.5-turbo\",\n \"persona\": \"You are a helpful voice assistant with a friendly tone and fun sense of humor. You respond in 40 words or fewer.\",\n \"enable_memory\": true,\n \"memory_size\": 15,\n \"__mycroft_skill_firstrun\": false\n}\n```\n\n### Configuration for use with Local AI\n\nWhen using a local AI server instead of OpenAI, the `api_url` has to redirect to an alternative/local server compatible with OpenAI API. When using local AI, the `key` can be anything, but it has to exist. Read more about it in the OVOS technical manual, page [persona server](https://openvoiceos.github.io/ovos-technical-manual/persona_server/#compatible-projects)\n\nHint: If you're running an ollama server, you can use `http://localhost:11434/v1` as the api_url. \n\n```json\n{\n \"api_url\": \"https://llama.smartgic.io/v1\",\n \"key\": \"sk-xxx\",\n \"model\": \"llama3:latest\",\n \"persona\": \"You are a helpful voice assistant with a friendly tone and fun sense of humor. You respond in 40 words or fewer.\",\n \"enable_memory\": true,\n \"memory_size\": 15,\n \"name\": \"A.I.\",\n \"confirmation\": false,\n \"__mycroft_skill_firstrun\": false\n}\n```\n\n## See also\n\n- [OVOS OpenAI Persona Plugin](https://github.com/OpenVoiceOS/ovos-solver-openai-persona-plugin) - The underlying plugin that powers this skill's integration with various AI models.\n- [Ollama OpenAI Compatibility](https://ollama.com/blog/openai-compatibility).\n- [Other compatible servers in the OVOS docs](https://openvoiceos.github.io/ovos-technical-manual/202-persona_server/#compatible-projects)\n\n## Examples\n\n- \"Explain quantum computing in simple terms\"\n- \"Got any creative ideas for a 10 year old\u2019s birthday?\"\n",
"bugtrack_url": null,
"license": "Apache-2.0",
"summary": "ovos chatGPT skill",
"version": "0.1.13",
"project_urls": {
"Homepage": "https://github.com/OpenVoiceOS/skill-ovos-fallback-chatgpt"
},
"split_keywords": [
"ovos",
"skill",
"plugin"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "73636859ceee74b8661f27fea193bbd616612482eb933026e61ff1ef03f64d41",
"md5": "864b4b4c17d8ff2ad764632ed9617896",
"sha256": "b35f6eda64b9e783bb5d4f289bcc1eb7d5c4d24d7c65181ea03115a140a5e641"
},
"downloads": -1,
"filename": "skill_ovos_fallback_chatgpt-0.1.13-py3-none-any.whl",
"has_sig": false,
"md5_digest": "864b4b4c17d8ff2ad764632ed9617896",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 28211,
"upload_time": "2025-01-25T19:01:27",
"upload_time_iso_8601": "2025-01-25T19:01:27.922748Z",
"url": "https://files.pythonhosted.org/packages/73/63/6859ceee74b8661f27fea193bbd616612482eb933026e61ff1ef03f64d41/skill_ovos_fallback_chatgpt-0.1.13-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "07196912f42d33ee78fcac4deaf53cf56b74a87e634cfc2f87703ae90d924c9c",
"md5": "9199dbfa803566fe2cd0cd1cd0bc73ca",
"sha256": "eef18b0e7209d158e99295fcf77ba68524d1487e81600e84634e4f7e2ca9b281"
},
"downloads": -1,
"filename": "skill-ovos-fallback-chatgpt-0.1.13.tar.gz",
"has_sig": false,
"md5_digest": "9199dbfa803566fe2cd0cd1cd0bc73ca",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 13810,
"upload_time": "2025-01-25T19:01:29",
"upload_time_iso_8601": "2025-01-25T19:01:29.656095Z",
"url": "https://files.pythonhosted.org/packages/07/19/6912f42d33ee78fcac4deaf53cf56b74a87e634cfc2f87703ae90d924c9c/skill-ovos-fallback-chatgpt-0.1.13.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-01-25 19:01:29",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "OpenVoiceOS",
"github_project": "skill-ovos-fallback-chatgpt",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [
{
"name": "ovos-solver-openai-persona-plugin",
"specs": [
[
">=",
"0.0.0a8"
]
]
},
{
"name": "ovos-utils",
"specs": [
[
">=",
"0.0.38"
]
]
},
{
"name": "ovos-workshop",
"specs": [
[
"<",
"4.0.0"
],
[
">=",
"0.0.15"
]
]
},
{
"name": "ovos-plugin-manager",
"specs": [
[
">=",
"0.0.26"
],
[
"<",
"1.0.0"
]
]
},
{
"name": "ovos-translate-server-plugin",
"specs": []
}
],
"lcname": "skill-ovos-fallback-chatgpt"
}