diff --git a/src/ai/chat/components/ChatBot.tsx b/src/ai/chat/components/ChatBot.tsx index 10408ee..9ac8aac 100644 --- a/src/ai/chat/components/ChatBot.tsx +++ b/src/ai/chat/components/ChatBot.tsx @@ -70,7 +70,7 @@ export default function ChatBot() { }; return ( -
+
diff --git a/src/ai/image/components/ImagePlayground.tsx b/src/ai/image/components/ImagePlayground.tsx index a88887d..105e3db 100644 --- a/src/ai/image/components/ImagePlayground.tsx +++ b/src/ai/image/components/ImagePlayground.tsx @@ -76,9 +76,9 @@ export function ImagePlayground({ return (
-
+
{/* header */} - + {/* */} {/* input prompt */} + OpenRouter OpenAI GPT-4o Google Gemini - DeepSeek - OpenRouter + DeepSeek R1
diff --git a/src/ai/text/components/web-content-analyzer.tsx b/src/ai/text/components/web-content-analyzer.tsx index 64efc6f..4e7f769 100644 --- a/src/ai/text/components/web-content-analyzer.tsx +++ b/src/ai/text/components/web-content-analyzer.tsx @@ -194,7 +194,8 @@ export function WebContentAnalyzer({ className }: WebContentAnalyzerProps) { const [state, dispatch] = useReducer(analysisReducer, initialState); // Model provider state - const [modelProvider, setModelProvider] = useState('openai'); + const [modelProvider, setModelProvider] = + useState('openrouter'); // Enhanced error state const [analyzedError, setAnalyzedError] = diff --git a/src/ai/text/utils/web-content-analyzer-config.ts b/src/ai/text/utils/web-content-analyzer-config.ts index 078cb14..1fb1c58 100644 --- a/src/ai/text/utils/web-content-analyzer-config.ts +++ b/src/ai/text/utils/web-content-analyzer-config.ts @@ -115,7 +115,8 @@ export const webContentAnalyzerConfig = { openrouter: { // model: 'openrouter/horizon-beta', // model: 'x-ai/grok-3-beta', - model: 'openai/gpt-4o-mini', + // model: 'openai/gpt-4o-mini', + model: 'deepseek/deepseek-r1:free', temperature: 0.1, maxTokens: 2000, }, diff --git a/src/ai/text/utils/web-content-analyzer.ts b/src/ai/text/utils/web-content-analyzer.ts index 9e9e07b..a49d8c5 100644 --- a/src/ai/text/utils/web-content-analyzer.ts +++ b/src/ai/text/utils/web-content-analyzer.ts @@ -67,7 +67,7 @@ export interface AnalysisState { } // Component Props Interfaces -export type ModelProvider = 'openai' | 'gemini' | 'deepseek'; +export type ModelProvider = 'openai' | 'gemini' | 'deepseek' | 'openrouter'; export interface WebContentAnalyzerProps { className?: string; diff --git a/src/app/[locale]/(marketing)/ai/chat/page.tsx b/src/app/[locale]/(marketing)/ai/chat/page.tsx index ba4041d..bbafd80 100644 --- a/src/app/[locale]/(marketing)/ai/chat/page.tsx +++ b/src/app/[locale]/(marketing)/ai/chat/page.tsx @@ -37,7 +37,9 @@ export default async function AIChatPage() {
{/* Chat Bot */} - +
+ +
); diff --git a/src/app/[locale]/(marketing)/ai/image/page.tsx b/src/app/[locale]/(marketing)/ai/image/page.tsx index 09a440f..fa34aa0 100644 --- a/src/app/[locale]/(marketing)/ai/image/page.tsx +++ b/src/app/[locale]/(marketing)/ai/image/page.tsx @@ -2,6 +2,7 @@ import { ImagePlayground } from '@/ai/image/components/ImagePlayground'; import { getRandomSuggestions } from '@/ai/image/lib/suggestions'; import { constructMetadata } from '@/lib/metadata'; import { getUrlWithLocale } from '@/lib/urls/urls'; +import { ImageIcon } from 'lucide-react'; import type { Metadata } from 'next'; import type { Locale } from 'next-intl'; import { getTranslations } from 'next-intl/server'; @@ -26,8 +27,21 @@ export default async function AIImagePage() { const t = await getTranslations('AIImagePage'); return ( -
- +
+
+ {/* Header Section */} +
+
+ + {t('title')} +
+
+ + {/* Image Playground Component */} +
+ +
+
); }