Skip to content

Commit e444928

Browse files
Merge pull request #21 from kelkalot/dev
Add FAQ section addressing openai.PermissionDeniedError for custom LL…
2 parents 69fabe1 + 632e2d3 commit e444928

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

FAQ.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# FAQ
2+
3+
## API / Errors
4+
5+
### Why do I get `openai.PermissionDeniedError: Your request was blocked` with my custom LLM endpoint?
6+
This usually happens if you are using a proxy (e.g., Cloudflare or a corporate firewall) and it blocks requests that look like automated agents.
7+
8+
#### Solution:
9+
Override the default OpenAI request headers to include a valid `User-Agent` in ModelAuditor:
10+
11+
```python
12+
extra_kwargs={"default_headers": {"User-Agent": "SimpleAudit-test/1.0"}} # for model calls
13+
# or
14+
judge_extra_kwargs={"default_headers": {"User-Agent": "SimpleAudit-test/1.0"}} # for judge calls
15+
```

0 commit comments

Comments
 (0)