For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Contact usJoin our Discord
HomeAdministration & GovernanceDevelopment and IntegrationAgent ForgeAPI ReferenceSDK Docs
HomeAdministration & GovernanceDevelopment and IntegrationAgent ForgeAPI ReferenceSDK Docs
  • Getting Started
    • Quick Start
  • Available Models
    • LLMs
    • LVMs
    • Embedding Models
    • Audio Models
    • Reranker Models
    • Model Enumerations
    • Prompt Formatting
  • Using LLMs
    • Accessing LLMs
    • Basic Prompting
    • Prompt Engineering
    • Chat Completions
    • Chaining and Retrieval
    • Tool Calling
    • Agents
    • Streaming
    • Chat Vision
    • Embeddings
  • Secure and Filter Inputs
    • PII Detection
    • Injection Prevention
  • Secure and Filter Outputs
    • Factuality Checks
    • Toxicity Detection
  • Integration Examples
    • Custom Output Structuring
    • Data Chat with LLMs
    • Data Extraction + Factuality
    • LangChain Integration
    • Code Assistant
  • Support
    • Contact Us
LogoLogo
Contact usJoin our Discord
On this page
  • Step 1: Install the Continue.dev extension
  • Step 2: Add a provider
  • Step 3: Modify config.json
  • Start Coding
Integration Examples

Prediction Guard powered Code Assistant

Was this page helpful?
Previous

Contact Us

Next
Built with

Continue.dev is an open-source AI code assistant available as an extension for both VS Code and JetBrains. It is flexible, supporting various model providers. The best part? You can quickly and easily set up Prediction Guard as a provider by following these simple steps:

Step 1: Install the Continue.dev extension

You can install the Continue.dev extension from the VS Code Marketplace or from the JetBrains Plugins Marketplace.

Step 2: Add a provider

Open the Continue.dev chat interface by clicking the Continue.dev icon on the left panel in VS Code. In the chat tab, locate the dropdown that lists all the available providers. Click on + Add Chat Model. This will open a new tab to configure your custom provider.

Step 3: Modify config.json

In the newly opened tab, click on the config file hyperlink to open the file in VS Code. Add the following configuration to the file::

{
"title": "Prediction Guard",
"provider": "openai",
"model": "<Model>",
"systemMessage": "You are an expert software developer. You give helpful and concise responses.",
"apiKey": "<Your PG API key>",
"apiBase": "<Your PG API URL>"
}

A list of models supported by Prediction Guard can be found in the documentation. Replace Model with the model you want to use and Your API key with your API key. Save the file.

For tabautocomplete modify the config.json like this:

"tabAutocompleteModel": {
"title": "Prediction Guard",
"provider": "openai",
"model": "",
"apiKey": "<Your PG API Key>",
"apiBase": "<Your PG API URL>",
"useLegacyCompletionsEndpoint": false
}

Ensure that the Autocomplete is enabled in the settings.

Start Coding

Once saved, Prediction Guard will be available as a provider in Continue.dev, and you can start using it right away.

Happy Coding!