mirror of
https://github.com/xtekky/gpt4free.git
synced 2025-10-21 15:29:26 +08:00
Add some arguments to chat completion api, update discord links
This commit is contained in:
@@ -108,11 +108,9 @@ class Api:
|
||||
}
|
||||
|
||||
def _create_response_stream(self, kwargs: dict, conversation_id: str, provider: str, download_images: bool = True) -> Iterator:
|
||||
debug.logs = []
|
||||
print_callback = debug.log_handler
|
||||
def log_handler(text: str):
|
||||
debug.logs.append(text)
|
||||
print_callback(text)
|
||||
print(text)
|
||||
debug.log_handler = log_handler
|
||||
try:
|
||||
result = ChatCompletion.create(**kwargs)
|
||||
|
Reference in New Issue
Block a user