Daya Integration Guide for Neovate
Daya is an AI model aggregation platform similar to OpenRouter that provides unified access to multiple AI models. This guide shows you how to integrate Daya with Neovate.
Configuration Methods
Daya offers two configuration approaches to suit different deployment scenarios:
Method 1: Environment Variable (Recommended)
The simplest way to configure Daya is using the DAYA_API_KEY environment variable:
export DAYA_API_KEY=your_daya_api_key_hereFor Windows users:
set DAYA_API_KEY=your_daya_api_key_hereMethod 2: Configuration File (Legacy)
For users requiring more complex configurations or those migrating from older versions, Daya supports configuration files:
{
"daya": {
"apiKey": "your_daya_api_key_here",
"api": "https://api.dayaai.com/api/v1"
}
}For more details, refer to the Neovate Configuration Documentation.
Integration Steps
Install Neovate Code (if not already installed):
bashnpm install -g @neovate/codeConfigure Daya API Key:
bashexport DAYA_API_KEY=your_api_keyLaunch Neovate:
bashneovate # or neoSelect Daya Provider:
bash/login # Select Daya from the provider listChoose Your Model:
bash/model # Select from available Daya models
Available Features
Once configured, you can leverage Daya'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
# 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 Daya
- 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 Daya-specific issues:
- Visit Daya Documentation
For Neovate integration issues:
