Skip to content

Commit

Permalink
Updated the example to have MD_JSON type
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanleomk committed May 1, 2024
1 parent b8c5950 commit 48f5b01
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions examples/logfire/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@
openai_client = OpenAI()
logfire.configure(pydantic_plugin=logfire.PydanticPlugin(record="all"))
logfire.instrument_openai(openai_client)
client = instructor.from_openai(
openai_client, mode=instructor.function_calls.Mode.MD_JSON
)
client = instructor.from_openai(openai_client, mode=instructor.Mode.MD_JSON)


def md_to_df(data: Any) -> Any:
Expand Down

0 comments on commit 48f5b01

Please sign in to comment.