OPENAI ASSISTANT IN OPENWEBUI

tool

Use your own ASSISTANT created in OPENAI directly in your OPENWEBUI. Follow this steps: 1 - Create your assistant at https://platform.openai.com/assistants; 2 - Create your OPENAI KEY; 3 - Go to your OPENWEBUI, Workspace, tools; 4 - Click in +, copy this code, paste this code; 5 - Insert in the CODE your the OPENAI KEY; 6 - Insert in the CODE your the OPENAI ASSISTANT ID; 7 - Go to your OPENWEBUI, Workspace, Click in +, create a new Workspace; 8 - In the Workspace configuration, select the tool that you already create; 9 - Save; 10 - Use your openai assistant in this workspace.

contacnet
@contacnet
·
2 years ago
373
0
1.7K
Updated 2 years ago
Created Apr 8, 2025
openai_assistant_in_openwebui.py
Python · 103 lines
"""
title: OPENAI ASSISTANT IN OPENWEBUI
author: [email protected]
version: 1.0.1
description: A tool to use the OPENAI ASSISTANTS
requirements: requests
"""

import time
import requests
from datetime import datetime
from pydantic import BaseModel

Use your own ASSISTANT created in OPENAI directly in your OPENWEBUI. Follow this steps: 1 - Create your assistant at https://platform.openai.com/assistants; 2 - Create your OPENAI KEY; 3 - Go to your OPENWEBUI, Workspace, tools; 4 - Click in +, copy this code, paste this code; 5 - Insert in the CODE your the OPENAI KEY; 6 - Insert in the CODE your the OPENAI ASSISTANT ID; 7 - Go to your OPENWEBUI, Workspace, Click in +, create a new Workspace; 8 - In the Workspace configuration, select the tool that you already create; 9 - Save; 10 - Use your openai assistant in this workspace.


0