mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-14 20:21:09 +02:00
- Restructure chat as apps/mobile, apps/web, apps/landing, backend - Add NestJS backend for secure Azure OpenAI API calls - Remove exposed API key from mobile app (security fix) - Add shared chat-types package - Create SvelteKit web app scaffold - Create Astro landing page scaffold - Update pnpm workspace configuration - Add project-level CLAUDE.md documentation 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
56 lines
1.5 KiB
TypeScript
56 lines
1.5 KiB
TypeScript
/**
|
|
* Model Configuration
|
|
* Note: API keys are now stored securely in the backend
|
|
* This file only contains model definitions for the mobile app UI
|
|
*/
|
|
|
|
// Available models for the chat application
|
|
// These match the models configured in the backend
|
|
export const availableModels = [
|
|
{
|
|
id: '550e8400-e29b-41d4-a716-446655440000',
|
|
name: 'GPT-O3-Mini',
|
|
description: 'Azure OpenAI O3-Mini: Effizientes Modell für schnelle Antworten.',
|
|
parameters: {
|
|
temperature: 0.7,
|
|
max_tokens: 800,
|
|
provider: 'azure',
|
|
deployment: 'gpt-o3-mini-se',
|
|
}
|
|
},
|
|
{
|
|
id: '550e8400-e29b-41d4-a716-446655440004',
|
|
name: 'GPT-4o-Mini',
|
|
description: 'Azure OpenAI GPT-4o-Mini: Kompaktes, leistungsstarkes KI-Modell.',
|
|
parameters: {
|
|
temperature: 0.7,
|
|
max_tokens: 1000,
|
|
provider: 'azure',
|
|
deployment: 'gpt-4o-mini-se',
|
|
}
|
|
},
|
|
{
|
|
id: '550e8400-e29b-41d4-a716-446655440005',
|
|
name: 'GPT-4o',
|
|
description: 'Azure OpenAI GPT-4o: Das fortschrittlichste multimodale KI-Modell.',
|
|
parameters: {
|
|
temperature: 0.7,
|
|
max_tokens: 1200,
|
|
provider: 'azure',
|
|
deployment: 'gpt-4o-se',
|
|
}
|
|
}
|
|
];
|
|
|
|
// Helper function to get model by ID
|
|
export function getModelById(modelId: string) {
|
|
return availableModels.find(m => m.id === modelId);
|
|
}
|
|
|
|
// Helper function to get model by deployment name
|
|
export function getModelByDeployment(deployment: string) {
|
|
return availableModels.find(m => m.parameters.deployment === deployment);
|
|
}
|
|
|
|
// Default model
|
|
export const defaultModel = availableModels[0];
|