We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0087241 commit 2746f68Copy full SHA for 2746f68
notebooks/tps/chatbot/chatbot-10.py
@@ -131,6 +131,8 @@ def fetch_models(self):
131
print("HTTP status code:", answer.status_code)
132
raw = answer.json()
133
models = [ record['name'] for record in raw['models'] ]
134
+ # for usability: sort the models alphabetically
135
+ models.sort()
136
print(f"For model {self.server.value}, received models:", models)
137
self.models_per_server[self.server.value] = models
138
0 commit comments