Remove `new` from `vscode.LanguageModelChatMessage.User`
This commit is contained in:
Родитель
4ac1f1e30c
Коммит
f55f23510f
|
@ -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')
|
||||
];
|
||||
```
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче