1
This commit is contained in:
parent
55b647fe65
commit
31905f4f50
@ -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
|
||||||
|
@ -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,
|
||||||
|
@ -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):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user