Skip to content

Commit

Permalink
πŸ› fix bug with context_items undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
sestinj committed Dec 4, 2023
1 parent 2685eff commit ffd81b2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion server/continuedev/core/sdk.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,10 @@ async def get_chat_context(self) -> List[ChatMessage]:
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", [])
]
)
)

Expand Down

0 comments on commit ffd81b2

Please sign in to comment.