[cherry-pick] [release/1.128] Update GPT-5.6 model family detection

This commit is contained in:
vs-code-engineering[bot]
2026-07-07 01:39:06 +00:00
parent 35fc2d116f
commit 65703f098f
2 changed files with 2 additions and 11 deletions
@@ -155,17 +155,8 @@ export function isGpt55(model: LanguageModelChat | IChatEndpoint | string) {
}
export function isGpt56(model: LanguageModelChat | IChatEndpoint | string) {
return isGpt56SolOrTerra(model) || isGpt56Luna(model);
}
export function isGpt56SolOrTerra(model: LanguageModelChat | IChatEndpoint | string) {
const family = typeof model === 'string' ? model : model.family;
return family === 'ember-alpha';
}
export function isGpt56Luna(model: LanguageModelChat | IChatEndpoint | string) {
const family = typeof model === 'string' ? model : model.family;
return family === 'opal-alpha';
return family === 'gpt-5.6-sol' || family === 'gpt-5.6-terra' || family === 'gpt-5.6-luna';
}
export function isGpt53Codex(model: LanguageModelChat | IChatEndpoint | string) {
@@ -933,7 +933,7 @@ describe('createResponsesRequestBody', () => {
describe('createResponsesRequestBody prompt_cache_breakpoint markers', () => {
const expectedPromptCacheBreakpoint = { mode: 'explicit' };
const cacheBreakpointEndpoint: IChatEndpoint = { ...testEndpoint, family: 'ember-alpha' };
const cacheBreakpointEndpoint: IChatEndpoint = { ...testEndpoint, family: 'gpt-5.6-sol' };
const cacheBreakpoint = (): Raw.ChatCompletionContentPart => ({
type: Raw.ChatCompletionContentPartKind.CacheBreakpoint,