Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEAT]: Better handling for thinking models #2886

Open
Xoconoch opened this issue Dec 21, 2024 · 1 comment
Open

[FEAT]: Better handling for thinking models #2886

Xoconoch opened this issue Dec 21, 2024 · 1 comment
Labels
enhancement New feature or request feature request

Comments

@Xoconoch
Copy link

Xoconoch commented Dec 21, 2024

What would you like to see?

Been experimenting with Gemni 2.0 Flash Thinking (awful name) lately and it seems like the anythingllm frontend handles the api answer as such:

[Thought process][Answer]

It puts all the text in the same "space" as if it was one unique answer, but it's not.

This is an example of an answer showcased in anythingllm:

image

the highlighted part is where I think both thought and answer are concatenated, not only because it clearly looks like, but also because that's the only part of the whole answer where a period is missing its respective subsequent space.

This is an example of the same prompt in google ai studio

image

If I expand that Thought box, it shows all the previous process.

I'm not sure if the api response body provides the possibility for implementing this, but I sure hope it does! Also, I wonder if this a mistake also happening with OpenAI's o1.

Edit: One workaround I found is to specify on the workspace's prompt to structure its responses like so:

[Thought process]
[Enter]
[Response]
@Xoconoch Xoconoch added enhancement New feature or request feature request labels Dec 21, 2024
@spencerthayer
Copy link

This a good idea. I like how OpenAI had the thinking process as an unordered list that one would open and close.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request feature request
Projects
None yet
Development

No branches or pull requests

2 participants