This commit is contained in:
Slipstream 2025-05-09 17:44:26 -06:00
parent 55b647fe65
commit 31905f4f50
Signed by: slipstream
GPG Key ID: 13E498CE010AC6FD
3 changed files with 4 additions and 4 deletions

View File

@ -9,8 +9,8 @@ import json
sys.path.append(os.path.join(os.path.dirname(__file__), 'api_service')) sys.path.append(os.path.join(os.path.dirname(__file__), 'api_service'))
# Import the API client and models # Import the API client and models
from discord_client import ApiClient from api_service.discord_client import ApiClient
from api_models import Conversation, UserSettings, Message from api_service.api_models import Conversation, UserSettings, Message
# API client instance # API client instance
api_client = None api_client = None

View File

@ -277,7 +277,7 @@ async def send_discord_message_via_api(channel_id: int, content: str, timeout: f
# Import dependencies after defining settings and constants # Import dependencies after defining settings and constants
# Use absolute imports to avoid issues when running the server directly # Use absolute imports to avoid issues when running the server directly
from api_service import dependencies # type: ignore from api_service import dependencies # type: ignore
from api_models import ( from api_service.api_models import (
Conversation, Conversation,
UserSettings, UserSettings,
GetConversationsResponse, GetConversationsResponse,

View File

@ -2,7 +2,7 @@ import aiohttp
import json import json
import datetime import datetime
from typing import Dict, List, Optional, Any, Union from typing import Dict, List, Optional, Any, Union
from api_models import Conversation, UserSettings, Message from api_service.api_models import Conversation, UserSettings, Message
class ApiClient: class ApiClient:
def __init__(self, api_url: str, token: Optional[str] = None): def __init__(self, api_url: str, token: Optional[str] = None):