26 lines
658 B
PHP
26 lines
658 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Database\Factories\SoftbenchResultFactory;
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
|
|
class SoftbenchResult extends SuiteResult
|
|
{
|
|
/** @use HasFactory<SoftbenchResultFactory> */
|
|
use HasFactory;
|
|
|
|
protected $fillable = [
|
|
'benchmark_run_id', 'ran_at', 'task', 'level',
|
|
'ok', 'decode', 'user_tps', 'ttft', 't_answer', 'wall',
|
|
'reasoning', 'visible', 'total', 'finish', 'detail',
|
|
'section', 'tool_calls', 'payload',
|
|
];
|
|
|
|
protected function casts(): array
|
|
{
|
|
return array_merge(parent::casts(), [
|
|
'tool_calls' => 'integer',
|
|
]);
|
|
}
|
|
}
|