This commit is contained in:
Larfii
2024-10-08 14:39:05 +08:00
parent 44463503fd
commit c18697305e
15 changed files with 174 additions and 9 deletions

View File

@@ -6,8 +6,8 @@ import jsonlines
from openai import OpenAI
def batch_eval(query_file, result1_file, result2_file, output_file_path, api_key):
client = OpenAI(api_key=api_key)
def batch_eval(query_file, result1_file, result2_file, output_file_path):
client = OpenAI()
with open(query_file, 'r') as f:
data = f.read()