feat:更改代码分布,实现模块化添加功能
Some checks failed
Python application test / build (pull_request) Failing after 12m34s

This commit is contained in:
2024-04-28 21:53:43 +08:00
parent 9e6b13d80e
commit 18454a0228
3 changed files with 54 additions and 50 deletions

View File

@@ -4,10 +4,6 @@ from .utils import *
import openai
def detect_gpt(filename: str):
content = read_file_content(filename)
return detectGPT(content)
def detectGPT(content: str):
client = openai.OpenAI(api_key=os.environ.get("OPENAI_API_KEY"))
text = content