mirror of
https://github.com/GH05TCREW/pentestagent.git
synced 2026-03-07 06:14:08 +00:00
Merge pull request #35 from selectqoma/fix/gemini-duplicate-assistant-message
fix: remove duplicate assistant message when content+tool_calls present (fixes Gemini #8)
This commit is contained in:
@@ -184,9 +184,6 @@ class CrewOrchestrator:
|
||||
# If there are tool calls, the content is "thinking" (reasoning before action)
|
||||
if response.content:
|
||||
yield {"phase": "thinking", "content": response.content}
|
||||
self._messages.append(
|
||||
{"role": "assistant", "content": response.content}
|
||||
)
|
||||
|
||||
def get_tc_name(tc):
|
||||
if hasattr(tc, "function"):
|
||||
|
||||
@@ -363,8 +363,8 @@ class LLM:
|
||||
"claude-sonnet-4-20250514",
|
||||
"claude-opus-4-20250514",
|
||||
# Google
|
||||
"gemini-2.5-pro",
|
||||
"gemini-2.5-flash",
|
||||
"gemini/gemini-2.5-pro",
|
||||
"gemini/gemini-2.5-flash",
|
||||
# Others via LiteLLM
|
||||
"ollama/llama3",
|
||||
"ollama/mixtral",
|
||||
|
||||
Reference in New Issue
Block a user