Plugin: Rename Url class to DeepSeekUrl to resolve conflict

pull/6052/head
Christian Beeznest 8 months ago
parent 30da10976a
commit aa72a3beb8
  1. 4
      plugin/ai_helper/src/deepseek/DeepSeek.php
  2. 2
      plugin/ai_helper/src/deepseek/DeepSeekUrl.php

@ -1,7 +1,7 @@
<?php <?php
/* For license terms, see /license.txt */ /* For license terms, see /license.txt */
require_once 'Url.php'; require_once 'DeepSeekUrl.php';
class DeepSeek class DeepSeek
{ {
@ -26,7 +26,7 @@ class DeepSeek
*/ */
public function generateQuestions(array $payload): string public function generateQuestions(array $payload): string
{ {
$url = Url::completionsUrl(); $url = DeepSeekUrl::completionsUrl();
$response = $this->sendRequest($url, 'POST', $payload); $response = $this->sendRequest($url, 'POST', $payload);
if (empty($response)) { if (empty($response)) {

@ -1,7 +1,7 @@
<?php <?php
/* For license terms, see /license.txt */ /* For license terms, see /license.txt */
class Url class DeepSeekUrl
{ {
private const BASE_URL = 'https://api.deepseek.com/chat'; private const BASE_URL = 'https://api.deepseek.com/chat';
Loading…
Cancel
Save