.  </p>
<h1 id="why">Why?</h1>
<p>Converting the python in Oobabooga Text Generation Web UI to C# was a good way for me to learn what happens in the Web UI Gradio app under the covers. The library contains:   </p>
<ul>
<li>Each of the Web UI presets (at the time of this writing)</li>
<li>Models for generating requests with documentation of each property</li>
<li>Methods for <strong>/api/v1/generate</strong> and <strong>/api/v1/token-count</strong></li>
<li>Prompt templates for Vicuna, Dolly, and Llama model