mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
Merge branch '3.1' into api-issue-10-0eztih
This commit is contained in:
5 files changed
+149
No files matched your search
@@ -18,6 +18,7 @@ from fastapi import APIRouter, Depends, HTTPException, status
|
||||
|
||||
# Check AI Copilot availability
|
||||
from gns3server.agent import AI_COPILOT_AVAILABLE
|
||||
from gns3server.api.operation_ids import add_stub_routes
|
||||
from gns3server.config import Config
|
||||
|
||||
# Conditionally import AI-dependent routes
|
||||
@@ -44,6 +45,10 @@ else:
|
||||
detail="AI Copilot is not available. Install AI dependencies with: pip install gns3-server[ai-features]",
|
||||
)
|
||||
|
||||
add_stub_routes(_chat_router, ai_not_available, "chat_not_available")
|
||||
add_stub_routes(_copilot_router, ai_not_available, "copilot_not_available")
|
||||
add_stub_routes(_llm_router, ai_not_available, "llm_not_available")
|
||||
|
||||
|
||||
from . import (
|
||||
acl,
|
||||
|
||||
Reference in new issue
Block a user