mirror of
https://github.com/microsoft/vscode.git
synced 2026-07-07 07:16:41 +01:00
[cherry-pick] [release/1.128] Update GPT-5.6 model family detection
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user