Skip to content

Commit 2d24450

Browse files
Merge pull request #12 from EternisAI/fix/skills
fix(fred): Add User-Agent header to fred_proxy_get
2 parents 40a28b1 + be08b82 commit 2d24450

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

skills/fred/SKILL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ token = os.environ["OPENROUTER_API_KEY"]
2222
def fred_proxy_get(path: str, params: dict | None = None) -> dict:
2323
query = urllib.parse.urlencode({"file_type": "json", **(params or {})})
2424
url = f"{base.rstrip('/')}/{path.lstrip('/')}?{query}"
25-
req = urllib.request.Request(url, headers={"Authorization": f"Bearer {token}"})
25+
req = urllib.request.Request(url, headers={"Authorization": f"Bearer {token}", "User-Agent": "opencode-fred-client/1.0"})
2626
with urllib.request.urlopen(req, timeout=20) as resp:
2727
return json.loads(resp.read().decode())
2828
```

0 commit comments

Comments
 (0)