Disable critic by default (discord)

This commit is contained in:
mudler
2023-08-26 01:35:57 +02:00
parent d5f72a6c82
commit f740f307e2

View File

@@ -40,7 +40,7 @@ OPENAI_ORG = config["openai"][str("organization")]
FILE_PATH = config["settings"][str("file_path")] FILE_PATH = config["settings"][str("file_path")]
FILE_NAME_FORMAT = config["settings"][str("file_name_format")] FILE_NAME_FORMAT = config["settings"][str("file_name_format")]
CRITIC = config["settings"]["critic"] if "critic" in config["settings"] else False
SIZE_LARGE = "1024x1024" SIZE_LARGE = "1024x1024"
SIZE_MEDIUM = "512x512" SIZE_MEDIUM = "512x512"
SIZE_SMALL = "256x256" SIZE_SMALL = "256x256"
@@ -132,7 +132,7 @@ def run_localagi_thread_history(history, message, thread, loop):
message.content, message.content,
history, history,
subtaskContext=True, subtaskContext=True,
critic=True, critic=CRITIC,
) )
analyze_history(history, conversation_history, call, thread) analyze_history(history, conversation_history, call, thread)
@@ -168,7 +168,7 @@ def run_localagi_message(message, loop):
conversation_history = localagi.evaluate( conversation_history = localagi.evaluate(
message.content, message.content,
[], [],
critic=True, critic=CRITIC,
subtaskContext=True, subtaskContext=True,
) )
analyze_history([], conversation_history, call, message.channel) analyze_history([], conversation_history, call, message.channel)
@@ -225,7 +225,7 @@ def run_localagi(interaction, prompt, loop):
prompt, prompt,
messages, messages,
subtaskContext=True, subtaskContext=True,
critic=True, critic=CRITIC,
) )
analyze_history(messages, conversation_history, call, interaction.channel) analyze_history(messages, conversation_history, call, interaction.channel)
call(sent_message.edit(content=f"<@{user.id}> {conversation_history[-1]['content']}")) call(sent_message.edit(content=f"<@{user.id}> {conversation_history[-1]['content']}"))