🐛 remove extra msg being inserted in chat
This commit is contained in:
parent
b1d1bd48c7
commit
fc38b37458
1 changed files with 3 additions and 1 deletions
|
|
@ -24,6 +24,8 @@ class SimpleChatStep(Step):
|
|||
messages: Optional[List[ChatMessage]] = None
|
||||
prompt: Optional[str] = None
|
||||
|
||||
hide: bool = True
|
||||
|
||||
completion_options: Optional[CompletionOptions] = None
|
||||
|
||||
async def run(self, sdk: ContinueSDK):
|
||||
|
|
@ -50,7 +52,7 @@ class SimpleChatStep(Step):
|
|||
kwargs = self.completion_options.dict() if self.completion_options else {}
|
||||
generator = sdk.models.chat.stream_chat(messages, **kwargs)
|
||||
|
||||
yield SetStep(description="")
|
||||
yield SetStep(description="", hide=False)
|
||||
async for chunk in generator:
|
||||
if chunk.content != "":
|
||||
yield chunk.content
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue