fix: accept nullable teacher default reasoning effort

This commit is contained in:
2026-09-22 14:25:03 +08:00
parent 2c2031469e
commit 28e0decbc3
4 changed files with 108 additions and 7 deletions

View File

@@ -1,4 +1,3 @@
import type { ManagedReasoningChoice } from './managed-model-capabilities';
import type { PublicUsage } from './coding-conversation-contracts';
export interface TeacherDefinition {
@@ -17,7 +16,12 @@ export interface TeacherDefinition {
instructions_markdown: string;
enabled: boolean;
}>;
model: { model_id: string | null; reasoning_choice: ManagedReasoningChoice };
model: {
model_id: string | null;
reasoning_choice:
| { mode: 'default' | 'disabled'; effort?: null }
| { mode: 'enabled'; effort?: string | null };
};
limits: { max_input_tokens: number; max_output_tokens: number };
}
export interface TeacherAvailability {