みてるぞ 3 weeks ago
parent
commit
0dcc8656a1
4 changed files with 6 additions and 7 deletions
  1. +0
    -1
      __init__.py
  2. +1
    -1
      models.py
  3. +4
    -4
      queries_to_answers.py
  4. +1
    -1
      talk.py

+ 0
- 1
__init__.py View File

@@ -1 +0,0 @@
from . import config, consts, models

+ 1
- 1
models.py View File

@@ -4,7 +4,7 @@ from datetime import datetime


from eloquent import Model from eloquent import Model


from config import DB
from .config import DB




class AnsweredFlag (Model): class AnsweredFlag (Model):


+ 4
- 4
queries_to_answers.py View File

@@ -4,10 +4,10 @@ import random
from datetime import datetime from datetime import datetime
from typing import TypedDict 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 ( def main (


+ 1
- 1
talk.py View File

@@ -15,7 +15,7 @@ from openai.types.chat import (ChatCompletionAssistantMessageParam,
ChatCompletionUserMessageParam) ChatCompletionUserMessageParam)
from openai.types.chat.chat_completion_message import ChatCompletionMessage 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: class Talk:


Loading…
Cancel
Save