feat:对正则匹配出的文件再过一次llm检测
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user