optimize ui
add new ki endpoint params
This commit is contained in:
31
migrations/Version20260217183037.php
Normal file
31
migrations/Version20260217183037.php
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
namespace DoctrineMigrations;
|
||||||
|
|
||||||
|
use Doctrine\DBAL\Schema\Schema;
|
||||||
|
use Doctrine\Migrations\AbstractMigration;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Auto-generated Migration: Please modify to your needs!
|
||||||
|
*/
|
||||||
|
final class Version20260217183037 extends AbstractMigration
|
||||||
|
{
|
||||||
|
public function getDescription(): string
|
||||||
|
{
|
||||||
|
return '';
|
||||||
|
}
|
||||||
|
|
||||||
|
public function up(Schema $schema): void
|
||||||
|
{
|
||||||
|
// this up() migration is auto-generated, please modify it to your needs
|
||||||
|
$this->addSql('CREATE TABLE model_generation_config (id BINARY(16) NOT NULL, model_name VARCHAR(120) NOT NULL, stream TINYINT NOT NULL, temperature DOUBLE PRECISION NOT NULL, top_k INT NOT NULL, top_p DOUBLE PRECISION NOT NULL, repeat_penalty DOUBLE PRECISION NOT NULL, num_ctx INT NOT NULL, active TINYINT NOT NULL, version INT NOT NULL, created_at DATETIME NOT NULL, INDEX idx_model_active (model_name, active), PRIMARY KEY (id)) DEFAULT CHARACTER SET utf8mb4');
|
||||||
|
}
|
||||||
|
|
||||||
|
public function down(Schema $schema): void
|
||||||
|
{
|
||||||
|
// this down() migration is auto-generated, please modify it to your needs
|
||||||
|
$this->addSql('DROP TABLE model_generation_config');
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user