Skip to content

Commit

Permalink
Plugin: Rename Url class to DeepSeekUrl to resolve conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
christianbeeznest committed Jan 26, 2025
1 parent 30da109 commit aa72a3b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions plugin/ai_helper/src/deepseek/DeepSeek.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/* For license terms, see /license.txt */

require_once 'Url.php';
require_once 'DeepSeekUrl.php';

class DeepSeek
{
Expand All @@ -26,7 +26,7 @@ public function __construct(string $apiKey)
*/
public function generateQuestions(array $payload): string
{
$url = Url::completionsUrl();
$url = DeepSeekUrl::completionsUrl();
$response = $this->sendRequest($url, 'POST', $payload);

if (empty($response)) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/* For license terms, see /license.txt */

class Url
class DeepSeekUrl
{
private const BASE_URL = 'https://api.deepseek.com/chat';

Expand Down

0 comments on commit aa72a3b

Please sign in to comment.