Regis David Souza Mesquita fbca081eae Adds a "Thought for X seconds...." to BetterR1.txt
Adds a "Thought for X seconds...." to BetterR1.txt
2025-01-22 15:57:40 +00:00
2025-01-21 13:02:25 +08:00
2025-01-22 01:35:37 +09:00

Better-R1

An open webui function for better local R1 experience


This is a simple open webui function for R1 models, it can do the following:

  1. Replace the simple <think> tags with <details> & <summary> tags, which makes R1's thoughts collapsible, like this:
Thoughts💬 Emmm.. LASAGNA...
  1. Remove R1's old thoughts in multi-turn conversation, according to deepseeks API docs you should always remove R1's previous thoughts in a multi-turn conversation.

Note: This function is only designed for those who run R1 (-distilled) models locally, such as using Ollama. It does not work with the DeepSeek API.


Code: https://github.com/AaronFeng753/Better-R1/blob/main/BetterR1.txt


Check out my other project: https://github.com/AaronFeng753/Waifu2x-Extension-GUI


DEMO:

S
Description
No description provided
Readme
11 MiB
Languages
Text 100%