This project has been archived by its maintainers, and is no longer receiving any updates.
OpenAI Persona
Give OpenVoiceOS some sass with OpenAI!
Leverages OpenAI Completions API to create some fun interactions. Phrases not explicitly handled by other skills will be run by a LLM, so nearly every interaction will have some response. But be warned, Mycroft might become a bit obnoxious...
Usage
Spoken answers api with OpenAI or LocalAI completions backend, prompt engineering is used to behave like a voice assistant
from ovos_solver_openai_persona import OpenAIPersonaSolver
bot = OpenAIPersonaSolver({"key": "sk-XXX",
"persona": "helpful, creative, clever, and very friendly"})
print(bot.get_spoken_answer("describe quantum mechanics in simple terms"))
# Quantum mechanics is a branch of physics that deals with the behavior of particles on a very small scale, such as atoms and subatomic particles. It explores the idea that particles can exist in multiple states at once and that their behavior is not predictable in the traditional sense.
print(bot.spoken_answer("Quem encontrou o caminho maritimo para o Brazil", {"lang": "pt-pt"}))
# Explorador português Pedro Álvares Cabral é creditado com a descoberta do Brasil em 1500
This plugin will work with ovos-persona-server
Configuration
This plugin can be configured to use a LocalAI server instead of OpenAI.
{
"api_url": <your_local_LocalAI_server_url>,
"key": <your_OpenAI_key>,
"enable_memory": true,
"memory_size": 15,
"initial_prompt": "You are a helpful assistant."
}
When using LocalAI, the "key" can be anything, but it has to exist.
Metadata
Release files for ovos-solver-openai-persona-plugin 1.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ovos-solver-openai-persona-plugin-1.2.0.tar.gz | 12.3 kB | Without provenance | Details for ovos-solver-openai-persona-plugin-1.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ovos_solver_openai_persona_plugin-1.2.0-py3-none-any.whl | Python 3 | none | any | Details for ovos_solver_openai_persona_plugin-1.2.0-py3-none-any.whl |
Total release size: 26.1 kB
Release files / ovos-solver-openai-persona-plugin-1.2.0.tar.gz
| Download URL | ovos-solver-openai-persona-plugin-1.2.0.tar.gz |
|---|---|
| Size | 12.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1ae6d6e1d972c53b5ddfc72bd3885646ddce28c809f1aef49736454c3af922c0
|
|
BLAKE2b-256 checksum How to use checksums |
7a01a8f8a9166dfc84eedc5407289136abdc470820cfb416ed440e7d46362f62
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.21
|
Release files / ovos_solver_openai_persona_plugin-1.2.0-py3-none-any.whl
| Download URL | ovos_solver_openai_persona_plugin-1.2.0-py3-none-any.whl |
|---|---|
| Size | 13.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
034f38fc9c40bf27dd45923e4f45969387be15301c61bc9323613977dc37083a
|
|
BLAKE2b-256 checksum How to use checksums |
cf375ea1ab8ff39c1107e3791732e2ba876d609b4bb6496ed370ab29d70448cf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.21
|
Security for ovos-solver-openai-persona-plugin 1.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.