mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-27 09:08:14 +00:00
fix: change github action to test different pipeline
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -200,6 +200,8 @@ def test_multiple_output_type_error():
|
|||||||
|
|
||||||
@pytest.mark.vcr(filter_headers=["authorization"])
|
@pytest.mark.vcr(filter_headers=["authorization"])
|
||||||
def test_output_pydantic():
|
def test_output_pydantic():
|
||||||
|
from langchain_openai import ChatOpenAI
|
||||||
|
|
||||||
class ScoreOutput(BaseModel):
|
class ScoreOutput(BaseModel):
|
||||||
score: int
|
score: int
|
||||||
|
|
||||||
@@ -215,6 +217,7 @@ def test_output_pydantic():
|
|||||||
expected_output="The score of the title.",
|
expected_output="The score of the title.",
|
||||||
output_pydantic=ScoreOutput,
|
output_pydantic=ScoreOutput,
|
||||||
agent=scorer,
|
agent=scorer,
|
||||||
|
llm=ChatOpenAI(model="gpt-4o"),
|
||||||
)
|
)
|
||||||
|
|
||||||
crew = Crew(agents=[scorer], tasks=[task])
|
crew = Crew(agents=[scorer], tasks=[task])
|
||||||
|
|||||||
Reference in New Issue
Block a user