style: fix Pint violations in ProcessContentTask and AgentDetection
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
ae4188c063
commit
5f016c6275
2 changed files with 8 additions and 8 deletions
|
|
@ -111,7 +111,7 @@ class ProcessContentTask implements ShouldQueue
|
|||
private function interpolateVariables(string $template, array $data): string
|
||||
{
|
||||
foreach ($data as $key => $value) {
|
||||
$placeholder = '{{{' . $key . '}}}';
|
||||
$placeholder = '{{{'.$key.'}}}';
|
||||
|
||||
if (is_string($value)) {
|
||||
$template = str_replace($placeholder, $value, $template);
|
||||
|
|
|
|||
|
|
@ -92,9 +92,9 @@ class AgentDetection
|
|||
'/\bclaude\b.*\bassistant\b/i', // e.g. "Claude-Assistant/2.1"
|
||||
],
|
||||
'model_patterns' => [
|
||||
'claude-opus' => '/claude[\s\-_]?opus/i', // e.g. "claude-opus-4-5"
|
||||
'claude-opus' => '/claude[\s\-_]?opus/i', // e.g. "claude-opus-4-5"
|
||||
'claude-sonnet' => '/claude[\s\-_]?sonnet/i', // e.g. "claude-sonnet-4-6"
|
||||
'claude-haiku' => '/claude[\s\-_]?haiku/i', // e.g. "claude-haiku-4-5"
|
||||
'claude-haiku' => '/claude[\s\-_]?haiku/i', // e.g. "claude-haiku-4-5"
|
||||
],
|
||||
],
|
||||
'openai' => [
|
||||
|
|
@ -107,9 +107,9 @@ class AgentDetection
|
|||
'/\bo1[\s\-_]?mini\b/i', // e.g. "o1-mini/1.0"
|
||||
],
|
||||
'model_patterns' => [
|
||||
'gpt-4' => '/\bGPT[\s\-_]?4/i', // e.g. "GPT-4o", "GPT-4-turbo"
|
||||
'gpt-4' => '/\bGPT[\s\-_]?4/i', // e.g. "GPT-4o", "GPT-4-turbo"
|
||||
'gpt-3.5' => '/\bGPT[\s\-_]?3\.?5/i', // e.g. "GPT-3.5-turbo"
|
||||
'o1' => '/\bo1[\s\-_]?(preview|mini)?\b/i', // e.g. "o1", "o1-preview", "o1-mini"
|
||||
'o1' => '/\bo1[\s\-_]?(preview|mini)?\b/i', // e.g. "o1", "o1-preview", "o1-mini"
|
||||
],
|
||||
],
|
||||
'google' => [
|
||||
|
|
@ -120,7 +120,7 @@ class AgentDetection
|
|||
'/\bPaLM\b/i', // e.g. "PaLM API/1.0" (legacy)
|
||||
],
|
||||
'model_patterns' => [
|
||||
'gemini-pro' => '/gemini[\s\-_]?(1\.5[\s\-_]?)?pro/i', // e.g. "gemini-1.5-pro"
|
||||
'gemini-pro' => '/gemini[\s\-_]?(1\.5[\s\-_]?)?pro/i', // e.g. "gemini-1.5-pro"
|
||||
'gemini-ultra' => '/gemini[\s\-_]?(1\.5[\s\-_]?)?ultra/i', // e.g. "gemini-ultra"
|
||||
'gemini-flash' => '/gemini[\s\-_]?(1\.5[\s\-_]?)?flash/i', // e.g. "gemini-1.5-flash"
|
||||
],
|
||||
|
|
@ -142,9 +142,9 @@ class AgentDetection
|
|||
'/\bMixtral\b/i', // e.g. "Mixtral-8x7B/1.0"
|
||||
],
|
||||
'model_patterns' => [
|
||||
'mistral-large' => '/mistral[\s\-_]?large/i', // e.g. "mistral-large-latest"
|
||||
'mistral-large' => '/mistral[\s\-_]?large/i', // e.g. "mistral-large-latest"
|
||||
'mistral-medium' => '/mistral[\s\-_]?medium/i', // e.g. "mistral-medium"
|
||||
'mixtral' => '/mixtral/i', // e.g. "Mixtral-8x7B-Instruct"
|
||||
'mixtral' => '/mixtral/i', // e.g. "Mixtral-8x7B-Instruct"
|
||||
],
|
||||
],
|
||||
];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue