Integrate OpenWebUI bot with AI service

This commit is contained in:
Iyeoluwa Akinrinola
2025-05-20 02:18:46 +01:00
parent 730009ae87
commit 0a27103875
46 changed files with 1749 additions and 3012 deletions
+189
View File
@@ -225,5 +225,194 @@
],
"team_members": [],
"openwebui_channel_id": null
},
"0967f62c-c5b9-4d40-b64e-8758dc42b124": {
"id": "0967f62c-c5b9-4d40-b64e-8758dc42b124",
"title": "Mention Test Chat 2025-05-19 16:31:41",
"user_id": "test_user",
"model_id": "llama3.1",
"is_team_chat": true,
"created_at": "2025-05-19T16:31:41.897128",
"updated_at": "2025-05-19T16:31:42.669052",
"messages": [
{
"id": "b6097881-e33e-4e52-897f-27c4f3ded33e",
"content": "This is a message without a mention: Can you help me with a project?",
"user_id": "test_user",
"is_user_message": true,
"timestamp": "2025-05-19T16:31:42.077261"
},
{
"id": "490c6646-f4c5-4f78-8982-2ad91977056f",
"content": "Connection error to Ollama API: HTTPConnectionPool(host='104.225.217.215', port=11434): Max retries exceeded with url: /api/chat (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x10f679110>: Failed to establish a new connection: [Errno 61] Connection refused')). Please check if Ollama is running at http://104.225.217.215:11434.",
"user_id": null,
"is_user_message": false,
"timestamp": "2025-05-19T16:31:42.346450"
},
{
"id": "ade9f283-35b8-467a-bf45-98a327e30c99",
"content": "@ai Can you help me with a project?",
"user_id": "test_user",
"is_user_message": true,
"timestamp": "2025-05-19T16:31:42.373840"
},
{
"id": "8e971524-ad12-4237-b1d1-ea9142c89887",
"content": "Connection error to Ollama API: HTTPConnectionPool(host='104.225.217.215', port=11434): Max retries exceeded with url: /api/chat (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x10f65fd50>: Failed to establish a new connection: [Errno 61] Connection refused')). Please check if Ollama is running at http://104.225.217.215:11434.",
"user_id": null,
"is_user_message": false,
"timestamp": "2025-05-19T16:31:42.669036"
}
],
"team_members": [
"test_user",
"test_user2"
],
"openwebui_channel_id": null
},
"5b6a2e66-035f-4810-b46f-9b035da6baa7": {
"id": "5b6a2e66-035f-4810-b46f-9b035da6baa7",
"title": "Mention Test Chat 2025-05-19 16:36:11",
"user_id": "test_user",
"model_id": "llama3.1",
"is_team_chat": true,
"created_at": "2025-05-19T16:36:11.848997",
"updated_at": "2025-05-19T16:36:12.626528",
"messages": [
{
"id": "2f27e470-1406-4863-86ea-c6dc83d0a114",
"content": "This is a message without a mention: Can you help me with a project?",
"user_id": "test_user",
"is_user_message": true,
"timestamp": "2025-05-19T16:36:11.983300"
},
{
"id": "606353ef-079e-40b0-ade9-247aa07b487c",
"content": "Connection error to Ollama API: HTTPConnectionPool(host='104.225.217.215', port=11434): Max retries exceeded with url: /api/chat (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x10f855890>: Failed to establish a new connection: [Errno 61] Connection refused')). Please check if Ollama is running at http://104.225.217.215:11434.",
"user_id": null,
"is_user_message": false,
"timestamp": "2025-05-19T16:36:12.280914"
},
{
"id": "4e2bdf6b-052c-4fa1-8c41-b180fcb6d9f3",
"content": "@ai Can you help me with a project?",
"user_id": "test_user",
"is_user_message": true,
"timestamp": "2025-05-19T16:36:12.333088"
},
{
"id": "4af0d91d-4b76-4ed1-9305-5ef999cfb3a6",
"content": "Connection error to Ollama API: HTTPConnectionPool(host='104.225.217.215', port=11434): Max retries exceeded with url: /api/chat (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x10f857f10>: Failed to establish a new connection: [Errno 61] Connection refused')). Please check if Ollama is running at http://104.225.217.215:11434.",
"user_id": null,
"is_user_message": false,
"timestamp": "2025-05-19T16:36:12.626493"
}
],
"team_members": [
"test_user",
"test_user2"
],
"openwebui_channel_id": null
},
"7e3d4d9a-3b53-4169-bdb5-49853d2ee147": {
"id": "7e3d4d9a-3b53-4169-bdb5-49853d2ee147",
"title": "Webhook Test Chat 2025-05-19 17:31:02",
"user_id": "test_user",
"model_id": "llama3.1",
"is_team_chat": true,
"created_at": "2025-05-19T17:31:02.808376",
"updated_at": "2025-05-19T17:31:02.809151",
"messages": [],
"team_members": [
"test_user"
],
"openwebui_channel_id": null
},
"db1531f0-23b8-44be-be0b-4468469ddfd1": {
"id": "db1531f0-23b8-44be-be0b-4468469ddfd1",
"title": "Channel mock-channel-123",
"user_id": "test_user",
"model_id": "llama3.1",
"is_team_chat": true,
"created_at": "2025-05-19T17:31:05.523198",
"updated_at": "2025-05-19T17:31:08.008697",
"messages": [
{
"id": "f1a41e2c-67d5-4713-9690-31de7957e880",
"content": "Can you help me with a project?",
"user_id": "test_user",
"is_user_message": true,
"timestamp": "2025-05-19T17:31:07.159077"
},
{
"id": "97e3ab10-31f8-4c4f-af0f-828e7d9b1583",
"content": "Connection error to Ollama API: HTTPConnectionPool(host='104.225.217.215', port=11434): Max retries exceeded with url: /api/chat (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x109592410>: Failed to establish a new connection: [Errno 61] Connection refused')). Please check if Ollama is running at http://104.225.217.215:11434.",
"user_id": null,
"is_user_message": false,
"timestamp": "2025-05-19T17:31:08.008671"
}
],
"team_members": [
"test_user"
],
"openwebui_channel_id": "mock-channel-123"
},
"cadd55b8-93f9-469a-99ca-3569fddf2a89": {
"id": "cadd55b8-93f9-469a-99ca-3569fddf2a89",
"title": "Test Team Chat",
"user_id": "test_user",
"model_id": "llama3.1",
"is_team_chat": true,
"created_at": "2025-05-19T18:05:04.943296",
"updated_at": "2025-05-19T18:05:57.781112",
"messages": [
{
"id": "38bf0784-ff2f-45ed-88b0-b7bbe4fe73da",
"content": "Hello, AI!",
"user_id": "test_user",
"is_user_message": true,
"timestamp": "2025-05-19T18:05:18.975944"
},
{
"id": "5b4b2c32-551a-413e-81f1-8d762f38309e",
"content": "How can I assist you today? Do you have any questions or need help with something specific?",
"user_id": null,
"is_user_message": false,
"timestamp": "2025-05-19T18:05:57.781076"
}
],
"team_members": [
"test_user"
],
"openwebui_channel_id": null
},
"a8ecdf7f-3d84-495b-85e3-846acffcfda6": {
"id": "a8ecdf7f-3d84-495b-85e3-846acffcfda6",
"title": "Channel test-channel-123",
"user_id": "test_user",
"model_id": "llama3.1",
"is_team_chat": true,
"created_at": "2025-05-19T18:06:19.115818",
"updated_at": "2025-05-19T18:07:05.899175",
"messages": [
{
"id": "6b2021b9-fea3-4b5b-b48e-f338dbf53338",
"content": "Hello",
"user_id": "test_user",
"is_user_message": true,
"timestamp": "2025-05-19T18:06:19.647395"
},
{
"id": "6770337d-fc5d-4ecc-9a0d-e272a02bd31c",
"content": "How can I assist you today? Do you have any questions or topics you'd like to discuss? I'm here to help with anything from answering general knowledge questions to providing guidance on a specific problem. Just let me know what's on your mind!",
"user_id": null,
"is_user_message": false,
"timestamp": "2025-05-19T18:07:05.899147"
}
],
"team_members": [
"test_user"
],
"openwebui_channel_id": "test-channel-123"
}
}