Preheat your oven to 375°F (190°C).
In a large skillet, heat the olive oil over medium heat. Add the sliced onions and cook until they are soft and caramelized, about 15-20 minutes.
Stir in the minced garlic, ground thyme, and half of the fresh thyme. Season with salt and pepper, then remove from heat.
In a separate bowl, mix the gruyere cheese, parmesan cheese, and garlic powder together.
Take each chicken breast and create a pocket by slicing it horizontally, being careful not to cut all the way through.
Stuff each chicken breast with the onion mixture and the cheese blend, securing with toothpicks if necessary.
In the same skillet, melt the butter and add the stuffed chicken breasts. Sear them on both sides until golden brown, about 3-4 minutes per side.
Transfer the chicken to a baking dish. Pour the beef broth around the chicken and drizzle with white wine if using.
Sprinkle the remaining fresh thyme on top of the chicken.
Cover the dish with foil and bake for 25-30 minutes, or until the chicken is cooked through.
Remove the foil and bake for an additional 5-10 minutes to allow the cheese to melt and brown slightly.
Let it rest for a few minutes before serving.
