Timeline Studio API Documentation - v0.26.0
    Preparing search index...

    Класс для работы с DeepSeek API

    Index

    Methods

    • Получить информацию о доступных моделях

      Returns { description: string; id: string; name: string }[]

    • Отправить запрос к DeepSeek API

      Parameters

      • model: string

        Модель DeepSeek

      • messages: AiMessage[]

        Сообщения для отправки

      • options: {
            frequency_penalty?: number;
            max_tokens?: number;
            presence_penalty?: number;
            temperature?: number;
            top_p?: number;
        } = {}

        Дополнительные опции

      Returns Promise<string>

    • Отправить потоковый запрос к DeepSeek API

      Parameters

      • model: string

        Модель DeepSeek

      • messages: AiMessage[]

        Сообщения для отправки

      • options: {
            frequency_penalty?: number;
            max_tokens?: number;
            presence_penalty?: number;
            temperature?: number;
            top_p?: number;
        } & StreamingOptions = {}

        Опции для потокового запроса

      Returns Promise<void>

    • Установить API ключ

      Parameters

      • apiKey: string

        Новый API ключ

      Returns void

      Используйте API Keys Management вместо прямой установки ключа