Merge pull request #6052 from christianbeeznest/fixes-aihelper

Plugin: Rename Url class to DeepSeekUrl to resolve conflict
pull/6061/head
christianbeeznest 8 months ago committed by GitHub
commit a8f5346b87
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      plugin/ai_helper/src/deepseek/DeepSeek.php
  2. 2
      plugin/ai_helper/src/deepseek/DeepSeekUrl.php

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

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