Skip to content

Commit 55754f8

Browse files
committed
Add Perplexity support and restore trailing newlines after rebase
- Add perplexity platform support to createModelForPlatform method - Restore trailing newlines to all files after rebase formatting
1 parent aa17279 commit 55754f8

File tree

5 files changed

+6
-1
lines changed

5 files changed

+6
-1
lines changed

src/ai-bundle/config/services.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,3 +172,4 @@
172172
;
173173
};
174174

175+

src/ai-bundle/src/Command/ChatCommand.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,3 +194,4 @@ private function getAvailableAgentNames(): array
194194
}
195195
}
196196

197+

src/ai-bundle/src/Command/PlatformInvokeCommand.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,9 @@ private function createModelForPlatform(string $platformName, string $modelName)
156156
'google' => new \Symfony\AI\Platform\Bridge\Gemini\Gemini($modelName),
157157
'ollama' => new \Symfony\AI\Platform\Bridge\Ollama\Ollama($modelName),
158158
'mistral' => new \Symfony\AI\Platform\Bridge\Mistral\Mistral($modelName),
159+
'perplexity' => new \Symfony\AI\Platform\Bridge\Perplexity\Perplexity($modelName),
159160
default => new Model($modelName), // Fallback to generic model
160161
};
161162
}
162163

163-
}
164+
}

src/ai-bundle/tests/Command/ChatCommandTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,3 +256,4 @@ private function createServiceLocator(array $agents): ServiceLocator
256256
}
257257
}
258258

259+

src/ai-bundle/tests/Command/PlatformInvokeCommandTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,3 +184,4 @@ public function testExecuteWithWhitespaceOnlyModel()
184184
}
185185
}
186186

187+

0 commit comments

Comments
 (0)