The default functionality parses ChatGPT responses as markdown using [html-to-md](https://github.com/stonehank/html-to-md). I've found that this works really well during my testing, but if you'd rather output plaintext, you can use:
By default, ChatGPT responses are parsed as markdown using [html-to-md](https://github.com/stonehank/html-to-md). I've found that this works really well during my testing, but if you'd rather output plaintext, you can use:
```ts
```ts
constapi=newChatGPTAPI({markdown:false})
constapi=newChatGPTAPI({markdown:false})
...
@@ -88,7 +88,10 @@ const api = new ChatGPTAPI({ markdown: false })
...
@@ -88,7 +88,10 @@ const api = new ChatGPTAPI({ markdown: false })
A full [example](./src/example.ts) is included for testing purposes:
A full [example](./src/example.ts) is included for testing purposes: