---
title: "Comment by Jakob on \"Building a ChatGPT client app with Flutter\" | Hashnode"
description: "I cloned the github repo and attempted to run the application, however upon replacement of the API, the application will not run providing the error: &quot;Cons"
url: "https://hashnode.com/posts/building-a-chatgpt-client-app-with-flutter/64146492f240fdbee3dba60d/comment/646c4a925ccc6321b7044988"
---

[Discussion](https://hashnode.com/posts/building-a-chatgpt-client-app-with-flutter/64146492f240fdbee3dba60d)

Comment [Building a ChatGPT client app with Flutter](https://hashnode.com/posts/building-a-chatgpt-client-app-with-flutter/64146492f240fdbee3dba60d)

[Jakob](https://hashnode.com/@JakobGrayAus)

[May 23, 2023](https://hashnode.com/posts/building-a-chatgpt-client-app-with-flutter/64146492f240fdbee3dba60d/comment/646c4a925ccc6321b7044988)

I cloned the github repo and attempted to run the application, however upon replacement of the API, the application will not run providing the error:

"Const variables must be initialized with a constant value."

If I wrap the api key in '' then the application just says "an error has occurred" when trying to send messages...

Any ideas to help a newbie?

[Christos](https://hashnode.com/@yallurium)

[Nov 19, 2023](https://hashnode.com/posts/building-a-chatgpt-client-app-with-flutter/64146492f240fdbee3dba60d/comment/646c4a925ccc6321b7044988#reply-655a270b2a6c065f3be4e658)

You need to get your own API key from OpenAI, otherwise this won't work. (apologies for the late response)
