GPT-OSS integrates a variety of tool-calling functions, mainly including:
- Web Search: To search, open or find web content through the browser tool, you need to use ExaBackend and set the EXA_API_KEY environment variable.
- Python Code Execution: It is possible to run compute tasks that use Docker containers to execute code, but you need to be aware of the risk of prompt injection
- file operation: The apply_patch utility allows you to create, update, or delete files.
To enable these tools, you need to configure the appropriate tool configuration in the system messages. For example, enable the Python tool:system_message_content = SystemContent.new().with_tools(python_tool.tool_config)
. These tool-calling features greatly enhance the interactive capabilities and usefulness of the model.
This answer comes from the articleGPT-OSS: OpenAI's Open Source Big Model for Efficient ReasoningThe