text-generation-webui
Create new extensions engine
#123
Merged

Create new extensions engine #123

oobabooga merged 17 commits into main from refactor_gradio
oobabooga
oobabooga2 years ago (edited 2 years ago)
  1. UI elements have been moved to a dictionary inside modules.shared and are now accessible by extensions. This makes it possible, for instance, to create a button that generates some mock message/reply and shows that in the chat.
  2. Extensions can now create their own gradio elements.
  3. Extensions can now hijack the chatbot_wrapper call with custom inputs and with a custom prompt generation function.
  4. "Generation attempts" parameter added: generate text more than once in chat mode to try to get longer responses.
oobabooga Move all gradio elements to shared (so that extensions can use them)
65326b54
oobabooga Remove duplicate max_new_tokens parameter
78ad5564
oobabooga Rename some variables, be consistent about ' and "
c5066f11
oobabooga Remove a space
77f58e5d
oobabooga Fix the API
2b4ce79b
oobabooga oobabooga changed the title Refactor gradio variables Create new extensions engine 2 years ago
oobabooga Add ui() function to extensions
e51ece21
oobabooga Move "send picture" into an extension
7a527a55
oobabooga Add the "send picture" extension file
58e67343
oobabooga Add a comment
fd19e481
oobabooga Add prompt hijack option for extensions
111b5d42
oobabooga Allow for permanent hijacking
67623a52
oobabooga Better way to generate custom prompts
13f26881
oobabooga Add greed parameter
2dfb999b
oobabooga Update README
88cfc84d
oobabooga Rename greed to "generation attempts"
7c2babfe
oobabooga Minor fix
1741c360
oobabooga Minor change
31fb5529
oobabooga oobabooga merged 3ef0f2ea into main 2 years ago
oobabooga oobabooga deleted the refactor_gradio branch 2 years ago

Login to write a write a comment.

Login via GitHub

Reviewers
No reviews
Assignees
No one assigned
Labels
Milestone