mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-09 08:08:32 +00:00
Drop prints
This commit is contained in:
@@ -216,7 +216,6 @@ def convert_with_instructions(
|
|||||||
|
|
||||||
def get_conversion_instructions(model: Type[BaseModel], llm: Any) -> str:
|
def get_conversion_instructions(model: Type[BaseModel], llm: Any) -> str:
|
||||||
instructions = "Please convert the following text into valid JSON."
|
instructions = "Please convert the following text into valid JSON."
|
||||||
print("Using function calling: ", llm.supports_function_calling())
|
|
||||||
if llm.supports_function_calling():
|
if llm.supports_function_calling():
|
||||||
model_schema = PydanticSchemaParser(model=model).get_schema()
|
model_schema = PydanticSchemaParser(model=model).get_schema()
|
||||||
instructions += (
|
instructions += (
|
||||||
@@ -225,7 +224,6 @@ def get_conversion_instructions(model: Type[BaseModel], llm: Any) -> str:
|
|||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
model_description = generate_model_description(model)
|
model_description = generate_model_description(model)
|
||||||
print("Model description: ", model_description)
|
|
||||||
instructions += (
|
instructions += (
|
||||||
f"\n\nOutput ONLY the valid JSON and nothing else.\n\n"
|
f"\n\nOutput ONLY the valid JSON and nothing else.\n\n"
|
||||||
f"The JSON must follow this format exactly:\n{model_description}"
|
f"The JSON must follow this format exactly:\n{model_description}"
|
||||||
|
|||||||
Reference in New Issue
Block a user