[release/1.128] Update GPT-5.6 model family detection (#324658)

Update GPT-5.6 model family detection

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
Dileep Yavanmandha
2026-07-06 18:37:54 -07:00
committed by GitHub
parent 14859a98b9
commit 1e3f4e4e25
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,