Skip to content

Commit

Permalink
typing
Browse files Browse the repository at this point in the history
  • Loading branch information
SermetPekin committed Dec 3, 2024
1 parent 00d1afd commit 5b7a2b0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion evdschat/common/bridge.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def check_c_executable(test=False) -> Union[Path, bool]:

lib_path = check_c_executable()
if lib_path:
lib = ctypes.CDLL(lib_path)
lib = ctypes.CDLL(str(lib_path))

lib.post_request.argtypes = [ctypes.POINTER(PostParams)]
lib.post_request.restype = ctypes.c_char_p
Expand Down
10 changes: 4 additions & 6 deletions evdschat/core/chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ class GotUndefinedResult(BaseException): ...
def chat(
prompt: str,
getter: ModelAbstract = None,
debug=False,
test=False,
force=False,
) -> Union[Tuple[ResultChat, Notes], None]:
debug: bool = False,
test: bool = False,
force: bool = False,
) -> Union[Tuple[ResultChat | str, Notes], None]:
"""
Function to process the chat prompt and return the result.
Expand All @@ -49,8 +49,6 @@ def chat(
if getter is None:
getter = OpenAI()



if not force and PytestTesting().is_testing():
test = True

Expand Down

0 comments on commit 5b7a2b0

Please sign in to comment.