- Implement GPT-5 model support with correct parameters (max_completion_tokens, temperature=1) - Add configurable reasoning effort levels (low/medium/high) with database migration - Create admin interface controls for reasoning effort management in agent creation/editing - Fix conversation loading regression to prevent double-click requirement - Update home page cards for uniform 280px height with proper text truncation - Add comprehensive GPT-5 parameter handling in OpenAI service integration 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
23 lines
No EOL
843 B
JavaScript
23 lines
No EOL
843 B
JavaScript
const { DataTypes } = require('sequelize');
|
|
|
|
module.exports = {
|
|
async up(queryInterface, Sequelize) {
|
|
// Add reasoningEffort column to assistants table
|
|
await queryInterface.addColumn('assistants', 'reasoningEffort', {
|
|
type: DataTypes.ENUM('low', 'medium', 'high'),
|
|
defaultValue: 'medium',
|
|
allowNull: true,
|
|
comment: 'GPT-5 reasoning effort level'
|
|
});
|
|
|
|
console.log('✅ Added reasoningEffort column to assistants table');
|
|
},
|
|
|
|
async down(queryInterface, Sequelize) {
|
|
// Remove reasoningEffort column and enum type
|
|
await queryInterface.removeColumn('assistants', 'reasoningEffort');
|
|
await queryInterface.sequelize.query('DROP TYPE IF EXISTS "enum_assistants_reasoningEffort";');
|
|
|
|
console.log('✅ Removed reasoningEffort column from assistants table');
|
|
}
|
|
}; |