Merge branch 'zdy'

This commit is contained in:
David Chang
2024-02-01 22:58:19 +08:00
2 changed files with 7 additions and 3 deletions

View File

@@ -481,11 +481,13 @@ class GPT4v_Agent:
"messages": messages,
"max_tokens": self.max_tokens
})
except:
except Exception as e:
logger.warning("LLM INVOCATION ERROR: %s", str(e))
response = ""
logger.debug("RESPONSE: %s", response)
# {{{
if self.exp == "seeact":
messages.append({
"role": "assistant",
@@ -521,7 +523,7 @@ class GPT4v_Agent:
except Exception as e:
print("Failed to parse action from response", e)
actions = None
self.thoughts.append("")
self.thoughts.append("") # }}}
return actions

View File

@@ -39,4 +39,6 @@ fastdtw
odfpy
openai
func-timeout
beautifulsoup4
beautifulsoup4
dashscope
google-generativeai