Skip to content

Commit

Permalink
edit filename: chattool=>chattype
Browse files Browse the repository at this point in the history
  • Loading branch information
RexWzh committed Mar 10, 2024
1 parent 0027578 commit b9c04c6
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion chattool/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
__version__ = '3.1.1'

import os, sys, requests
from .chattool import Chat, Resp
from .chattype import Chat, Resp
from .checkpoint import load_chats, process_chats
from .proxy import proxy_on, proxy_off, proxy_status
from . import request
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion chattool/checkpoint.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import json, warnings, os
from typing import List, Dict, Union, Callable, Any
from .chattool import Chat
from .chattype import Chat
import tqdm

def load_chats( checkpoint:str):
Expand Down
5 changes: 2 additions & 3 deletions tests/test_async.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,8 @@ async def show_resp(chat):
def test_async_process():
chkpoint = testpath + "test_async.jsonl"
t = time.time()
resp = async_chat_completion(chatlogs[:1], chkpoint, clearfile=True, nproc=3)
resp = async_chat_completion(chatlogs, chkpoint, nproc=3)
assert all(resp)
async_chat_completion(chatlogs[:1], chkpoint, clearfile=True, nproc=3)
async_chat_completion(chatlogs, chkpoint, nproc=3)
print(f"Time elapsed: {time.time() - t:.2f}s")

# broken test
Expand Down

0 comments on commit b9c04c6

Please sign in to comment.