@@ -17,12 +17,12 @@ import { nextCharLength } from '../../../base/common/strings.js';
17
17
import { isNumber , isObject , isString , isStringArray } from '../../../base/common/types.js' ;
18
18
import { URI } from '../../../base/common/uri.js' ;
19
19
import { generateUuid } from '../../../base/common/uuid.js' ;
20
+ import { TextEditorSelectionSource } from '../../../platform/editor/common/editor.js' ;
20
21
import { ExtensionIdentifier , IExtensionDescription } from '../../../platform/extensions/common/extensions.js' ;
21
22
import { FileSystemProviderErrorCode , markAsFileSystemProviderError } from '../../../platform/files/common/files.js' ;
22
23
import { RemoteAuthorityResolverErrorCode } from '../../../platform/remote/common/remoteAuthorityResolver.js' ;
23
24
import { CellEditType , ICellMetadataEdit , IDocumentMetadataEdit , isTextStreamMime } from '../../contrib/notebook/common/notebookCommon.js' ;
24
25
import { IRelativePatternDto } from './extHost.protocol.js' ;
25
- import { TextEditorSelectionSource } from '../../../platform/editor/common/editor.js' ;
26
26
27
27
/**
28
28
* @deprecated
@@ -4918,18 +4918,10 @@ export class LanguageModelImagePart implements vscode.LanguageModelImagePart {
4918
4918
}
4919
4919
4920
4920
export interface ChatImagePart {
4921
- image_url : {
4922
- /**
4923
- * Either a URL of the image or the base64 encoded image data.
4924
- */
4925
- url : string ;
4926
-
4927
- /**
4928
- * Specifies the detail level of the image. Learn more in the
4929
- * [Vision guide](https://platform.openai.com/docs/guides/vision/low-or-high-fidelity-image-understanding).
4930
- */
4931
- detail ?: ImageDetailLevel ;
4932
- } ;
4921
+ mimeType : string ;
4922
+ data : Uint8Array ;
4923
+ detail ?: ImageDetailLevel ;
4924
+
4933
4925
}
4934
4926
4935
4927
export class LanguageModelPromptTsxPart {
0 commit comments