Добавление интеграции OpenRouter AI

This commit is contained in:
2026-01-15 12:19:29 +03:00
parent 401993526b
commit a23d714128
8 changed files with 571 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
# Generated migration for OpenRouter temperature choices
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('integrations', '0007_openrouter'),
]
operations = [
migrations.AlterField(
model_name='openrouterintegration',
name='temperature',
field=models.FloatField(
default=0.7,
choices=[
(0.1, '0.1 - Очень консервативно'),
(0.3, '0.3 - Консервативно'),
(0.5, '0.5 - Умеренно'),
(0.7, '0.7 - Баланс (по умолчанию)'),
(1.0, '1.0 - Креативно'),
(1.5, '1.5 - Очень креативно'),
(2.0, '2.0 - Максимальная креативность'),
],
help_text='Параметр температуры для генерации (0.0-2.0)',
validators=[],
verbose_name='Температура'
),
),
]