@@ -297,7 +297,7 @@ instrumentation_settings = InstrumentationSettings(
297297 event_logger_provider = EventLoggerProvider(),
298298)
299299
300- agent = Agent(' gpt-4o' , instrument = instrumentation_settings)
300+ agent = Agent(' openai: gpt-4o' , instrument = instrumentation_settings)
301301# or to instrument all agents:
302302Agent.instrument_all(instrumentation_settings)
303303```
@@ -309,7 +309,7 @@ from pydantic_ai import Agent
309309from pydantic_ai.models.instrumented import InstrumentationSettings, InstrumentedModel
310310
311311settings = InstrumentationSettings()
312- model = InstrumentedModel(' gpt-4o' , settings)
312+ model = InstrumentedModel(' openai: gpt-4o' , settings)
313313agent = Agent(model)
314314```
315315
@@ -320,7 +320,7 @@ from pydantic_ai.agent import Agent, InstrumentationSettings
320320
321321instrumentation_settings = InstrumentationSettings(include_binary_content = False )
322322
323- agent = Agent(' gpt-4o' , instrument = instrumentation_settings)
323+ agent = Agent(' openai: gpt-4o' , instrument = instrumentation_settings)
324324# or to instrument all agents:
325325Agent.instrument_all(instrumentation_settings)
326326```
@@ -337,7 +337,7 @@ from pydantic_ai.models.instrumented import InstrumentationSettings
337337
338338instrumentation_settings = InstrumentationSettings(include_content = False )
339339
340- agent = Agent(' gpt-4o' , instrument = instrumentation_settings)
340+ agent = Agent(' openai: gpt-4o' , instrument = instrumentation_settings)
341341# or to instrument all agents:
342342Agent.instrument_all(instrumentation_settings)
343343```
0 commit comments