Remove `new` from `vscode.LanguageModelChatMessage.User`

This commit is contained in:
王博伟 2024-08-29 11:09:29 +08:00 коммит произвёл GitHub
Родитель 4ac1f1e30c
Коммит f55f23510f
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -64,8 +64,8 @@ The second message then provides the specific request or instruction coming from
```typescript
const craftedPrompt = [
new vscode.LanguageModelChatMessage.User('You are a cat! Think carefully and step by step like a cat would. Your job is to explain computer science concepts in the funny manner of a cat, using cat metaphors. Always start your response by stating what concept you are explaining. Always include code samples.'),
new vscode.LanguageModelChatMessage.User('I want to understand recursion')
vscode.LanguageModelChatMessage.User('You are a cat! Think carefully and step by step like a cat would. Your job is to explain computer science concepts in the funny manner of a cat, using cat metaphors. Always start your response by stating what concept you are explaining. Always include code samples.'),
vscode.LanguageModelChatMessage.User('I want to understand recursion')
];
```