Sample Code in the GitHub Models playground is not working with the new github.com endpoint #158638
-
Select Topic AreaBug BodyHello, and help! I can't run the sample playground code shown at the link below, using either Python, or C# with the OpenAI SDK. https://github.com/marketplace/models/azure-openai/gpt-4o/playground From the Python SDK I get an error "publisher is required". For me, it only works if I change the endpoint from "https://models.github.ai/inference" to "https://models.inference.ai.azure.com/" (i.e. reverting from the new endpoint URI to the old one on azure.com). |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 4 replies
-
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
Oh interesting, I didn't notice there was a difference in model name on the Use this Model dialog. I was using the code directly from the Code tab, with a model name of "gpt-4o", yes. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.



Thank you for the report! Looks like we need to update our examples. To confirm, were you using a model name like "gpt-4o", such as what we show in the Code tab?
In the meantime, you should be able to get the Python and C# code working if you use a model name like "openai/gpt-4o", like the example in the "Use this model" dialog: