|
1 |
| -import { AIChatModelCard } from '@/types/aiModel'; |
| 1 | +import { ModelParamsSchema } from '@/libs/standard-parameters'; |
| 2 | +import { AIChatModelCard, AIImageModelCard } from '@/types/aiModel'; |
2 | 3 |
|
3 | 4 | const googleChatModels: AIChatModelCard[] = [
|
4 | 5 | {
|
@@ -496,6 +497,38 @@ const googleChatModels: AIChatModelCard[] = [
|
496 | 497 | },
|
497 | 498 | ];
|
498 | 499 |
|
499 |
| -export const allModels = [...googleChatModels]; |
| 500 | +// Common parameters for Imagen models |
| 501 | +const imagenBaseParameters: ModelParamsSchema = { |
| 502 | + aspectRatio: { |
| 503 | + default: '1:1', |
| 504 | + enum: ['1:1', '16:9', '9:16', '3:4', '4:3'], |
| 505 | + }, |
| 506 | + prompt: { default: '' }, |
| 507 | +}; |
| 508 | + |
| 509 | +const googleImageModels: AIImageModelCard[] = [ |
| 510 | + { |
| 511 | + description: 'Imagen 4th generation text-to-image model series', |
| 512 | + displayName: 'Imagen4 Preview 06-06', |
| 513 | + enabled: true, |
| 514 | + id: 'imagen-4.0-generate-preview-06-06', |
| 515 | + organization: 'Deepmind', |
| 516 | + parameters: imagenBaseParameters, |
| 517 | + releasedAt: '2024-06-06', |
| 518 | + type: 'image', |
| 519 | + }, |
| 520 | + { |
| 521 | + description: 'Imagen 4th generation text-to-image model series Ultra version', |
| 522 | + displayName: 'Imagen4 Ultra Preview 06-06', |
| 523 | + enabled: true, |
| 524 | + id: 'imagen-4.0-ultra-generate-preview-06-06', |
| 525 | + organization: 'Deepmind', |
| 526 | + parameters: imagenBaseParameters, |
| 527 | + releasedAt: '2024-06-06', |
| 528 | + type: 'image', |
| 529 | + }, |
| 530 | +]; |
| 531 | + |
| 532 | +export const allModels = [...googleChatModels, ...googleImageModels]; |
500 | 533 |
|
501 | 534 | export default allModels;
|
0 commit comments