mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-04 06:12:10 +03:00
chore(workflow): fix generate-release github action collision for releases and remove any types
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user