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

104 lines
2.8 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-19 12:45:26 +03:00
type: text
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"
icon: "mdi:rocket-launch"
- label: "GPT-4"
value: "gpt-4"
icon: "mdi:brain"
- label: "GPT-4 32K"
value: "gpt-4-32k"
icon: "mdi:brain-circuit"
2024-11-18 01:36:58 +03:00
2024-11-14 18:35:50 +03:00
temperature:
name: Temperature
2024-11-19 12:45:26 +03:00
description: >-
Controls response creativity (0-2):
Lower values (0-0.7) for focused, consistent responses
Higher values (0.7-2.0) for more creative, varied responses
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
unit_of_measurement: ""
2024-11-18 01:36:58 +03:00
2024-11-14 18:35:50 +03:00
max_tokens:
name: Max Tokens
2024-11-19 12:45:26 +03:00
description: Maximum length of the response (longer responses use more tokens)
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 12:45:26 +03:00
description: Delete all stored questions and responses from the conversation history
2024-11-18 01:36:58 +03:00
fields: {}
get_history:
name: Get History
2024-11-19 12:45:26 +03:00
description: Retrieve recent conversation history between you and the AI
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 12:45:26 +03:00
description: >-
Configure the AI's behavior by setting a system prompt that will be used
for all future conversations until changed
2024-11-18 01:36:58 +03:00
fields:
prompt:
name: System Prompt
2024-11-19 12:45:26 +03:00
description: >-
Instructions that define how the AI should behave and respond.
This affects all future conversations.
2024-11-18 01:36:58 +03:00
required: true
2024-11-19 12:45:26 +03:00
example: >-
You are a home automation expert assistant. Provide practical advice
focused on smart home technology and automation. Use clear, concise
language and include specific product recommendations when relevant.
2024-11-14 18:35:50 +03:00
selector:
2024-11-18 01:36:58 +03:00
text:
multiline: true
2024-11-19 12:45:26 +03:00
type: text
rows: 4