This commit is contained in:
Aiden Cline 2025-12-09 16:29:33 -06:00
commit 8f3f87943a
5 changed files with 338 additions and 1181 deletions

View file

@ -25,7 +25,6 @@ import { Provider } from "../provider/provider"
import { Installation } from "@/installation" import { Installation } from "@/installation"
import { MessageV2 } from "@/session/message-v2" import { MessageV2 } from "@/session/message-v2"
import { Config } from "@/config/config" import { Config } from "@/config/config"
import { MCP } from "@/mcp"
import { Todo } from "@/session/todo" import { Todo } from "@/session/todo"
import { z } from "zod" import { z } from "zod"
import { LoadAPIKeyError } from "ai" import { LoadAPIKeyError } from "ai"

View file

@ -211,7 +211,15 @@ export namespace LSPServer {
export const Biome: Info = { export const Biome: Info = {
id: "biome", id: "biome",
root: NearestRoot(["biome.json", "biome.jsonc", "package-lock.json", "bun.lockb", "bun.lock", "pnpm-lock.yaml", "yarn.lock"]), root: NearestRoot([
"biome.json",
"biome.jsonc",
"package-lock.json",
"bun.lockb",
"bun.lock",
"pnpm-lock.yaml",
"yarn.lock",
]),
extensions: [ extensions: [
".ts", ".ts",
".tsx", ".tsx",

View file

@ -930,7 +930,7 @@ export namespace Provider {
} }
const priority = ["gpt-5", "claude-sonnet-4", "big-pickle", "gemini-3-pro"] const priority = ["gpt-5", "claude-sonnet-4", "big-pickle", "gemini-3-pro"]
export function sort<T extends { id: string }>(models: T[]) { export function sort(models: Model[]) {
return sortBy( return sortBy(
models, models,
[(model) => priority.findIndex((filter) => model.id.includes(filter)), "desc"], [(model) => priority.findIndex((filter) => model.id.includes(filter)), "desc"],

File diff suppressed because it is too large Load diff

View file

@ -1044,6 +1044,11 @@ export type ProviderConfig = {
reasoning?: boolean reasoning?: boolean
temperature?: boolean temperature?: boolean
tool_call?: boolean tool_call?: boolean
interleaved?:
| true
| {
field: "reasoning_content" | "reasoning_details"
}
cost?: { cost?: {
input: number input: number
output: number output: number
@ -1479,6 +1484,11 @@ export type Model = {
video: boolean video: boolean
pdf: boolean pdf: boolean
} }
interleaved:
| boolean
| {
field: "reasoning_content" | "reasoning_details"
}
} }
cost: { cost: {
input: number input: number
@ -3026,6 +3036,11 @@ export type ProviderListResponses = {
reasoning: boolean reasoning: boolean
temperature: boolean temperature: boolean
tool_call: boolean tool_call: boolean
interleaved?:
| true
| {
field: "reasoning_content" | "reasoning_details"
}
cost?: { cost?: {
input: number input: number
output: number output: number