chore: bump version to 1.0.20

This commit is contained in:
Gab
2026-03-28 01:03:55 +11:00
parent cbcaa4ba46
commit 3cc0f7401a
7 changed files with 458 additions and 56 deletions

View File

@@ -1,10 +1,9 @@
{
"$schema": "https://json.schemastore.org/package.json",
"version": "1.0.16",
"name": "tfcode",
"version": "1.0.20",
"name": "@toothfairyai/tfcode",
"type": "module",
"license": "MIT",
"private": true,
"scripts": {
"prepare": "effect-language-service patch || true",
"postinstall": "node scripts/postinstall.cjs",
@@ -134,6 +133,8 @@
"opencode-gitlab-auth": "2.0.0",
"opentui-spinner": "0.0.6",
"partial-json": "0.1.7",
"react": "19.2.4",
"react-dom": "19.2.4",
"remeda": "catalog:",
"semver": "^7.6.3",
"solid-js": "catalog:",

View File

@@ -184,6 +184,7 @@ export namespace ModelsDev {
release_date: new Date().toISOString().split("T")[0],
attachment: model.supportsVision || false,
reasoning: model.reasoner || false,
interleaved: model.reasoner ? { field: "reasoning_content" } : undefined,
temperature: true,
tool_call: model.toolCalling || false,
options: {},
@@ -232,6 +233,7 @@ export namespace ModelsDev {
release_date: "2025-01-01",
attachment: true,
reasoning: true,
interleaved: { field: "reasoning_content" },
temperature: true,
tool_call: true,
options: {},

View File

@@ -269,9 +269,15 @@ export namespace LLM {
"x-opencode-request": input.user.id,
"x-opencode-client": Flag.OPENCODE_CLIENT,
}
: {
"User-Agent": `opencode/${Installation.VERSION}`,
}),
: input.model.providerID === "toothfairyai"
? {
"User-Agent": `opencode/${Installation.VERSION}`,
"x-opencode-session": input.sessionID,
"x-opencode-request": input.user.id,
}
: {
"User-Agent": `opencode/${Installation.VERSION}`,
}),
...input.model.headers,
...headers,
},