Skip to content

Commit

Permalink
Update logpp.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Loping151 authored Sep 19, 2023
1 parent 00a0e29 commit c6107a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion logpp.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
def create_csv_file(file_name):
with open(file_name, mode='w', newline='', encoding='utf-8') as file:
writer = csv.writer(file)
writer.writerow(["时间", "用户名", "群聊", "输入token数", "输出token数", "实际请求内容", "装饰后输出内容"])
writer.writerow(["时间", "用户名", "群聊", "输入token数", "输出token数", "实际请求内容", "输出内容"])

def add_row_to_csv(file_name, current_time, user, group, in_token, out_token, input_text, reply):
with open(file_name, mode='a', newline='', encoding='utf-8') as file:
Expand Down

0 comments on commit c6107a2

Please sign in to comment.