File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
adalflow/adalflow/components/model_client Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -180,12 +180,14 @@ def list_models(self):
180180
181181 try :
182182 response = self ._client .list_foundation_models ()
183- models = response .get ("models " , [])
183+ models = response .get ("modelSummaries " , [])
184184 for model in models :
185185 print (f"Model ID: { model ['modelId' ]} " )
186- print (f" Name: { model ['name' ]} " )
187- print (f" Description: { model ['description' ]} " )
188- print (f" Provider: { model ['provider' ]} " )
186+ print (f" Name: { model ['modelName' ]} " )
187+ print (f" Provider: { model ['providerName' ]} " )
188+ print (f" Input: { model ['inputModalities' ]} " )
189+ print (f" Output: { model ['outputModalities' ]} " )
190+ print (f" InferenceTypesSupported: { model ['inferenceTypesSupported' ]} " )
189191 print ("" )
190192 except Exception as e :
191193 print (f"Error listing models: { e } " )
You can’t perform that action at this time.
0 commit comments