mirror of
https://github.com/smkrv/ha-text-ai.git
synced 2026-07-29 13:53:56 +08:00
docs:(README)
This commit is contained in:
@@ -99,17 +99,22 @@ Transform your smart home experience with powerful AI assistance powered by mult
|
|||||||
- Python 3.9 or newer
|
- Python 3.9 or newer
|
||||||
- Stable internet connection
|
- Stable internet connection
|
||||||
|
|
||||||
### Configuration Options
|
## Configuration Options
|
||||||
- API Provider (OpenAI/Anthropic)
|
|
||||||
- API Key (provider-specific)
|
|
||||||
- Model Selection (flexible, provider-specific models)
|
|
||||||
- Temperature (Creativity control, 0.0-2.0)
|
|
||||||
- Max Tokens (Response length limit)
|
|
||||||
- Request Interval (API call throttling)
|
|
||||||
- Number of messages in history to keep (controls conversation memory size)
|
|
||||||
- Custom API Endpoint (optional)
|
|
||||||
|
|
||||||
#### ⓘ Potentially Compatible Providers
|
### 🔧 **Core Configuration Settings**
|
||||||
|
- 🌐 **API Provider**: OpenAI/Anthropic
|
||||||
|
- 🔑 **API Key**: Provider-specific authentication
|
||||||
|
- 🤖 **Model Selection**: Flexible, provider-specific models
|
||||||
|
- 🌡️ **Temperature**: Creativity control (0.0-2.0)
|
||||||
|
- 📏 **Max Tokens**: Response length limit
|
||||||
|
- ⏱️ **Request Interval**: API call throttling
|
||||||
|
- 💾 **History Size**: Number of messages to retain
|
||||||
|
- 🌍 **Custom API Endpoint**: Optional advanced configuration
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<summary>🌐 Potentially Compatible Providers</summary>
|
||||||
|
|
||||||
|
#### Flexible Provider Ecosystem
|
||||||
The integration is designed to be flexible and may work with other providers offering OpenAI-compatible APIs:
|
The integration is designed to be flexible and may work with other providers offering OpenAI-compatible APIs:
|
||||||
- Groq
|
- Groq
|
||||||
- Together AI
|
- Together AI
|
||||||
@@ -119,18 +124,19 @@ The integration is designed to be flexible and may work with other providers off
|
|||||||
- Local AI servers (like Ollama)
|
- Local AI servers (like Ollama)
|
||||||
- Custom OpenAI-compatible endpoints
|
- Custom OpenAI-compatible endpoints
|
||||||
|
|
||||||
#### Additional Notes
|
#### 🚨 Compatibility Notes
|
||||||
- Not all providers guarantee full compatibility
|
- Not all providers guarantee full compatibility
|
||||||
- Performance may vary between providers
|
- Performance may vary between providers
|
||||||
- Check individual provider's documentation
|
- Check individual provider's documentation
|
||||||
- Ensure your API key has sufficient credits/quota
|
- Ensure your API key has sufficient credits/quota
|
||||||
|
|
||||||
#### Provider Compatibility Requirements
|
#### 🔍 Provider Compatibility Requirements
|
||||||
To be compatible, a provider should support:
|
To be compatible, a provider should support:
|
||||||
- OpenAI-like REST API structure
|
- OpenAI-like REST API structure
|
||||||
- JSON request/response format
|
- JSON request/response format
|
||||||
- Standard authentication method
|
- Standard authentication method
|
||||||
- Similar model parameter handling
|
- Similar model parameter handling
|
||||||
|
</details>
|
||||||
|
|
||||||
## ⚡ Installation
|
## ⚡ Installation
|
||||||
|
|
||||||
@@ -159,7 +165,8 @@ To be compatible, a provider should support:
|
|||||||
3. Search for "HA Text AI"
|
3. Search for "HA Text AI"
|
||||||
4. Follow the configuration steps
|
4. Follow the configuration steps
|
||||||
|
|
||||||
### Via YAML (Advanced)
|
<details>
|
||||||
|
<summary>📦 Via YAML (Advanced)</summary>
|
||||||
|
|
||||||
### Platform Configuration (Global Settings)
|
### Platform Configuration (Global Settings)
|
||||||
|
|
||||||
@@ -217,6 +224,8 @@ sensor:
|
|||||||
| `temperature` | Float | ❌ | Platform setting | Override global temperature |
|
| `temperature` | Float | ❌ | Platform setting | Override global temperature |
|
||||||
| `max_tokens` | Integer | ❌ | Platform setting | Override global max tokens |
|
| `max_tokens` | Integer | ❌ | Platform setting | Override global max tokens |
|
||||||
|
|
||||||
|
</details>
|
||||||
|
|
||||||
## 🛠️ Available Services
|
## 🛠️ Available Services
|
||||||
|
|
||||||
### ask_question
|
### ask_question
|
||||||
|
|||||||
Reference in New Issue
Block a user