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

81 lines
1.9 KiB
YAML
Raw Normal View History

2024-11-18 01:36:58 +03:00
ask_question:
name: Ask Question
description: Send a question to the AI and get a response
2024-11-14 18:35:50 +03:00
fields:
2024-11-18 01:36:58 +03:00
question:
name: Question
description: The question or prompt to send to the AI
2024-11-14 18:35:50 +03:00
required: true
2024-11-18 01:36:58 +03:00
example: "What is the weather like today?"
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-18 01:36:58 +03:00
description: Override the default model for this question (optional)
2024-11-14 18:35:50 +03:00
required: false
example: "gpt-4"
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:
- "gpt-3.5-turbo"
- "gpt-4"
- "gpt-4-32k"
2024-11-14 18:35:50 +03:00
temperature:
name: Temperature
2024-11-18 01:36:58 +03:00
description: Control randomness in the response (0.0-1.0, lower is more focused)
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
max: 1.0
2024-11-14 18:35:50 +03:00
step: 0.1
2024-11-18 01:36:58 +03:00
2024-11-14 18:35:50 +03:00
max_tokens:
name: Max Tokens
2024-11-18 01:36:58 +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-18 01:36:58 +03:00
max: 4000
step: 1
clear_history:
name: Clear History
description: Clear the stored question and response history
fields: {}
get_history:
name: Get History
description: Get the history of questions and responses
fields:
limit:
name: Limit
description: Maximum number of history items 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
set_system_prompt:
name: Set System Prompt
description: Set a system prompt that will be used for all future questions
fields:
prompt:
name: System Prompt
description: The system prompt to set
required: true
example: "You are a helpful assistant specializing in home automation"
2024-11-14 18:35:50 +03:00
selector:
2024-11-18 01:36:58 +03:00
text:
multiline: true