Nova

Extensions


Readme

Nova OpenAI Assistant 🚀

Welcome to Nova OpenAI Assistant! This extension allows you to interact with OpenAI's API directly from the Nova editor. Generate, review, and debug code effortlessly using OpenAI's powerful language models.

📦 Installation

  1. Download and install the extension.
  2. Open Nova, go to Extensions > Nova OpenAI Assistant in the Extensions Library.
  3. Configure your OpenAI API settings (see below).

⚙️ Configuration

To use this extension, you need to set up your OpenAI API key and model:

  1. OpenAI API Key 🗝️
  2. Open Nova, go to Extensions > Extension Library.
  3. Select Nova OpenAI Assistant in your Installed Extensions and go into the Settings tab.
  4. Enter your OpenAI API Key in the OpenAI API Key field.
  5. Example: sk-XXXXXXXXXXXXXXXXXXXX.

  6. OpenAI Model 🎛️

  7. Choose a model from the radio button list:
    • o3-mini
    • o3-mini-high
    • gpt-4 (default)

✨ Features

📝 Generate Code

  • Command: Generate code (OpenAI)...
  • Describe the code you want to generate, and OpenAI will create it for you.
  • The generated code and comments will be inserted into the active editor.

🔍 Review Code

  • Command: Check code with OpenAI
  • OpenAI analyzes your code and suggests improvements or optimizations.
  • Results appear in a new tab labeled AI Suggestions.

🛠️ Debug Code

  • Command: Debug code with OpenAI
  • Detect errors and get debugging suggestions from OpenAI.
  • Results appear in a new tab labeled Debug Suggestions.

🚀 How It Works

  • The extension fetches your OpenAI API Key and selected model from the configuration settings.
  • It sends user prompts and code snippets to OpenAI's API.
  • Responses are processed and displayed in the Nova editor.
  • Supports JavaScript, HTML, and other programming languages.

🛑 Permissions

This extension requires the following permissions: - Clipboard Access: To copy and insert generated code. - Network Requests: To communicate with OpenAI's API.

🛠️ Troubleshooting

  • No API Key Configured: Ensure you’ve entered a valid OpenAI API key in the settings.
  • Slow Response: OpenAI requests may take time; ensure a stable internet connection.
  • Empty Response: The model might not return valid code; try rephrasing your request.

📝 License

MIT License. Developed by CEESA.

🎉 Happy coding with Nova OpenAI Assistant!


Changelog

Version 1.0

Initial release

Version 1.1

Corrected error in README.md

Version 1.2

Changed color of extension.png