Comments (8)
Yep, I've had a brain burp day, thanks for your support!
from pyrit.
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.
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.
@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.
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.
[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.
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.
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)
- Using AzureMLChatTarget raises 404 and 405 errors HOT 3
- Gandalf example not working HOT 4
- bug: Azure SQL Tests Fail in MacOS M1 HOT 2
- Add adaptive jailbreaking
- Add fetch function for SecLists AI LLM Bias Testing datasets HOT 2
- Add fetch function for datasets from HarmBench
- Getting "404 Resource Not Found" HOT 3
- FEAT Metadata for datasets should allow fields as string OR list of strings
- gandalf example error (Failed to add request response to memory) HOT 3
- Got a new Jailbreak Prompt HOT 1
- FEAT add XSTest dataset
- FEAT add DecodingTrust dataset
- FEAT: Add Azure OpenAI GPT-4o target for pyrit
- Unable to get pyrit working after the change HOT 11
- [BUG] Black-pre-commit hook language-version binding causing installation issues.
- Where is the demo code? HOT 2
- Does PyRIT support to test websocket? HOT 2
- Ollama Support and Initial Run Documentation HOT 12
- FEAT Add Copilot Target
- FEAT Local Hugging Face model support HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyrit.