@@ -8,13 +8,13 @@ import { findCell } from '../../../util/common/notebooks';
8
8
import { createServiceIdentifier } from '../../../util/common/services' ;
9
9
import { Range } from '../../../vscodeTypes' ;
10
10
import { ConfigKey , IConfigurationService } from '../../configuration/common/configurationService' ;
11
+ import { modelPrefersJsonNotebookRepresentation } from '../../endpoint/common/chatModelCapabilities' ;
12
+ import { IChatEndpoint } from '../../networking/common/networking' ;
13
+ import { IExperimentationService } from '../../telemetry/common/nullExperimentationService' ;
11
14
import { BaseAlternativeNotebookContentProvider } from './alternativeContentProvider' ;
12
15
import { AlternativeJsonNotebookContentProvider , isJsonContent } from './alternativeContentProvider.json' ;
13
16
import { AlternativeTextNotebookContentProvider } from './alternativeContentProvider.text' ;
14
17
import { AlternativeXmlNotebookContentProvider , isXmlContent } from './alternativeContentProvider.xml' ;
15
- import { IExperimentationService } from '../../telemetry/common/nullExperimentationService' ;
16
- import { IChatEndpoint } from '../../networking/common/networking' ;
17
- import { modelSupportsApplyPatch } from '../../endpoint/common/chatModelCapabilities' ;
18
18
19
19
export type AlternativeContentFormat = 'xml' | 'text' | 'json' ;
20
20
@@ -63,7 +63,7 @@ export class AlternativeNotebookContentService implements IAlternativeNotebookCo
63
63
}
64
64
getFormat ( options : LanguageModelChat | IChatEndpoint | undefined ) : AlternativeContentFormat {
65
65
// GPT 4.1 supports apply_patch, such models work best with JSON format (doesn't have great support for XML yet, thats being worked on).
66
- if ( options && modelSupportsApplyPatch ( options ) ) {
66
+ if ( options && modelPrefersJsonNotebookRepresentation ( options ) ) {
67
67
return 'json' ;
68
68
}
69
69
0 commit comments