Files
oh-my-pi/packages/ai/src/models.json.d.ts
T
can1357 4e8fa51616 feat(ai): added TypeScript types and simplified model function signatures
- 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.
2026-02-10 22:17:29 +01:00

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;