File tree 2 files changed +5
-7
lines changed
2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -312,7 +312,7 @@ async def test_fn_with_instructions_and_context(self):
312
312
@marvin .fn (instructions = "Only return tropical fruits" )
313
313
def get_fruit_details (name : str ) -> dict [str , str ]:
314
314
"""Returns details about the fruit"""
315
- return {"hint if unknown" : "describe a coconut" }
315
+ return {"hint if unknown" : "its a coconut" }
316
316
317
317
result = get_fruit_details ("unknown" )
318
318
await assert_llm_equal (result , "a dictionary describing a coconut" )
Original file line number Diff line number Diff line change 1
- < << << << HEAD
2
- from pydantic_ai import ImageUrl
3
- from pydantic_ai .models .test import TestModel
4
- == == == =
5
1
from pathlib import Path
6
2
7
3
import pytest
8
4
from pydantic_ai import BinaryContent , ImageUrl
9
- > >> >> >> d450e4b0 ( move to simpler bytes ser )
5
+ from pydantic_ai . models . test import TestModel
10
6
11
7
import marvin
12
8
@@ -72,10 +68,12 @@ async def test_run_stream(self, test_model: TestModel):
72
68
"actor-end-turn" ,
73
69
"orchestrator-end" ,
74
70
]
71
+
72
+
75
73
class TestRunWithAudio :
76
74
@pytest .fixture
77
75
def youre_funny_audio_data (self ) -> BinaryContent :
78
- data = Path (__file__ ).parent .parent .parent / "data" / "youre-funny-2 .wav"
76
+ data = Path (__file__ ).parent .parent .parent / "data" / "youre-funny.wav"
79
77
return BinaryContent (data = data .read_bytes (), media_type = "audio/wav" )
80
78
81
79
@pytest .mark .usefixtures ("gpt_4o_audio_preview" )
You can’t perform that action at this time.
0 commit comments