[GH-ISSUE #11947] gpt-oss api : access internet #33692

Closed
opened 2026-04-22 16:36:26 -05:00 by GiteaMirror · 5 comments
Owner

Originally created by @nikran1 on GitHub (Aug 18, 2025).
Original GitHub issue: https://github.com/ollama/ollama/issues/11947

What is the issue?

Please suggest best ways to access internet and infer from gpt-oss model using ollama apis?

Relevant log output


OS

No response

GPU

No response

CPU

No response

Ollama version

No response

Originally created by @nikran1 on GitHub (Aug 18, 2025). Original GitHub issue: https://github.com/ollama/ollama/issues/11947 ### What is the issue? Please suggest best ways to access internet and infer from gpt-oss model using ollama apis? ### Relevant log output ```shell ``` ### OS _No response_ ### GPU _No response_ ### CPU _No response_ ### Ollama version _No response_
GiteaMirror added the bug label 2026-04-22 16:36:27 -05:00
Author
Owner

@ghmer commented on GitHub (Aug 18, 2025):

tool calls?

<!-- gh-comment-id:3197703071 --> @ghmer commented on GitHub (Aug 18, 2025): tool calls?
Author
Owner

@nikran1 commented on GitHub (Aug 18, 2025):

Yes. I was referring to tool calls. For a given input query, if the model is supposed to directly browse the internet and find relevant data and infer from the data to provide a suitable response. Please advice. Thank you in advance,

<!-- gh-comment-id:3197972371 --> @nikran1 commented on GitHub (Aug 18, 2025): Yes. I was referring to tool calls. For a given input query, if the model is supposed to directly browse the internet and find relevant data and infer from the data to provide a suitable response. Please advice. Thank you in advance,
Author
Owner

@ghmer commented on GitHub (Aug 18, 2025):

You provide an MCP server and instruct the LLM to use the provided tools.
example mcp server (not tested, just googled): MCP web search

<!-- gh-comment-id:3198297116 --> @ghmer commented on GitHub (Aug 18, 2025): You provide an MCP server and instruct the LLM to use the provided tools. example mcp server (not tested, just googled): [MCP web search](https://www.mcpkit.com/tools/web-search/)
Author
Owner

@drifkin commented on GitHub (Aug 18, 2025):

if you pass in browser.search, browser.open, and browser.find as tool names (with any definition), then we automatically give gpt-oss the proper prompt to handle these built-in tools. The tool calls will then come to you and you'll need to handle them, but we have an example in our python repo that shows how you might set this up: https://github.com/ollama/ollama-python/blob/main/examples/gpt-oss-tools-browser.py

<!-- gh-comment-id:3198464139 --> @drifkin commented on GitHub (Aug 18, 2025): if you pass in `browser.search`, `browser.open`, and `browser.find` as tool names (with any definition), then we automatically give gpt-oss the proper prompt to handle these built-in tools. The tool calls will then come to you and you'll need to handle them, but we have an example in our python repo that shows how you might set this up: https://github.com/ollama/ollama-python/blob/main/examples/gpt-oss-tools-browser.py
Author
Owner

@nikran1 commented on GitHub (Aug 20, 2025):

Thanks a lot. This works.

<!-- gh-comment-id:3205537222 --> @nikran1 commented on GitHub (Aug 20, 2025): Thanks a lot. This works.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#33692