Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
3 changes: 3 additions & 0 deletions requesty.js
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down Expand Up @@ -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,
Expand Down