We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4046725 commit 0ecfb1fCopy full SHA for 0ecfb1f
examples/gpt-oss-browser-tool.py
@@ -10,7 +10,9 @@
10
11
def main() -> None:
12
api_key = os.getenv('OLLAMA_API_KEY')
13
- client = Client(headers={'Authorization': f'Bearer {api_key}'}) if api_key else Client()
+ if not api_key:
14
+ raise RuntimeError('OLLAMA_API_KEY is required to run this example')
15
+ client = Client(host='https://ollama.com', headers={'Authorization': f'Bearer {api_key}'})
16
browser = Browser(initial_state=None, client=client)
17
18
# Tool schemas
0 commit comments