feat:更改代码分布,实现模块化添加功能
Some checks failed
Python application test / build (pull_request) Failing after 12m34s
Some checks failed
Python application test / build (pull_request) Failing after 12m34s
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user