Skip to content

Commit a8f5346

Browse files
Merge pull request #6052 from christianbeeznest/fixes-aihelper
Plugin: Rename Url class to DeepSeekUrl to resolve conflict
2 parents 30da109 + aa72a3b commit a8f5346

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

plugin/ai_helper/src/deepseek/DeepSeek.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/* For license terms, see /license.txt */
33

4-
require_once 'Url.php';
4+
require_once 'DeepSeekUrl.php';
55

66
class DeepSeek
77
{
@@ -26,7 +26,7 @@ public function __construct(string $apiKey)
2626
*/
2727
public function generateQuestions(array $payload): string
2828
{
29-
$url = Url::completionsUrl();
29+
$url = DeepSeekUrl::completionsUrl();
3030
$response = $this->sendRequest($url, 'POST', $payload);
3131

3232
if (empty($response)) {

plugin/ai_helper/src/deepseek/Url.php renamed to plugin/ai_helper/src/deepseek/DeepSeekUrl.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/* For license terms, see /license.txt */
33

4-
class Url
4+
class DeepSeekUrl
55
{
66
private const BASE_URL = 'https://api.deepseek.com/chat';
77

0 commit comments

Comments
 (0)