From 195f5e7a169a1fca19ca6421e9376d13f184af20 Mon Sep 17 00:00:00 2001 From: GiorgioBarresi Date: Thu, 30 Jul 2026 00:49:05 +0200 Subject: [PATCH 1/2] fix: use full SHA in README install command --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9c54974..45025f0 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ The official Requesty extension for the Pi Coding Agent ## (Recommended) Install from Github Repo ```bash -pi install git:github.com/requestyai/pi-requesty@c28e2f8 +pi install git:github.com/requestyai/pi-requesty@c28e2f8208eb467d248a7dc33bfb5cb04f310575 ``` NOTE: Version c28e2f8 points to out latest v0.2.7 version, and keeps you safe from supply chain attack. From 6037de525a59b649f29d0365b337a6b03847a3c2 Mon Sep 17 00:00:00 2001 From: GiorgioBarresi Date: Thu, 30 Jul 2026 01:01:30 +0200 Subject: [PATCH 2/2] fix: set api:openai-completions per-model for non-anthropic/ models --- requesty.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/requesty.js b/requesty.js index 5ab8906..cfb44ae 100644 --- a/requesty.js +++ b/requesty.js @@ -76,6 +76,8 @@ async function discoverModels(provider) { name: typeof model.name === "string" && model.name.length > 0 ? model.name : model.id, reasoning: model.supports_reasoning === true, input: model.supports_vision === true ? ["text", "image"] : ["text"], + // non-anthropic/ models must use OpenAI format regardless of provider api setting + ...(!model.id.startsWith("anthropic/") && { api: "openai-completions" }), cost: { input: pricePerMillionTokens(model.input_price), output: pricePerMillionTokens(model.output_price), @@ -106,6 +108,7 @@ function updateModelsJson(data, models) { name: model.name, reasoning: model.reasoning, input: model.input, + ...(model.api && { api: model.api }), cost: model.cost, contextWindow: model.contextWindow, maxTokens: model.maxTokens,