Skip to content

Commit

Permalink
pass client kwargs
Browse files Browse the repository at this point in the history
  • Loading branch information
jerpint committed Nov 20, 2023
1 parent a87430d commit 53efd5f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion buster/validators/validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ class DocumentsValidator:
def __init__(
self,
completion_kwargs: Optional[dict] = None,
client_kwargs: Optional[dict] = None,
system_prompt: Optional[str] = None,
user_input_formatter: Optional[str] = None,
max_calls: int = 30,
Expand Down Expand Up @@ -142,7 +143,7 @@ def __init__(
"temperature": 0,
}

self.completer = ChatGPTCompleter(completion_kwargs=completion_kwargs)
self.completer = ChatGPTCompleter(completion_kwargs=completion_kwargs, client_kwargs=client_kwargs)

self.max_calls = max_calls

Expand Down

0 comments on commit 53efd5f

Please sign in to comment.