mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-11 00:58:30 +00:00
patching for non-gpt model
This commit is contained in:
@@ -23,7 +23,7 @@ class Converter(OutputConverter):
|
|||||||
if self.is_gpt:
|
if self.is_gpt:
|
||||||
return self._create_instructor().to_pydantic()
|
return self._create_instructor().to_pydantic()
|
||||||
else:
|
else:
|
||||||
return self._create_chain().invoke({})
|
return self._create_chain().invoke({"query": self.text})
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
if current_attempt < self.max_attempts:
|
if current_attempt < self.max_attempts:
|
||||||
return self.to_pydantic(current_attempt + 1)
|
return self.to_pydantic(current_attempt + 1)
|
||||||
|
|||||||
Reference in New Issue
Block a user