|
if not model_details["type"] == "Free Playground": |
means that it will return free playground code example whenever model supports free playground.
For example, if an openai model supports free playground, "type" will be always "Free Playground", and "code_sample_azure" will be empty.
It should let user know that the model supports both free playground and deployment experience, instead of showing free playground only.
"type" should represent different types of deployment options, and free playground flag shouldn't use the same "type".