This commit is contained in:
nicole pardal 2025-09-23 18:02:02 -07:00 committed by ParthSareen
parent fb7bdc1a2b
commit 2b20ec482d
2 changed files with 2 additions and 5 deletions

View File

@ -10,10 +10,7 @@ from ollama import Client
def main() -> None:
api_key = os.getenv('OLLAMA_API_KEY')
if api_key:
client = Client(headers={'Authorization': f'Bearer {api_key}'})
else:
client = Client()
client = Client(headers={'Authorization': f'Bearer {api_key}'}) if api_key else Client()
browser = Browser(initial_state=None, client=client)
# Tool schemas

View File

@ -1,8 +1,8 @@
from __future__ import annotations
import re
from dataclasses import dataclass, field
from datetime import datetime
import re
from typing import Any, Dict, List, Optional, Protocol, Tuple
from urllib.parse import urlparse