The layoffs have got nothing to do with ChatGPT. As for google the layoffs are mostly meant to push the stock price up. Which is why investors are also asking for layoff of 6% employees to be increased to 20%. This is just the first wave.