Skip to content

Commit

Permalink
Update agents-api/agents_api/activities/task_steps/prompt_step.py
Browse files Browse the repository at this point in the history
Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
  • Loading branch information
Vedantsahai18 and ellipsis-dev[bot] authored Oct 29, 2024
1 parent 98e3d3e commit c6d9f23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion agents-api/agents_api/activities/task_steps/prompt_step.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ async def prompt_step(context: StepContext) -> StepOutcome:
if "claude-3.5-sonnet-20241022" == agent_model.lower():
# Retrieve the API key from the environment variable
betas = [COMPUTER_USE_BETA_FLAG]
api_key = os.getenv("ANTHROPIC_API_KEY")
api_key = os.getenv("ANTHROPIC_API_KEY") or raise ValueError("API key is not set.")
# Format all three Anthropic tools
formatted_agent_tools = format_anthropic_tools(agent_tools)
# Use Anthropic API directly
Expand Down

0 comments on commit c6d9f23

Please sign in to comment.