Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ishaansehgal99 committed Jan 14, 2025
1 parent 5cf21d3 commit 7b10cd6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions presets/ragengine/inference/inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ def _custom_api_complete(self, prompt: str, **kwargs: Any) -> CompletionResponse
except HTTPError as e:
if e.response.status_code == 400:
logger.warning(
f"Detected missing 'model' parameter in API response. "
f"Response: {str(e)}. Attempting to fetch the default model..."
f"Potential issue with 'model' parameter in API response. "
f"Response: {str(e)}. Attempting to update the model name as a mitigation..."
)
self._default_model = self._fetch_default_model() # Fetch default model dynamically
if self._default_model:
Expand Down

0 comments on commit 7b10cd6

Please sign in to comment.