---
title: "Comment by Hamza Soomro on \"Create Your Own Local Chatbot with Next.js, Ollama, and ModelFusion\" | Hashnode"
description: "Cannot read properties of undefined (reading &#39;chat&#39;) 35 | raw: true, // use raw inputs and map to prompt format below 36 | }) 37 | .withPromptFormat(Cha"
url: "https://hashnode.com/posts/create-your-own-local-chatbot-with-nextjs-ollama-and-modelfusion/6575731991393ae5650903dd/comment/65780d64c8238031e0982f13"
---

[Discussion](https://hashnode.com/posts/create-your-own-local-chatbot-with-nextjs-ollama-and-modelfusion/6575731991393ae5650903dd)

Comment [Create Your Own Local Chatbot with Next.js, Ollama, and ModelFusion](https://hashnode.com/posts/create-your-own-local-chatbot-with-nextjs-ollama-and-modelfusion/6575731991393ae5650903dd)

[Hamza Soomro](https://hashnode.com/@HamzaQadir)

[Dec 12, 2023](https://hashnode.com/posts/create-your-own-local-chatbot-with-nextjs-ollama-and-modelfusion/6575731991393ae5650903dd/comment/65780d64c8238031e0982f13)

Cannot read properties of undefined (reading 'chat') 35 | raw: true, // use raw inputs and map to prompt format below 36 | })

> 37 | .withPromptFormat(ChatMLPromptFormat.chat());

[Lars Grammel](https://hashnode.com/@lgrammel)

[Dec 12, 2023](https://hashnode.com/posts/create-your-own-local-chatbot-with-nextjs-ollama-and-modelfusion/6575731991393ae5650903dd/comment/65780d64c8238031e0982f13#reply-65781d4ea7af0fb6a9fcf8f9)

Thank you - I've updated that part, it was outdated.
