---
title: "Comment by Aikhan on \"Ultimate Guide to Automating Twitter/X Posts with AI\" | Hashnode"
description: "Hey guys. There is an error because Gemini updated it's models. In the code, in the file index.js, the model specified is gemini-pro. This is not available, so"
url: "https://hashnode.com/posts/ultimate-guide-to-automating-twitterx-posts-with-ai/665205f6ea4d3ef1284d169f/comment/67e1dcc4bc9908a4f4a4ffc7"
---

[Discussion](https://hashnode.com/posts/ultimate-guide-to-automating-twitterx-posts-with-ai/665205f6ea4d3ef1284d169f)

Comment [Ultimate Guide to Automating Twitter/X Posts with AI](https://hashnode.com/posts/ultimate-guide-to-automating-twitterx-posts-with-ai/665205f6ea4d3ef1284d169f)

[Aikhan](https://hashnode.com/@aikhanj)

[Mar 24, 2025](https://hashnode.com/posts/ultimate-guide-to-automating-twitterx-posts-with-ai/665205f6ea4d3ef1284d169f/comment/67e1dcc4bc9908a4f4a4ffc7)

Hey guys. There is an error because Gemini updated it's models. In the code, in the file index.js, the model specified is gemini-pro. This is not available, so change it to something like gemini-2.0-flash
