Skip to content

Commit 2746f68

Browse files
committed
final chatbot sorts models alphabetically
1 parent 0087241 commit 2746f68

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

notebooks/tps/chatbot/chatbot-10.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,8 @@ def fetch_models(self):
131131
print("HTTP status code:", answer.status_code)
132132
raw = answer.json()
133133
models = [ record['name'] for record in raw['models'] ]
134+
# for usability: sort the models alphabetically
135+
models.sort()
134136
print(f"For model {self.server.value}, received models:", models)
135137
self.models_per_server[self.server.value] = models
136138

0 commit comments

Comments
 (0)