OpenVoiceOS / ovos-skill-fallback-chatgpt

Apache License 2.0
23 stars 15 forks source link

Where do i set the api key #10

Closed BW-KING closed 11 months ago

BW-KING commented 11 months ago

I have no idea where the settings file or place to update the api key - please help

goldyfruit commented 11 months ago

@BW-KING

Within a Docker setup:

mkdir -p ~/ovos/config/skills/skill-ovos-fallback-chatgpt.openvoiceos
cat <<EOF >~/ovos/config/skills/skill-ovos-fallback-chatgpt.openvoiceos/settings.json
{
    "key": "sk-XXXXXXXX",
    "model": "gpt-3.5-turbo",
    "persona": "You are a helpful voice assistant with a friendly tone and fun sense of humor",
    "__mycroft_skill_firstrun": false
}
EOF

Within a Python Virtual environment setup:

mkdir -p ~/.config/mycroft/skills/skill-ovos-fallback-chatgpt.openvoiceos
cat <<EOF >"$config_skill_directory/settings.json"
{
    "key": "sk-XXXXXXXX",
    "model": "gpt-3.5-turbo",
    "persona": "You are a helpful voice assistant with a friendly tone and fun sense of humor",
    "__mycroft_skill_firstrun": false
}
EOF

Replace the key with yours.

goldyfruit commented 11 months ago

Based on the conversation on Matrix is seems to be working,