Skip to content

docs: remove unused ModelSettings import in tool use behavior example #3884

Closed
AAliKKhan wants to merge 11 commits into
openai:mainfrom
AAliKKhan:main
Closed

docs: remove unused ModelSettings import in tool use behavior example #3884
AAliKKhan wants to merge 11 commits into
openai:mainfrom
AAliKKhan:main

Conversation

@AAliKKhan

Copy link
Copy Markdown
Contributor

The ModelSettings import in the tool_use_behavior="stop_on_first_tool" example
was unused — the code block only uses tool_use_behavior and never references
ModelSettings. Removed it to keep examples clean and prevent confusion.

Comment thread docs/models/index.md Outdated

``` python
from agents import Agent, AsyncOpenAI, OpenAIChatCompletionsModel, set_tracing_disabled
from openai import AsyncOpenAI

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you remove these related changes?

@seratch seratch added the documentation Improvements or additions to documentation label Jul 19, 2026
@seratch

seratch commented Jul 19, 2026

Copy link
Copy Markdown
Member

Thanks again for sharing this. Since there were a few more to change, #3885 resolved all the remaining ones.

@seratch seratch closed this Jul 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants