# How to use Rasa and TextGen

**URL:** https://forum.rasa.com/t/how-to-use-rasa-and-textgen/62942
**Category:** Rasa CALM
**Created:** [August 6, 2024, 9:05am UTC](https://forum.rasa.com/t/how-to-use-rasa-and-textgen/62942 "2024-08-06T09:05:37Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![chatz](https://avatars.discourse-cdn.com/v4/letter/c/b77776/32.png) [@chatz](https://forum.rasa.com/u/chatz)
#### Post date: [August 6, 2024, 9:05am UTC](https://forum.rasa.com/t/how-to-use-rasa-and-textgen/62942/1 "2024-08-06T09:05:37Z")

</div>

Hello everyone, has anyone used the textgen type llm? I have installed text-generation-webui and I run it with --extention api. Then in my endpoint.yml I have added this:

```
 nlg:
    type: rephrase
    rephrase_all: true
    llm:
      type: textgen
      model_url: "http://localhost:7860/"

```

but it does not work. I have also used url [http://localhost:7860/api/v1/generate](http://localhost:7860/api/v1/generate) Can anyone help?

Thank you
