You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This seems to be a regression in Theia 1.60, introduced with #15092 (see below).
Since upgrading to Theia 1.60, every request to ollama (in the code, every call to OllamaModel.request fails with the error Cannot read properties of undefined (reading 'createMessageContent')
Steps to Reproduce:
Start Theia IDE or a Theia application that includes the AI modules.
Enable AI, Configure ollama (note: this does not even need a local ollama server running to reproduce), configure the chat naming agent and the Orchestrator agent to use an ollama model.
Open AI Chat and enter any message.
Expected behavior:
The chat agent answers the message.
Actual behavior:
The chat view reports the error: Cannot read properties of undefined (reading 'createMessageContent')
Bug Description:
This seems to be a regression in Theia 1.60, introduced with #15092 (see below).
Since upgrading to Theia 1.60, every request to ollama (in the code, every call to
OllamaModel.request
fails with the errorCannot read properties of undefined (reading 'createMessageContent')
Steps to Reproduce:
Expected behavior:
The chat agent answers the message.
Actual behavior:
The chat view reports the error:
Cannot read properties of undefined (reading 'createMessageContent')
Additional Information
Anaylsis:
In the line
theia/packages/ai-ollama/src/node/ollama-language-model.ts
Line 64 in fefa45f
and the following line, we pass methods to the
map()
function which causesthis
to be unbound when the methods are called.This was like this already in previous versions, but only since #15092,
this
is referenced withintoOllamaMessage()
which introduces the bug.The text was updated successfully, but these errors were encountered: