Skip to content

Commit

Permalink
[hot fix] variable name not apply
Browse files Browse the repository at this point in the history
  • Loading branch information
xlinx committed Aug 28, 2024
1 parent 76dacb2 commit 374c0b7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
18 changes: 7 additions & 11 deletions auto_prompt_llm.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def call_llm_text(clip,
llm_recursive_use, llm_keep_your_prompt_ahead,
llm_before_action_cmd_feedback_type, llm_before_action_cmd,
llm_post_action_cmd_feedback_type, llm_post_action_cmd):
llm_before_action_cmd_return_value = do_subprocess_action(llm_before_action_cmd)
# llm_before_action_cmd_return_value = do_subprocess_action(llm_before_action_cmd)

if EnumCmdReturnType.LLM_USER_PROMPT.value in llm_before_action_cmd_feedback_type:
llm_text_ur_prompt += llm_before_action_cmd_return_value
Expand Down Expand Up @@ -156,11 +156,9 @@ def call_llm_text(clip,
# completion = dict_2_class_pass()
# completion.__dict__.update(json.loads(default_openai_echo))
log.warning("[Auto-LLM][OpenAILib][OpenAIError]Missing LLM Server?")

# log.warning("[Auto-LLM][OpenAILib][completion]" + json.dumps(completion, default=vars))

result = result.replace('\n', ' ')
do_subprocess_action(llm_post_action_cmd)
# do_subprocess_action(llm_post_action_cmd)
return result


Expand Down Expand Up @@ -238,13 +236,11 @@ def call_llm_eye_open(clip,

# log.warning("[Auto-LLM][OpenAILib][completion]" + json.dumps(completion, default=vars))
result = result.replace('\n', ' ')
result_translate = "wawa"

llm_history_array.append([result_vision, llm_vision_system_prompt, llm_vision_ur_prompt, result_translate])
if len(llm_history_array) > 3:
llm_history_array.remove(llm_history_array[0])
print("[][auto-llm][call_llm_eye_open] result_vision=", result_vision)

# result_translate = "wawa"
# llm_history_array.append([result, llm_vision_system_prompt, llm_vision_ur_prompt, result_translate])
# if len(llm_history_array) > 3:
# llm_history_array.remove(llm_history_array[0])
# print("[][auto-llm][call_llm_eye_open] result_vision=", result_vision)
# do_subprocess_action(llm_post_action_cmd)

return result
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[project]
name = "comfyui-decadetw-auto-prompt-llm"
description = "NODES: Auto-LLM-Text-Vision, Auto-LLM-Text, Auto-LLM-Vision"
version = "1.20240827.1"
version = "1.20240827.2"
license = {text = "MIT License"}

[project.urls]
Expand Down

0 comments on commit 374c0b7

Please sign in to comment.