Passed
Pull Request — 1.11.x (#6041)
by Yannick
08:51
created

Url::completionsUrl()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
dl 0
loc 3
rs 10
c 1
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
/* For license terms, see /license.txt */
3
4
class Url
5
{
6
    private const BASE_URL = 'https://api.deepseek.com/chat';
7
8
    /**
9
     * Get the endpoint URL for chat completions.
10
     *
11
     * @return string URL for the chat completions endpoint
12
     */
13
    public static function completionsUrl(): string
14
    {
15
        return self::BASE_URL . '/completions';
16
    }
17
}
18