Skip to content

Commit

Permalink
tools -> supports_tools
Browse files Browse the repository at this point in the history
  • Loading branch information
mitya52 committed Jun 19, 2024
1 parent 2014f94 commit 4048d55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion refact_webgui/webgui/selfhost_fastapi_completions.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ def _models_available_dict_rewrite(self, models_available: List[str]) -> Dict[st
if n_ctx := resolve_model_context_size(model, self._model_assigner):
d["n_ctx"] = n_ctx
if "tools" in self._model_assigner.models_db_with_passthrough.get(model, {}).get("filter_caps", []):
d["tools"] = True
d["supports_tools"] = True

rewrite_dict[model] = d
return rewrite_dict
Expand Down

0 comments on commit 4048d55

Please sign in to comment.