> For the complete documentation index, see [llms.txt](https://docs.heyamica.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.heyamica.com/connecting-llms-your-core-ai-chatbot-model/using-oobabooga.md).

# Using Oobabooga

You can find the full Oobabooga documentation [here](https://github.com/oobabooga/text-generation-webui/wiki).

### Step 1 - Install Oobabooga

```bash
python3 -m venv venv
source venv/bin/activate
# choose correct requirements.txt for your system
pip install -r requirements.txt
# install the openai extension
pip install -r extensions/openai/requirements.txt
```

### Step 2 - Start the server

```bash
python server.py --api
```

### Step 3 - Configure Oobabooga

Open <http://127.0.0.1:7860/> in your browser and configure the server.

Make sure you load the model in the "Model" tab.

### Step 4 - Enable the server in the client

Set ChatBot Backend to ChatGPT in the client settings:

```md
settings -> ChatBot -> ChatBot Backend -> ChatGPT
```

Next, set the **OpenAI URL** to `http://localhost:5000`

```md
settings -> ChatBot -> ChatGPT -> OpenAI URL -> http://localhost:5000
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.heyamica.com/connecting-llms-your-core-ai-chatbot-model/using-oobabooga.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
