Skip to content

Commit

Permalink
Address dependabot and github action failures (#2)
Browse files Browse the repository at this point in the history
This fixes some issues found by Dependabot and the default GitHub Actions that were enabled with the move to public GitHub
  • Loading branch information
ajbozarth authored Sep 13, 2024
1 parent 931083e commit 83fd6fe
Show file tree
Hide file tree
Showing 5 changed files with 433 additions and 442 deletions.
8 changes: 5 additions & 3 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:

1. Go to '...'
2. Click on '...'
3. Scroll down to '...'
Expand All @@ -23,9 +24,10 @@ A clear and concise description of what you expected to happen.
If applicable, add screenshots to help explain your problem.

**Enviroment (please complete the following information):**
- OS: [e.g. macOS]
- Browser [e.g. Chrome, Safari]
- Version [e.g. 22]

- OS: [e.g. macOS]
- Browser [e.g. Chrome, Safari]
- Version [e.g. 22]

**Additional context**
Add any other context about the problem here.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
jupyter labextension list
jupyter labextension list 2>&1 | grep -ie "qiskit-code-assistant-jupyterlab.*OK"
python -m jupyterlab.browser_check
python -m jupyterlab.browser_check --no-browser-test
- name: Package the extension
run: |
Expand Down
26 changes: 13 additions & 13 deletions README-PyPi.md
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
# Qiskit Code Assistant (Beta)

> This experimental feature is only available, as of today, for some IBM Quantum users.
If you are not part of that cohort of users, you can still install this extension; however you will not be able to use the assistant.
The Qiskit Code Assistant is a beta release, subject to change.
> If you are not part of that cohort of users, you can still install this extension; however you will not be able to use the assistant.
> The Qiskit Code Assistant is a preview feature release, subject to change.
Write and optimize Qiskit code with a generative AI code assistant.

**************
---

Increase quantum computing developer productivity and learn best practices for Qiskit and IBM Quantum Platform services with Qiskit Code Assistant!

**************
---

Make programming quantum computers even easier with Qiskit Code Assistant, a generative AI code assistant. Trained with approximately 370 million text tokens from Qiskit SDK v1.x, years of Qiskit code examples, and IBM Quantum features, Qiskit Code Assistant accelerates your quantum development workflow by offering LLM-generated suggestions based on [IBM Granite 8B Code](https://www.ibm.com/products/watsonx-ai/foundation-models) that incorporate the latest features and functionalities from IBM. And soon, Qiskit Code Assistant will be able to be used alongside Qiskit patterns building blocks for reusable code and workflow simplification.

Qiskit is the open-source quantum SDK preferred by 69% of respondents to the Unitary Fund's Open Source Software Survey, with nearly 600,000 registered users to date. Now you can get the performance and stability of the Qiskit SDK with the added efficiency of Qiskit Code Assistant to streamline your workflow and optimize your quantum computing programs.

## Features

* Accelerate Qiskit code generation by leveraging generative AI based on the `granite-8b-qiskit` model
* Use abstract and specific prompts to generate recommendations
* Manage code changes by reviewing, accepting, and rejecting suggestions
* Supports Python code files
- Accelerate Qiskit code generation by leveraging generative AI based on the `granite-8b-qiskit` model
- Use abstract and specific prompts to generate recommendations
- Manage code changes by reviewing, accepting, and rejecting suggestions
- Supports Python code files

## Learn the best ways to use Qiskit and IBM Quantum Platform services

Expand Down Expand Up @@ -124,8 +124,8 @@ There are a few settings we recommend to edit in your user settings.

## Terms of use

* Terms of use: [https://quantum.ibm.com/terms](https://quantum.ibm.com/terms)
* Privacy policy: [https://quantum.ibm.com/terms/privacy](https://quantum.ibm.com/terms/privacy)
* Cloud Services Agreement [https://www.ibm.com/support/customer/csol/terms/?id=Z126-6304&cc=us&lc=en](https://www.ibm.com/support/customer/csol/terms/?id=Z126-6304&cc=us&lc=en)
* IBM Cloud Service Description [https://www.ibm.com/support/customer/csol/terms/?id=i126-6605&lc=en](https://www.ibm.com/support/customer/csol/terms/?id=i126-6605&lc=en)
* EULA acceptance required before starting to use the model
- Terms of use: [https://quantum.ibm.com/terms](https://quantum.ibm.com/terms)
- Privacy policy: [https://quantum.ibm.com/terms/privacy](https://quantum.ibm.com/terms/privacy)
- Cloud Services Agreement [https://www.ibm.com/support/customer/csol/terms/?id=Z126-6304&cc=us&lc=en](https://www.ibm.com/support/customer/csol/terms/?id=Z126-6304&cc=us&lc=en)
- IBM Cloud Service Description [https://www.ibm.com/support/customer/csol/terms/?id=i126-6605&lc=en](https://www.ibm.com/support/customer/csol/terms/?id=i126-6605&lc=en)
- EULA acceptance required before starting to use the model
6 changes: 4 additions & 2 deletions qiskit_code_assistant_jupyterlab/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,10 @@ def update_token(token):
def init_token():
token = os.environ.get("QISKIT_IBM_TOKEN")

if not token:
with open(Path.home() / ".qiskit" / "qiskit-ibm.json") as f:
path = Path.home() / ".qiskit" / "qiskit-ibm.json"

if not token and os.path.exists(path):
with open(path) as f:
config = json.load(f)
token = config.get("qiskit-code-assistant", {}).get("token")

Expand Down
Loading

0 comments on commit 83fd6fe

Please sign in to comment.