Duncan Scott
Duncan Scott
I would love this feature too. Being able to decouple components via a state variable is really powerful and allows you to simplify the code. It's currently really hard to...
Actually I've just been trying much longer system prompts with the above technique. It looks like whatever optimisation is being done on the backend causes the chat sessions to bleed...
I think I've spotted the latter issue: `# check if there is only one message, i.e. system prompt: generate_kwargs["reset_context"] = len(self.current_chat_session) == 1` So it looks like because I'm replacing...
I've tried sending an empty message before loading the history to trigger a context clear, but this causes context to stop working completely, it doesn't rebuild it. It looks like...
I've checked this with 4.21.0 and it also happens there.
Also while trying to get this to work with other workarounds I came across this: https://github.com/gradio-app/gradio/issues/2107. Having this would provide a workaround for this issue because I can have a...
Thanks for the response, I saw that, but it's not quite what I want I think. Each of those components have customisations, so the new component would need to match...
Ah I see, thanks for clarifying. It would be great to tweak the docs to mention that. The code looks like it's creating a new instance and returning that but...
The HTML component suffers from this as well, so can't be used as a workaround.
Thanks very much, that fixed it perfectly :). It would be good to update the getting started documentation - https://docs.spring.io/spring-shell/reference/getting-started.html. spring-shell-starter-jna being required is not mentioned and it isn't added...