---
title: "Oobabooga Text Web API Tutorial"
description: "Credits to [Shuai Shao](https://www.linkedin.com/in/shuai-sh/), for this tutorial."
type: skill
canonical_url: https://claudary.paisolsolutions.com/skills/oobabooga
source: "Claudary"
difficulty: intermediate
author: "Claude Code Knowledge Pack"
date: 2026-07-10T11:31:28.318Z
license: CC-BY-4.0
attribution: "Oobabooga Text Web API Tutorial — Claudary (https://claudary.paisolsolutions.com/skills/oobabooga)"
---

# Oobabooga Text Web API Tutorial
Credits to [Shuai Shao](https://www.linkedin.com/in/shuai-sh/), for this tutorial.

## Overview

# Oobabooga Text Web API Tutorial

### Install + Import LiteLLM 
```python 
!uv add litellm
from litellm import completion 
import os
```

### Call your oobabooga model
Remember to set your api_base
```python
response = completion(
  model="oobabooga/WizardCoder-Python-7B-V1.0-GPTQ",
  messages=[{ "content": "can you write a binary tree traversal preorder","role": "user"}], 
  api_base="http://localhost:5000",
  max_tokens=4000
)
```

### See your response 
```python 
print(response)
```

Credits to [Shuai Shao](https://www.linkedin.com/in/shuai-sh/), for this tutorial.

---

Source: [Claudary](https://claudary.paisolsolutions.com/skills/oobabooga) · https://claudary.paisolsolutions.com
