File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
examples/pydantic_ai_examples Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ def weather_forecast(
62
62
return ctx.deps.get_forecast(location, forecast_date)
63
63
64
64
65
- async def run_weather_forecast ( # (3 )!
65
+ async def run_weather_forecast ( # (4 )!
66
66
user_prompts : list[tuple[str , int ]], conn : DatabaseConn
67
67
):
68
68
""" Run weather forecast for a list of user prompts and save."""
Original file line number Diff line number Diff line change @@ -142,6 +142,7 @@ async def insert_doc_section(
142
142
exists = await pool .fetchval ('SELECT 1 FROM doc_sections WHERE url = $1' , url )
143
143
if exists :
144
144
logfire .info ('Skipping {url=}' , url = url )
145
+ return
145
146
146
147
with logfire .span ('create embedding for {url=}' , url = url ):
147
148
embedding = await openai .embeddings .create (
You can’t perform that action at this time.
0 commit comments