Skip to content

Commit

Permalink
Edit logging
Browse files Browse the repository at this point in the history
  • Loading branch information
oulianov committed Oct 9, 2024
1 parent 97acb65 commit 7f30394
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion phospho-python/phospho/lab/job_library.py
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,9 @@ async def event_detection(
temperature=0,
)
except Exception as e:
logger.error(f"event_detection call to Azure API failed : {e}")
logger.warning(
f"event_detection call to Azure API failed: {e}. Falling back to OpenAI API."
)
async_openai_client = get_async_client("openai")
# Fallback to OpenAI API
response = await async_openai_client.chat.completions.create(
Expand Down

0 comments on commit 7f30394

Please sign in to comment.