Git Product home page Git Product logo

Comments (8)

corticalstack avatar corticalstack commented on September 2, 2024 1

Yep, I've had a brain burp day, thanks for your support!

from pyrit.

romanlutz avatar romanlutz commented on September 2, 2024

Thanks for filing an issue! Did you make sure to use the notebook from the repo version of PyRIT that corresponds to the release version of PyRIT?

You've got 0.1.2 so you need to match the notebook accordingly. I'm fairly sure that argument was changed since the latest release. So you're probably using the notebook from main. Please let me know if my guess is correct 🙂

from pyrit.

corticalstack avatar corticalstack commented on September 2, 2024

Now that's interesting, and I wasn't aware there were diff versions of notebooks and diff branches. I installed Pyrit using pip, as per instructions today. Is PyPi release not updated? How would you suggest I can install latest version?

from pyrit.

corticalstack avatar corticalstack commented on September 2, 2024

@romanlutz I've uninstalled, and installed latest from repo. Now have pyrit: 0.1.3.dev0. I'm now trying to complete a chat with an OpenAIChatTarget (not Azure), and get the following error:

'OpenAIChatTarget' object has no attribute 'complete_chat'

Looks like codebase changed since this example in feature request for OpenAI support, Would you have an example that works to test a prompt completion with OpenAI? Thanks!

from pyrit.

romanlutz avatar romanlutz commented on September 2, 2024

We create releases every few weeks based on progress with features. I can't say when the next one will be yet but likely sooner rather than later.

Still, the main branch reflects the latest state of development. You can always assume that there's something new and it might not work with the latest release. That's why the repo has release tags. This is not unique to PyRIT but applies to every python project.

See contributor guide for Installation instructions for the dev version.

from pyrit.

romanlutz avatar romanlutz commented on September 2, 2024

[Sorry your response came in while I was writing mine so it's slightly out of order.]

@rlundeen2 you may want to look into this. Sounds like recent refactoring missed something.

@corticalstack we should be able to get you a response pretty quickly.

Still, the main branch is expected to be more prone to such errors since it's not as polished as a release version. The latest pypi release with the corresponding notebook version should work. You can browse the repo at that version using the branch selector on the repo landing page.

from pyrit.

corticalstack avatar corticalstack commented on September 2, 2024

No worries. Would use an earlier version but have prerequisite for OpenAIChatTarget, which looks like not available with earlier release 0.1.2?

from pyrit.

romanlutz avatar romanlutz commented on September 2, 2024

It was already included in v0.1.2, see

https://github.com/Azure/PyRIT/blob/releases/v0.1.2/pyrit/prompt_target/openai_chat_target.py

from pyrit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.