2024-11-18 01:36:58 +03:00
|
|
|
ask_question:
|
|
|
|
|
name: Ask Question
|
2024-11-19 14:00:33 +03:00
|
|
|
description: >-
|
|
|
|
|
Send a question to the AI model and receive a detailed response.
|
|
|
|
|
The response will be stored in the conversation history and can be retrieved later.
|
2024-11-14 18:35:50 +03:00
|
|
|
fields:
|
2024-11-24 02:20:29 +03:00
|
|
|
instance:
|
|
|
|
|
name: Instance
|
|
|
|
|
description: Name of the HA Text AI instance to use
|
|
|
|
|
required: true
|
|
|
|
|
selector:
|
2024-11-25 00:08:07 +03:00
|
|
|
entity:
|
|
|
|
|
integration: ha_text_ai
|
|
|
|
|
domain: sensor
|
2024-11-24 02:20:29 +03:00
|
|
|
|
2024-11-18 01:36:58 +03:00
|
|
|
question:
|
|
|
|
|
name: Question
|
2024-11-24 02:20:29 +03:00
|
|
|
description: Your question or prompt for the AI assistant
|
2024-11-14 18:35:50 +03:00
|
|
|
required: true
|
|
|
|
|
selector:
|
|
|
|
|
text:
|
|
|
|
|
multiline: true
|
2024-11-25 16:18:54 +03:00
|
|
|
type: text
|
2024-11-18 01:36:58 +03:00
|
|
|
|
2024-11-24 02:20:29 +03:00
|
|
|
system_prompt:
|
|
|
|
|
name: System Prompt
|
|
|
|
|
description: Optional system prompt to set context for this specific question
|
|
|
|
|
required: false
|
|
|
|
|
selector:
|
|
|
|
|
text:
|
|
|
|
|
multiline: true
|
|
|
|
|
|
2024-11-25 16:18:54 +03:00
|
|
|
context_messages:
|
|
|
|
|
name: Context Messages
|
|
|
|
|
description: Number of previous messages to include in context (1-20)
|
|
|
|
|
required: false
|
|
|
|
|
default: 5
|
|
|
|
|
selector:
|
|
|
|
|
number:
|
|
|
|
|
min: 1
|
|
|
|
|
max: 20
|
|
|
|
|
step: 1
|
|
|
|
|
mode: box
|
|
|
|
|
|
2024-11-14 18:35:50 +03:00
|
|
|
model:
|
|
|
|
|
name: Model
|
2024-11-24 02:20:29 +03:00
|
|
|
description: "Select AI model to use (optional, overrides default setting)"
|
2024-11-14 18:35:50 +03:00
|
|
|
required: false
|
2024-11-25 16:18:54 +03:00
|
|
|
selector:
|
2024-11-22 01:34:47 +03:00
|
|
|
text:
|
|
|
|
|
multiline: false
|
2024-11-21 13:56:22 +03:00
|
|
|
|
2024-11-14 18:35:50 +03:00
|
|
|
temperature:
|
|
|
|
|
name: Temperature
|
2024-11-24 02:20:29 +03:00
|
|
|
description: Controls response creativity (0.0-2.0)
|
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-24 02:20:29 +03:00
|
|
|
description: Maximum length of the response (1-4096 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
|