🐛 fix bug with context_items undefined
This commit is contained in:
parent
2685eff19b
commit
ffd81b2604
1 changed files with 4 additions and 1 deletions
|
|
@ -228,7 +228,10 @@ class ContinueSDK(AbstractContinueSDK):
|
|||
role = "user"
|
||||
msgs.extend(
|
||||
await self.__autopilot.context_manager.get_chat_messages(
|
||||
[ContextItem(**itm) for itm in step.params["context_items"]]
|
||||
[
|
||||
ContextItem(**itm)
|
||||
for itm in step.params.get("context_items", [])
|
||||
]
|
||||
)
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue