Skip to content

Commit 72f74b2

Browse files
authored
Multiple model support in AZURE_AI_MODEL (#19)
* Add new Models * Add #18 * Update N8N Test Agent Template
1 parent 73a0f9b commit 72f74b2

3 files changed

Lines changed: 187 additions & 103 deletions

File tree

README.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ Pipelines are processing functions that extend Open WebUI with **custom AI model
7878
### **1. [Azure AI Foundry Pipeline](./pipelines/azure/azure_ai_foundry.py)**
7979

8080
- Enables interaction with **Azure OpenAI** and other **Azure AI** models.
81-
- Supports dynamic model selection via `x-ms-model-mesh-model-name` headers.
81+
- Supports multiple Azure AI models selection via the `AZURE_AI_MODEL` environment variable (e.g. `gpt-4o, gpt-4o-mini`).
8282
- Filters valid parameters to ensure clean requests.
8383
- Handles both streaming and non-streaming responses.
8484
- Provides configurable error handling and timeouts.
@@ -87,6 +87,7 @@ Pipelines are processing functions that extend Open WebUI with **custom AI model
8787

8888
🔗 [Azure AI Pipeline in Open WebUI](https://openwebui.com/f/owndev/azure_ai/)
8989

90+
9091
### **2. [N8N Pipeline](./pipelines/n8n/n8n.py)**
9192

9293
- Integrates **Open WebUI** with **N8N**, an automation and workflow platform.
@@ -100,16 +101,14 @@ Pipelines are processing functions that extend Open WebUI with **custom AI model
100101

101102
🔗 [Learn More About N8N](https://n8n.io/)
102103

104+
103105
### **3. [Infomaniak](./pipelines/infomaniak/infomaniak.py)**
104106

105107
- Integrates **Open WebUI** with **Infomaniak**, a Swiss web hosting and cloud services provider.
106108
- Sends messages from Open WebUI to an **Infomaniak AI Tool**.
107109
- Supports encryption of sensitive information like API keys.
108110

109-
> **Important**: The function ID in Open WebUI must not contain the name `infomaniak`. Because of a [bug](https://github.com/open-webui/open-webui/discussions/10914) in Open WebUI, the function will not work if the id contains `infomaniak`.
110-
111-
112-
🔗 [Infomaniak Pipeline in Open WebUI](https://openwebui.com/f/owndev/im_ai_tools/)
111+
🔗 [Infomaniak Pipeline in Open WebUI](https://openwebui.com/f/owndev/infomaniak_ai_tools)
113112

114113
🔗 [Learn More About Infomaniak](https://www.infomaniak.com/en/hosting/ai-tools)
115114

@@ -135,17 +134,16 @@ Filters allow for **preprocessing and postprocessing** of data within Open WebUI
135134
The repository includes functions specifically designed for **Azure AI**, supporting both **Azure OpenAI** models and general **Azure AI** services.
136135

137136
### Features:
138-
- **Azure OpenAI API Support**: Access models like **GPT-4, GPT-3.5**, and **other fine-tuned AI models** via Azure.
137+
- **Azure OpenAI API Support**: Access models like **GPT-4o, o3**, and **other fine-tuned AI models** via Azure.
139138
- **Azure AI Model Deployment**: Connect to **custom models** hosted on Azure AI.
140-
- **Dynamic Model Selection**: Choose models via the `x-ms-model-mesh-model-name` header or environment variables.
141139
- **Secure API Requests**: Supports API key authentication and environment variable configurations.
142140

143141
### Environment Variables:
144142
For Azure AI-based functions, set the following:
145143
```bash
146144
AZURE_AI_API_KEY="your-api-key"
147145
AZURE_AI_ENDPOINT="https://your-service.openai.azure.com/chat/completions?api-version=2024-05-01-preview"
148-
AZURE_AI_MODEL="gpt-4o" # Optional model name, only necessary if not Azure OpenAI or if model name not in URL (e.g. "https://<your-endpoint>/openai/deployments/<model-name>/chat/completions").
146+
AZURE_AI_MODEL="gpt-4o, gpt-4o-mini" # Optional model name, only necessary if not Azure OpenAI or if model name not in URL (e.g. "https://<your-endpoint>/openai/deployments/<model-name>/chat/completions").
149147
```
150148

151149
---

0 commit comments

Comments
 (0)