Sep 12, 2024
By
ModelBox Team
Cursor (https://www.cursor.com/) is currently creating a stir in the tech world, quickly emerging as one of the most sought-after IDEs. This blog post examines the benefits of integrating GPT-1 preview with Cursor and offers a detailed guide on how to accomplish this effectively.
Why GPT O1 Mini (o1-mini)?
The OpenAI O1 Mini is a newly released smaller version of the o1 model, designed to optimize reasoning tasks, particularly in coding. It provides advanced reasoning capabilities similar to its larger counterpart, making it well-suited for generating and debugging complex code. However, it is 80% cheaper and faster, making it a cost-effective solution for developers who need reasoning power but don’t require broad world knowledge.
Getting started
Install Cursor
Skip this step if you already install the cursor
If you haven't already installed Cursor, visit https://www.cursor.com/ and click "Download". Unzip the downloaded file and run the installer to complete the installation.
Set up ModelBox and obtain your API Key
Go to https://model.box/ and sign in. If you haven't already, deposit funds into your account.
Navigate to the API Keys section and click "Create" to generate your API key.
Important: Your API key will only be displayed once, so make sure to save it securely. You'll need this key for Cursor in the following steps.
Open Cursor and configure O1 Mini
Open cursor settings in Settings > Cursor Settings,
Begin by opening the models section and clicking "Add model" (circle 2). Enter "openai/o1-mini" and enable the model (circle 3).
Next, click "Override OpenAI Base URL" to configure the ModelBox OpenAI-compatible API endpoint, https://api.model.box/v1 (circle 5). Then, enter the API key you obtained from ModelBox in the designated field (circle 6).
After enabling the OpenAI API Key by toggling the switch, you can verify your access to Deepseek in Cursor by clicking the "Verify" button. This process ensures proper setup and connectivity to the Deepseek model within the Cursor environment.
Starting using Cursor with O1 Mini (o1-mini)
You can now utilize deepseek-coder in Cursor. For example, use Command+K to toggle completion or simply press the Tab key to navigate through suggestions.
Analyze your token usage in ModelBox
After setting up DeepSeek with Cursor, you can access your ModelBox Analytics dashboard to monitor your token usage. Additionally, you can visit the History tab to view detailed request information, including prompts, latency, cache status, and more.
About Cursor
Cursor is the AI code editor aiming to make users extraordinarily productive.
Here are some key features and aspects of Cursor:
AI assistance: Cursor integrates AI capabilities to help developers write, understand, and debug code more efficiently.
Code completion: The platform offers advanced code completion suggestions, helping developers write code faster and with fewer errors.
Natural language processing: Users can describe what they want to do in plain English, and Cursor will attempt to generate the corresponding code.
Code explanation: Cursor can provide explanations for complex code snippets, making it easier for developers to understand unfamiliar codebases.
Debugging support: The AI can assist in identifying and fixing bugs in the code.
Multi-language support: Cursor works with various programming languages, making it versatile for different types of projects.
GitHub integration: The platform integrates with GitHub, allowing for seamless version control and collaboration.
Performance: Cursor is designed to be fast and responsive, even when working with large codebases.
User interface: It features a clean, modern interface that aims to maximize productivity.
Continuous updates: As an AI-powered tool, Cursor is regularly updated to improve its capabilities and features.