Infinite thinking on Pulumi AI
addievo opened this issue · comments
What happened?
Pulumi AI with GPT v4 infinitely loops on thinking whenever prompt size exceeds 100 words.
Example
To reproduce
Use the following prompt on Pulumi AI
// Create three public Subnets for (let i = 0; i < 3; i++) { let subnet = new aws.ec2.Subnet(`publicSubnet${i}`, { vpcId: vpc.id, cidrBlock: ipv4Ranges[i], availabilityZone: availabilityZones[i], mapPublicIpOnLaunch: true, tags: { Name: `publicSubnet${i}`, // You can add more tags here as needed }, }); } region: 'ap-southeast-2', vpc: { name: 'polykey-testnet', cidrBlock: '10.1.0.0/16', },tags: { baseTag: { key: 'Network', value: 'polykey-testnet', }, BaseTag: { Key: 'Network', Value: 'polykey-testnet', }, },
Modify the subnet creation based on the aforementioned region and cidr```
### Output of `pulumi about`
N.A.
### Additional context
_No response_
### Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).
Hey @addievo, thanks for reporting this and providing the prompt. We're working on it!
Hi @addievo ! Thank you again for reporting this issue. We've recently deployed a change which should resolve this. Please feel free to try again, and let us know what you think! I'm going to close it for now, but definitely reply here if you encounter any further issues.