fix: adjust system prompt (#32)

This commit is contained in:
Dominic Elm
2024-08-08 15:18:14 +02:00
committed by GitHub
parent 6c39477d13
commit e8447db417
4 changed files with 74 additions and 2 deletions

View File

@@ -78,6 +78,20 @@ export const supportedLanguages = [
return import('@codemirror/lang-wast').then((module) => module.wast());
},
}),
LanguageDescription.of({
name: 'Python',
extensions: ['py'],
async load() {
return import('@codemirror/lang-python').then((module) => module.python());
},
}),
LanguageDescription.of({
name: 'C++',
extensions: ['cpp'],
async load() {
return import('@codemirror/lang-cpp').then((module) => module.cpp());
},
}),
];
export async function getLanguage(fileName: string) {