mirror of
https://github.com/Paillat-dev/Botator.git
synced 2026-01-02 01:06:19 +00:00
fix(makeprompt.py): add api_key parameter to the generate_response function call to fix missing api_key error
fix(openaicaller.py): fix import statement for num_tokens_from_messages function refactor(openaicaller.py): remove unused api_key parameter from openai_caller class constructor refactor(openaicaller.py): change generate_response and moderation methods to accept variable number of arguments refactor(openaicaller.py): change error_call parameter to be optional and provide a default function if not provided refactor(openaicaller.py): remove unused api_key parameter from generate_response and moderation methods refactor(openaicaller.py): remove unused api_key parameter from main function
This commit is contained in:
@@ -111,6 +111,7 @@ async def chatgpt_process(
|
||||
)
|
||||
response = await caller.generate_response(
|
||||
error_call,
|
||||
api_key=api_key,
|
||||
model=model,
|
||||
messages=msgs,
|
||||
functions=called_functions,
|
||||
|
||||
Reference in New Issue
Block a user