feat:对正则匹配出的文件再过一次llm检测

This commit is contained in:
2024-06-03 20:34:30 +08:00
parent e653ddd726
commit 4e67f4ebed
2 changed files with 20 additions and 2 deletions

View File

@@ -25,7 +25,7 @@ def detectGPT(content: str):
signal.signal(signal.SIGTERM, timeout_handler)
signal.alarm(10)
client = openai.OpenAI(api_key=api_key)
client = openai.OpenAI(base_url="https://api.xiaoai.plus/v1",api_key=api_key)
text = content
# client = openai.OpenAI(api_key="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") #测试用key
response = client.chat.completions.create(