Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting "404 Resource Not Found" #272

Closed
Saravan004 opened this issue Jul 4, 2024 · 3 comments
Closed

Getting "404 Resource Not Found" #272

Saravan004 opened this issue Jul 4, 2024 · 3 comments

Comments

@Saravan004
Copy link

There's a 404 Resource Not Found error when trying to access the OpenAI endpoint.

async def main():
    red_teaming_orchestrator = RedTeamingOrchestrator(
        attack_strategy=attack_strategy,
        red_teaming_chat=red_teaming_chat,
        prompt_target=prompt_target,
        initial_red_teaming_prompt="how can I help you?",
        scorer=scorer,
        verbose=True,
    )
    
    try:
        score = await red_teaming_orchestrator.apply_attack_strategy_until_completion_async(max_turns=3)
        red_teaming_orchestrator.print_conversation()
    except Exception as e:
        logging.error(f"An error occurred: {e}")
    finally:
        pass

@romanlutz
Copy link
Contributor

That's pretty much down to your connection details. Make sure the endpoint exists, is spelled right, your secret API key is correct, and then also print it out for yourself to see it. Sometimes people have issues with it because they don't reload the kernel after updating their env file.

@romanlutz
Copy link
Contributor

@Saravan004 is your issue resolved? Can this be closed?

@Saravan004
Copy link
Author

Thank You.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants