mirror of
https://github.com/smkrv/ha-text-ai.git
synced 2026-07-30 02:53:56 +08:00
Release v2.0.0
This commit is contained in:
@@ -134,6 +134,7 @@ data:
|
|||||||
model: "claude-3-sonnet" # optional
|
model: "claude-3-sonnet" # optional
|
||||||
temperature: 0.5 # optional
|
temperature: 0.5 # optional
|
||||||
max_tokens: 500 # optional
|
max_tokens: 500 # optional
|
||||||
|
context_messages: 10 #optional, number of previous messages to include in context, default: 5
|
||||||
system_prompt: "You are a sleep optimization expert" # optional
|
system_prompt: "You are a sleep optimization expert" # optional
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -159,7 +160,7 @@ service: ha_text_ai.clear_history
|
|||||||
service: ha_text_ai.get_history
|
service: ha_text_ai.get_history
|
||||||
data:
|
data:
|
||||||
limit: 5 # optional
|
limit: 5 # optional
|
||||||
filter_model: "gpt-4" # optional
|
filter_model: "gpt-4o" # optional
|
||||||
```
|
```
|
||||||
|
|
||||||
## 📘 FAQ
|
## 📘 FAQ
|
||||||
@@ -185,6 +186,9 @@ A: Use GPT-3.5-Turbo for most queries, implement caching, and optimize token usa
|
|||||||
**Q: Is my data secure?**
|
**Q: Is my data secure?**
|
||||||
A: Yes, your data is secure. The system operates entirely on your local machine, keeping your data under your control. API keys are stored securely and all external communications use encrypted connections.
|
A: Yes, your data is secure. The system operates entirely on your local machine, keeping your data under your control. API keys are stored securely and all external communications use encrypted connections.
|
||||||
|
|
||||||
|
**Q: How do context messages work?**
|
||||||
|
A: Context messages allow the AI to remember and reference previous conversation history. By default, 5 previous messages are included, but you can customize this from 1 to 20 messages to control the conversation depth and token usage.
|
||||||
|
|
||||||
## 🤝 Contributing
|
## 🤝 Contributing
|
||||||
|
|
||||||
Contributions welcome! Please read our [Contributing Guide](CONTRIBUTING.md).
|
Contributions welcome! Please read our [Contributing Guide](CONTRIBUTING.md).
|
||||||
|
|||||||
@@ -18,7 +18,8 @@
|
|||||||
"temperature": "Antwort-Kreativität (0-2, niedriger = fokussierter)",
|
"temperature": "Antwort-Kreativität (0-2, niedriger = fokussierter)",
|
||||||
"max_tokens": "Maximale Antwortlänge (1-4096 Token)",
|
"max_tokens": "Maximale Antwortlänge (1-4096 Token)",
|
||||||
"api_endpoint": "Benutzerdefinierte API-Endpunkt-URL (optional)",
|
"api_endpoint": "Benutzerdefinierte API-Endpunkt-URL (optional)",
|
||||||
"request_interval": "Minimale Zeit zwischen Anfragen (0,1-60 Sekunden)"
|
"request_interval": "Minimale Zeit zwischen Anfragen (0,1-60 Sekunden)",
|
||||||
|
"context_messages": "Anzahl der zu speichernden Kontextnachrichten (1-20)"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -49,7 +50,9 @@
|
|||||||
"model": "KI-Modell",
|
"model": "KI-Modell",
|
||||||
"temperature": "Antwort-Kreativität (0-2)",
|
"temperature": "Antwort-Kreativität (0-2)",
|
||||||
"max_tokens": "Maximale Antwortlänge (1-4096)",
|
"max_tokens": "Maximale Antwortlänge (1-4096)",
|
||||||
"request_interval": "Minimales Anfragen-Intervall (0,1-60 Sekunden)"
|
"request_interval": "Minimales Anfragen-Intervall (0,1-60 Sekunden)",
|
||||||
|
"context_messages": "Anzahl der vorherigen Nachrichten, die in den Kontext einbezogen werden sollen (1-20)"
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,7 +18,8 @@
|
|||||||
"temperature": "Response creativity (0-2, lower = more focused)",
|
"temperature": "Response creativity (0-2, lower = more focused)",
|
||||||
"max_tokens": "Maximum response length (1-4096 tokens)",
|
"max_tokens": "Maximum response length (1-4096 tokens)",
|
||||||
"api_endpoint": "Custom API endpoint URL (optional)",
|
"api_endpoint": "Custom API endpoint URL (optional)",
|
||||||
"request_interval": "Minimum time between requests (0.1-60 seconds)"
|
"request_interval": "Minimum time between requests (0.1-60 seconds)",
|
||||||
|
"context_messages": "Number of context messages to retain (1-20)"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -49,7 +50,8 @@
|
|||||||
"model": "AI model",
|
"model": "AI model",
|
||||||
"temperature": "Response creativity (0-2)",
|
"temperature": "Response creativity (0-2)",
|
||||||
"max_tokens": "Maximum response length (1-4096)",
|
"max_tokens": "Maximum response length (1-4096)",
|
||||||
"request_interval": "Minimum request interval (0.1-60 seconds)"
|
"request_interval": "Minimum request interval (0.1-60 seconds)",
|
||||||
|
"context_messages": "Number of previous messages to include in context (1-20)"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,7 +18,8 @@
|
|||||||
"temperature": "Креативность ответов (0-2, меньше = более сфокусированно)",
|
"temperature": "Креативность ответов (0-2, меньше = более сфокусированно)",
|
||||||
"max_tokens": "Максимальная длина ответа (1-4096 токенов)",
|
"max_tokens": "Максимальная длина ответа (1-4096 токенов)",
|
||||||
"api_endpoint": "Пользовательский URL-адрес API (необязательно)",
|
"api_endpoint": "Пользовательский URL-адрес API (необязательно)",
|
||||||
"request_interval": "Минимальный интервал между запросами (0.1-60 секунд)"
|
"request_interval": "Минимальный интервал между запросами (0.1-60 секунд)",
|
||||||
|
"context_messages": "Количество сохраняемых контекстных сообщений (1-20)"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -49,7 +50,8 @@
|
|||||||
"model": "Модель ИИ",
|
"model": "Модель ИИ",
|
||||||
"temperature": "Креативность ответов (0-2)",
|
"temperature": "Креативность ответов (0-2)",
|
||||||
"max_tokens": "Максимальная длина ответа (1-4096)",
|
"max_tokens": "Максимальная длина ответа (1-4096)",
|
||||||
"request_interval": "Минимальный интервал запросов (0.1-60 секунд)"
|
"request_interval": "Минимальный интервал запросов (0.1-60 секунд)",
|
||||||
|
"context_messages": "Количество предыдущих сообщений для включения в контекст (1-20)"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user