- Added TypeScript type declarations for models.json to provide better IDE support and type safety. - Simplified type signatures for getModel() and getModels() functions by removing complex generic type inference in favor of simpler, more maintainable typing. - Updated google-antigravity provider model ordering and metadata, including renamed Gemini 2.5 Flash (Thinking) model and expanded input types for claude-opus-4-5-thinking. - Refactored test helper code in context-overflow.test.ts to improve code clarity and type safety.
10 lines
290 B
TypeScript
10 lines
290 B
TypeScript
import type { Api } from "./types";
|
|
|
|
/** Typed declaration for the generated models.json — only the `api` field matters for type inference. */
|
|
declare const models: {
|
|
[provider: string]: {
|
|
[modelId: string]: { readonly api: Api; [key: string]: unknown };
|
|
};
|
|
};
|
|
export default models;
|