Skip to content

Conversation

@zhoujie0531
Copy link
Contributor

Summary

Add EdgeOne Pages as a new AI provider option, enabling users to use EdgeOne's Edge AI service with DeepSeek models without requiring an API key.

Changes

  • Add EdgeOne provider option in model selector and configuration
  • Implement OpenAI-compatible Edge Function (/api/edgeai/chat/completions) for EdgeOne Pages
  • Support DeepSeek models: deepseek-v3.2
  • Add model validation support for EdgeOne provider

Features

  • No API key required - uses EdgeOne's built-in AI service
  • OpenAI-compatible API interface
  • Streaming response support with native tool calling
  • Automatic deployment to EdgeOne Pages

Files

  • edge-functions/api/edgeai/chat/completions.ts - Edge Function implementation
  • edgeone.json - EdgeOne Pages configuration
  • lib/ai-providers.ts - Provider registration
  • components/model-selector.tsx - UI integration
  • app/api/validate-model/route.ts - Model validation

@DayuanJiang
Copy link
Owner

Thanks for the contribution, merged.

@DayuanJiang DayuanJiang merged commit ca21a5b into DayuanJiang:main Dec 30, 2025
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants