2025-01-23 01:51:21 +08:00
2025-01-23 01:51:21 +08:00
2025-01-21 13:02:25 +08:00
2025-01-23 00:15:56 +08: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:
Thought for 3 seconds 💭 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

Photo/Video/GIF enlargement and Video frame interpolation using machine learning


DEMO:

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