Skip to content

Commit

Permalink
added vertex_ai to strip prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
Avi-Robusta committed Dec 22, 2024
1 parent 54aa2ba commit c47b8b7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions holmes/core/llm.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,8 @@ def _strip_model_prefix(self) -> str:
model_name = model_name[len('openai/'):] # Strip the 'openai/' prefix
elif model_name.startswith('bedrock/'):
model_name = model_name[len('bedrock/'):] # Strip the 'bedrock/' prefix
elif model_name.startswith('vertex_ai/'):
model_name = model_name[len('vertex_ai/'):] # Strip the 'vertex_ai/' prefix

return model_name

Expand Down

0 comments on commit c47b8b7

Please sign in to comment.