Compare commits

...

4 Commits

Author SHA1 Message Date
Frank ec0cc1f5ab pin version
publish-github-action / publish (push) Waiting to run
2025-09-19 15:06:07 -04:00
Frank 9e0333f767 Pin opencode version 2025-09-01 17:23:46 -04:00
Frank a67106b700 wip: github action
publish-github-action / publish (push) Waiting to run
2025-07-25 18:33:45 -04:00
Dax Raad 5a3aed4e88 qwen optimizations it works good now 2025-07-25 18:31:08 -04:00
4 changed files with 10 additions and 7 deletions
+1 -1
View File
@@ -27,4 +27,4 @@ jobs:
git config --global user.email "opencode@sst.dev"
git config --global user.name "opencode"
./script/publish
working-directory: ./sdks/github
working-directory: ./github
+2
View File
@@ -19,6 +19,8 @@ runs:
- name: Install opencode
shell: bash
run: curl -fsSL https://opencode.ai/install | bash
env:
VERSION: 0.5.5
- name: Run opencode
shell: bash
+5 -4
View File
@@ -23,8 +23,9 @@ export namespace ProviderTransform {
}
for (const msg of unique([...system, ...final])) {
const shouldUseContentOptions = providerID !== "anthropic" && Array.isArray(msg.content) && msg.content.length > 0
const shouldUseContentOptions =
providerID !== "anthropic" && Array.isArray(msg.content) && msg.content.length > 0
if (shouldUseContentOptions) {
const lastContent = msg.content[msg.content.length - 1]
if (lastContent && typeof lastContent === "object") {
@@ -35,7 +36,7 @@ export namespace ProviderTransform {
continue
}
}
msg.providerOptions = {
...msg.providerOptions,
...providerOptions,
@@ -46,7 +47,7 @@ export namespace ProviderTransform {
}
export function temperature(_providerID: string, modelID: string) {
if (modelID.includes("qwen")) return 0.55
if (modelID.toLowerCase().includes("qwen")) return 0.55
return 0
}
}
+2 -2
View File
@@ -64,12 +64,12 @@ export namespace ToolRegistry {
}
export function enabled(_providerID: string, modelID: string): Record<string, boolean> {
if (modelID.includes("claude")) {
if (modelID.toLowerCase().includes("claude")) {
return {
patch: false,
}
}
if (modelID.includes("qwen")) {
if (modelID.toLowerCase().includes("qwen")) {
return {
patch: false,
todowrite: false,