File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ type Dirent = File | Folder;
3838
3939export type FileMap = Record < string , Dirent | undefined > ;
4040
41- function simplifyBoltActions ( input : string ) : string {
41+ export function simplifyBoltActions ( input : string ) : string {
4242 // Using regex to match boltAction tags that have type="file"
4343 const regex = / ( < b o l t A c t i o n [ ^ > ] * t y p e = " f i l e " [ ^ > ] * > ) ( [ \s \S ] * ?) ( < \/ b o l t A c t i o n > ) / g;
4444
@@ -156,8 +156,9 @@ export async function streamText(props: {
156156
157157 return { ...message , content } ;
158158 } else if ( message . role == 'assistant' ) {
159- let content = message . content ;
160- content = simplifyBoltActions ( content ) ;
159+ const content = message . content ;
160+
161+ // content = simplifyBoltActions(content);
161162
162163 return { ...message , content } ;
163164 }
Original file line number Diff line number Diff line change @@ -462,7 +462,6 @@ async function getOpenRouterModels(): Promise<ModelInfo[]> {
462462}
463463
464464async function getLMStudioModels ( _apiKeys ?: Record < string , string > , settings ?: IProviderSetting ) : Promise < ModelInfo [ ] > {
465-
466465 try {
467466 const baseUrl = settings ?. baseUrl || import . meta. env . LMSTUDIO_API_BASE_URL || 'http://localhost:1234' ;
468467 const response = await fetch ( `${ baseUrl } /v1/models` ) ;
You can’t perform that action at this time.
0 commit comments