<?php

declare(strict_types=1);

namespace LolaCore\LLM\Providers\DeepSeek;

use WordPress\AiClient\Providers\Http\DTO\Request;
use WordPress\AiClient\Providers\Http\Enums\HttpMethodEnum;
use WordPress\AiClient\Providers\OpenAiCompatibleImplementation\AbstractOpenAiCompatibleTextGenerationModel;

/**
 * Class for a DeepSeek text generation model.
 */
class DeepSeekTextGenerationModel extends AbstractOpenAiCompatibleTextGenerationModel
{
    /**
     * {@inheritDoc}
     */
    protected function createRequest(HttpMethodEnum $method, string $path, array $headers = [], $data = null): Request
    {
        return new Request(
            $method,
            DeepSeekProvider::url($path),
            $headers,
            $data,
            $this->getRequestOptions()
        );
    }
}
