Skip to content

Commit

Permalink
Revert changes
Browse files Browse the repository at this point in the history
  • Loading branch information
oulianov committed Oct 9, 2024
1 parent 293e19e commit 756bb08
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backend/app/services/mongo/predict.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ async def metered_prediction(
nb_credits_used = (input_tokens + 3 * completion_tokens) * 250
meter_event_name = "phospho_token_based_meter"

elif model_id == "azure:gpt-4o":
elif model_id == "openai:gpt-4o":
# Any other orgs using requesting OpenAI completion will be routed through Azure OpenAI
input_tokens = sum(
[response["usage"]["prompt_tokens"] for response in predictions]
Expand Down
2 changes: 1 addition & 1 deletion phospho-python/phospho/lab/job_library.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ async def event_detection(
event_description: str,
score_range_settings: Optional[ScoreRangeSettings] = None,
detection_scope: DetectionScope = "task",
model: str = "azure:gpt-4o",
model: str = "openai:gpt-4o",
**kwargs,
) -> JobResult:
"""
Expand Down

0 comments on commit 756bb08

Please sign in to comment.