Skip to content

Never stop coding. Free MIT AI gateway: one endpoint, 375 providers (150+ free), 1,400+ models Kimi, Claude, GPT, Gemini, GLM, DeepSeek, MiniMax. Works with Claude Code, Codex, Cursor, OpenCode, Cline & Copilot. Quota-aware auto-fallback, RTK+Caveman compression saves 15-95% tokens, MCP/A2A, Desktop/PWA. Built by 900+ contributors

chore(workflow): fix generate-release github action collision for releases and remove any types

Antigravity Assistantea6f556ed225
diff --git a/.agents/workflows/generate-release.md b/.agents/workflows/generate-release.md
index c6107339bb..e127c832d4 100644
--- a/.agents/workflows/generate-release.md
+++ b/.agents/workflows/generate-release.md
@@ -263,8 +263,8 @@ NOTES=$(awk "/^## \\[$VERSION\\]/{flag=1; next} /^---/{if(flag) {flag=0; exit}}
if [ -z "$NOTES" ]; then NOTES="OmniRoute v$VERSION Release"; fi
git tag -a "v$VERSION" -m "Release v$VERSION"
-git push origin --tags
-gh release create "v$VERSION" --title "v$VERSION" --notes "$NOTES" --target main
+git push origin "v$VERSION"
+gh release create "v$VERSION" --repo diegosouzapw/OmniRoute --title "v$VERSION" --notes "$NOTES" --target main || gh release edit "v$VERSION" --repo diegosouzapw/OmniRoute --title "v$VERSION" --notes "$NOTES"
```
### 14. 🐳 Trigger Docker Hub build (MANDATORY — keep npm and Docker in sync)
diff --git a/open-sse/executors/default.ts b/open-sse/executors/default.ts
index bbd814b8bc..0faee7c3cd 100644
--- a/open-sse/executors/default.ts
+++ b/open-sse/executors/default.ts
@@ -353,7 +353,7 @@ export class DefaultExecutor extends BaseExecutor {
if (typeof withDefaults === "object" && withDefaults !== null && !Array.isArray(withDefaults)) {
if (this.provider?.startsWith?.("anthropic-compatible-")) {
if (Object.prototype.hasOwnProperty.call(withDefaults, "stream_options")) {
- const withoutStreamOptions = { ...withDefaults } as Record<string, any>;
+ const withoutStreamOptions = { ...withDefaults } as Record<string, unknown>;
delete withoutStreamOptions.stream_options;
withDefaults = withoutStreamOptions;
}
@@ -365,12 +365,12 @@ export class DefaultExecutor extends BaseExecutor {
withDefaults = {
...withDefaults,
stream_options: {
- ...((withDefaults as any).stream_options || {}),
+ ...(((withDefaults as Record<string, unknown>).stream_options as object) || {}),
include_usage: true,
},
};
} else if (Object.prototype.hasOwnProperty.call(withDefaults, "stream_options")) {
- const withoutStreamOptions = { ...withDefaults } as Record<string, any>;
+ const withoutStreamOptions = { ...withDefaults } as Record<string, unknown>;
delete withoutStreamOptions.stream_options;
withDefaults = withoutStreamOptions;
}
@@ -378,7 +378,10 @@ export class DefaultExecutor extends BaseExecutor {
}
if (this.provider === "qwen" && typeof withDefaults === "object" && withDefaults !== null) {
- return sanitizeQwenThinkingToolChoice(withDefaults as any, "QwenExecutor");
+ return sanitizeQwenThinkingToolChoice(
+ withDefaults as Record<string, unknown>,
+ "QwenExecutor"
+ );
}
return withDefaults;
}