feat: Add OpenAI Compatible API support#22
Open
tinylion1024 wants to merge 1 commit intoaj47:mainfrom
Open
Conversation
- Add multi-provider AI service architecture supporting OpenAI, Groq, Anthropic, local Ollama, and custom endpoints - Implement unified AI service abstraction layer with automatic provider switching - Create user-friendly configuration interface with real-time validation - Add persistent configuration storage in localStorage - Maintain backward compatibility with existing Portkey integration - Enhance error handling and fallback mechanisms - Update documentation and add environment variable examples New files: - nextjs-web-app/src/lib/ai-config.ts - AI provider configuration management - nextjs-web-app/src/lib/ai-service.ts - Unified AI service abstraction - nextjs-web-app/src/hooks/useAIConfig.ts - Configuration management hook - nextjs-web-app/src/components/AIConfigModal.tsx - Configuration UI modal - nextjs-web-app/src/components/AIConfigButton.tsx - Configuration button component - nextjs-web-app/.env.example - Environment variables template - nextjs-web-app/src/lib/__tests__/ai-config.test.ts - Unit tests Modified files: - nextjs-web-app/src/app/api/generate/route.ts - Multi-provider API support - nextjs-web-app/src/app/page.tsx - AI configuration integration - nextjs-web-app/src/app/results/page.tsx - Provider selection support - README.md - Updated documentation with new features Features: - Support for 6 different AI providers out of the box - Seamless provider switching without application restart - Real-time configuration validation with user feedback - Secure API key storage and management - Full TypeScript support with proper type safety - Comprehensive error handling and user-friendly messages - No breaking changes - fully backward compatible
|
@tinylion1024 is attempting to deploy a commit to the aj47's projects Team on Vercel. A member of the Team first needs to authorize it. |
Owner
|
Hey! Thanks for the PR, I will check it out soon |
Owner
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

New files:
Modified files:
Features: