{
 "schema_version": 1,
 "generated": "2026-10-24",
 "id": "yinxulai-osw--fix-provider-quirks-without-writing-code",
 "repo": "yinxulai/osw",
 "repo_url": "https://github.com/yinxulai/osw",
 "repo_slug": "yinxulai-osw",
 "title": "Fix a provider's header or field quirk with rewrite rules",
 "page_title": "How to fix a provider's header or field quirk with rewrite rules with Osw",
 "summary": "Add, drop, or pin request fields for one provider using rewrite rules and a built-in test check.",
 "who": "A developer whose provider rejects requests unless a header is set or a field has a specific value.",
 "problem": "Some providers need a custom User-Agent, reject a header a client sends, or expect a fixed parameter value, and the client tool offers no setting for this.",
 "outcome": "A request rewrite rule changes the outgoing request for that provider only, and the editor's test case confirms the change before you rely on it.",
 "steps": [
  "Open Request Rewrite and pick a template behind New rule, or start a blank rule.",
  "Set the change you need, such as adding a User-Agent header, dropping a header, or pinning a field to a value.",
  "Run the test case in the editor to confirm the rewritten request looks correct.",
  "Save the rule and send a request through the OSW address to the affected provider.",
  "Check Request Logs to confirm the provider accepted the request."
 ],
 "agent_prompt": "Using the OSW repo at yinxulai/osw, create a request rewrite rule that <change> for the provider <provider-name>. Expected output: a saved rule and a successful request in Request Logs. Verify that the editor test case passes before saving.",
 "agents": [
  "any"
 ],
 "difficulty": "Intermediate",
 "time": "30 minutes",
 "basis": "readme",
 "caveat": "Rewrite rules change outgoing requests, so a wrong rule can cause a provider to reject every request it touches until the rule is fixed or removed.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "typescript",
 "requirements": [
  "A Mac, Windows PC, or Linux machine that can run the OSW installer",
  "API keys for at least two LLM channels you own",
  "An AI client that lets you set a custom base URL"
 ],
 "risk": "sensitive",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.7,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/yinxulai-osw/fix-provider-quirks-without-writing-code/",
 "md": "https://dedupedai.com/use-cases/yinxulai-osw/fix-provider-quirks-without-writing-code/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/yinxulai-osw--fix-provider-quirks-without-writing-code.json",
 "api_version": "v1"
}
