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
The system message is passed to the LLM when instantiated by LangchainProcessor the same way as by OpenAILLMService.
If so, the system role would be recorded as follows:
Generating chat: [{"role": "system", "content": "Role:\nYou are an experienced ...
Current Behavior
At the first invocation of the LLM, this error is thrown:
AttributeError: 'OpenAILLMContext' object has no attribute 'append'
with traceback
.../python3.12/site-packages/pipecat/processors/aggregators/llm_response.py", line 146, in _push_aggregation
self._messages.append({"role": self._role, "content": self._aggregation})
Caveat
Further testing confirmed: This error occurs when OpenAILLMContext used with LangchainProcessor. In contrast, using an LLM instantiated directly from the API works:
The text was updated successfully, but these errors were encountered:
agilebean
changed the title
OpenAILLMContext has no attribute 'append'
OpenAILLMContext has no attribute 'append' when used with LangchainProcessor
Aug 9, 2024
Current Code
Used the pipecat example code here to define the context and pass it to OpenAILLMContext.
Expected Behavior
The system message is passed to the LLM when instantiated by
LangchainProcessor
the same way as byOpenAILLMService
.If so, the system role would be recorded as follows:
Current Behavior
At the first invocation of the LLM, this error is thrown:
with traceback
Caveat
Further testing confirmed: This error occurs when
OpenAILLMContext
used withLangchainProcessor
. In contrast, using an LLM instantiated directly from the API works:The text was updated successfully, but these errors were encountered: