Skip to content
Source
Sign inSign up
TanStack/ai
Open History to see the last commit

model-meta.ts

17 lines557 Bytes

1/**
2 * Models known to work with Codex. The harness accepts any OpenAI model id
3 * its backend supports, so this list exists for autocomplete — any string is
4 * accepted via the `(string & {})` escape hatch in {@link CodexModel}.
5 */
6export const CODEX_MODELS = [
7 'gpt-5.3-codex',
8 'gpt-5.2-codex',
9 'gpt-5.1-codex',
10 'gpt-5.1-codex-mini',
11 'gpt-5.1',
12] as const
13​
14export type KnownCodexModel = (typeof CODEX_MODELS)[number]
15​
16/** Any model id accepted by Codex; known ids get autocomplete. */
17export type CodexModel = KnownCodexModel | (string & {})