跳到正文

开桥 Integration Guide for Neovate ​

开桥 is an AI model aggregation platform that provides unified access to multiple AI models. This guide shows you how to integrate 开桥 with Neovate.

Configuration Methods ​

开桥 offers two configuration approaches to suit different deployment scenarios:

The simplest way to configure 开桥 is using the OPENQIAO_API_KEY environment variable:

bash
export OPENQIAO_API_KEY=your_openqiao_api_key_here

For Windows users:

cmd
set OPENQIAO_API_KEY=your_openqiao_api_key_here

Method 2: Configuration File (Legacy) ​

For users requiring more complex configurations or those migrating from older versions, 开桥 supports configuration files:

json
{
  "openqiao": {
    "apiKey": "your_openqiao_api_key_here",
    "api": "https://openqiao.com/api/v1"
  }
}

For more details, refer to the Neovate Configuration Documentation.

Integration Steps ​

  1. Install Neovate Code (if not already installed):

    bash
    npm install -g @neovate/code
  2. Configure 开桥 API Key:

    bash
    export OPENQIAO_API_KEY=your_api_key
  3. Launch Neovate:

    bash
    neovate
    # or
    neo
  4. Select 开桥 Provider:

    bash
    /login
    # Select 开桥 from the provider list
  5. Choose Your Model:

    bash
    /model
    # Select from available 开桥 models

Available Features ​

Once configured, you can leverage 开桥's model capabilities through Neovate Code:

  • Code Generation: Generate code snippets and complete functions
  • Bug Fixing: Identify and resolve code issues
  • Code Review: Get intelligent code review suggestions
  • Test Creation: Generate comprehensive unit tests
  • Code Refactoring: Optimize and restructure existing code

Example Usage ​

bash
# Generate error handling
"Add comprehensive error handling to the user authentication service"

# TypeScript migration
"Convert this JavaScript module to TypeScript with proper type definitions"

# Testing
"Create unit tests for the payment processing module with edge cases"

# Performance optimization
"Optimize this SQL query for better performance with large datasets"

Benefits of Using 开桥 ​

  • Model Diversity: Access to multiple AI models through a single interface
  • Cost Optimization: Compare and choose models based on performance and pricing
  • High Availability: Redundancy across multiple model providers
  • Unified API: Consistent interface regardless of the underlying model

Support ​

For 开桥-specific issues:

For Neovate integration issues: