Skip to content

Commit

Permalink
Fix schema for cohere rerank
Browse files Browse the repository at this point in the history
  • Loading branch information
ystoneman authored May 9, 2024
1 parent 69cdc88 commit 8fad532
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ def get_cross_encoder_models():
if not SAGEMAKER_RAG_MODELS_ENDPOINT:
models = list(filter(lambda x: x["provider"] != "sagemaker", models))

for model in models:
if 'default' not in model:
model['default'] = False

return models


Expand Down

0 comments on commit 8fad532

Please sign in to comment.