Files
ha-text-ai/custom_components/ha_text_ai/services.yaml
T

87 lines
2.2 KiB
YAML
Raw Normal View History

2024-11-18 01:36:58 +03:00
ask_question:
name: Ask Question
2024-11-19 12:45:26 +03:00
description: Send a question to the AI model and receive a detailed response
2024-11-14 18:35:50 +03:00
fields:
2024-11-18 01:36:58 +03:00
question:
name: Question
2024-11-19 12:45:26 +03:00
description: Your question or prompt for the AI assistant
2024-11-14 18:35:50 +03:00
required: true
2024-11-19 12:45:26 +03:00
example: "What automations would you recommend for a smart kitchen?"
2024-11-14 18:35:50 +03:00
selector:
text:
multiline: true
2024-11-18 01:36:58 +03:00
2024-11-14 18:35:50 +03:00
model:
name: Model
2024-11-19 12:45:26 +03:00
description: Select an AI model to use (optional, overrides default setting)
2024-11-14 18:35:50 +03:00
required: false
2024-11-19 12:45:26 +03:00
example: "gpt-3.5-turbo"
2024-11-18 01:36:58 +03:00
default: "gpt-3.5-turbo"
2024-11-14 18:35:50 +03:00
selector:
2024-11-18 01:36:58 +03:00
select:
options:
2024-11-19 12:45:26 +03:00
- label: "GPT-3.5 Turbo"
value: "gpt-3.5-turbo"
- label: "GPT-4"
value: "gpt-4"
- label: "GPT-4 32K"
value: "gpt-4-32k"
2024-11-18 01:36:58 +03:00
2024-11-14 18:35:50 +03:00
temperature:
name: Temperature
2024-11-19 13:10:18 +03:00
description: "Controls response creativity (0-2): Lower values for focused responses, higher for creative ones"
2024-11-14 18:35:50 +03:00
required: false
default: 0.7
selector:
number:
2024-11-18 01:36:58 +03:00
min: 0.0
2024-11-19 12:45:26 +03:00
max: 2.0
2024-11-14 18:35:50 +03:00
step: 0.1
2024-11-19 12:45:26 +03:00
mode: slider
2024-11-18 01:36:58 +03:00
2024-11-14 18:35:50 +03:00
max_tokens:
name: Max Tokens
2024-11-19 13:10:18 +03:00
description: Maximum length of the response
2024-11-14 18:35:50 +03:00
required: false
2024-11-18 01:36:58 +03:00
default: 1000
2024-11-14 18:35:50 +03:00
selector:
number:
min: 1
2024-11-19 12:45:26 +03:00
max: 4096
2024-11-18 01:36:58 +03:00
step: 1
2024-11-19 12:45:26 +03:00
mode: box
2024-11-18 01:36:58 +03:00
clear_history:
name: Clear History
2024-11-19 13:10:18 +03:00
description: Delete all stored questions and responses
2024-11-18 01:36:58 +03:00
fields: {}
get_history:
name: Get History
2024-11-19 13:10:18 +03:00
description: Retrieve recent conversation history
2024-11-18 01:36:58 +03:00
fields:
limit:
name: Limit
2024-11-19 12:45:26 +03:00
description: Number of most recent conversations to return
2024-11-14 18:35:50 +03:00
required: false
2024-11-18 01:36:58 +03:00
default: 10
2024-11-14 18:35:50 +03:00
selector:
number:
2024-11-18 01:36:58 +03:00
min: 1
max: 100
step: 1
2024-11-19 12:45:26 +03:00
mode: box
2024-11-18 01:36:58 +03:00
set_system_prompt:
name: Set System Prompt
2024-11-19 13:10:18 +03:00
description: Configure the AI's behavior by setting a system prompt
2024-11-18 01:36:58 +03:00
fields:
prompt:
name: System Prompt
2024-11-19 13:10:18 +03:00
description: Instructions that define how the AI should behave and respond
2024-11-18 01:36:58 +03:00
required: true
2024-11-19 13:10:18 +03:00
example: "You are a home automation expert assistant. Provide practical advice focused on smart home technology."
2024-11-14 18:35:50 +03:00
selector:
2024-11-18 01:36:58 +03:00
text:
multiline: true