We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef3e71f commit 5d0a419Copy full SHA for 5d0a419
extensions/positron-assistant/src/models.ts
@@ -102,7 +102,7 @@ class EchoLanguageModel implements positron.ai.LanguageModelChatProvider {
102
token: vscode.CancellationToken
103
): Promise<any> {
104
const _messages = toAIMessage(messages);
105
- const message = _messages[_messages.length - 1];
+ const message = _messages[0];
106
107
if (typeof message.content === 'string') {
108
message.content = [{ type: 'text', text: message.content }];
0 commit comments