From 0dcc8656a16b3f0315bd66c8cc9226e8db6085de Mon Sep 17 00:00:00 2001 From: miteruzo Date: Tue, 24 Dec 2024 01:46:25 +0900 Subject: [PATCH] #3 --- __init__.py | 1 - models.py | 2 +- queries_to_answers.py | 8 ++++---- talk.py | 2 +- 4 files changed, 6 insertions(+), 7 deletions(-) diff --git a/__init__.py b/__init__.py index b2031e7..e69de29 100644 --- a/__init__.py +++ b/__init__.py @@ -1 +0,0 @@ -from . import config, consts, models diff --git a/models.py b/models.py index 3c5ac39..a9fcb43 100644 --- a/models.py +++ b/models.py @@ -4,7 +4,7 @@ from datetime import datetime from eloquent import Model -from config import DB +from .config import DB class AnsweredFlag (Model): diff --git a/queries_to_answers.py b/queries_to_answers.py index c0b58cf..f1e5fd7 100644 --- a/queries_to_answers.py +++ b/queries_to_answers.py @@ -4,10 +4,10 @@ import random from datetime import datetime from typing import TypedDict -from config import DB -from consts import AnswerType, Character, Platform -from models import Answer, AnsweredFlag, Query, User -from talk import Talk +from .config import DB +from .consts import AnswerType, Character, Platform +from .models import Answer, AnsweredFlag, Query, User +from .talk import Talk def main ( diff --git a/talk.py b/talk.py index cb7d729..e524a54 100644 --- a/talk.py +++ b/talk.py @@ -15,7 +15,7 @@ from openai.types.chat import (ChatCompletionAssistantMessageParam, ChatCompletionUserMessageParam) from openai.types.chat.chat_completion_message import ChatCompletionMessage -from connection import OPENAI_API_KEY, OPENAI_ORGANISATION # type: ignore +from .connection import OPENAI_API_KEY, OPENAI_ORGANISATION # type: ignore class Talk: