Webiant Logo Webiant Logo
  1. No results found.

    Try your search with a different keyword or use * as a wildcard.

ArtificialIntelligenceDefaults.cs

namespace Nop.Services.ArtificialIntelligence;

/// 
/// Represents artificial intelligence constants
/// 
public partial class ArtificialIntelligenceDefaults
{
    #region ChatGPT

    /// 
    /// Gets ChatGPT API model
    /// 
    public static string ChatGptApiModel => "gpt-4.1";

    /// 
    /// Gets base ChatGPT API URL
    /// 
    public static string ChatGptBaseApiUrl => "https://api.openai.com/v1/responses";

    #endregion

    #region Gemini

    /// 
    /// Gets base Gemini API URL
    /// 
    public static string GeminiBaseApiUrl => "https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-flash:generateContent";

    /// 
    /// Gets a header of the API key authorization
    /// 
    public static string GeminiApiKeyHeader => "x-goog-api-key";

    #endregion

    #region DeepSeek

    /// 
    /// Gets DeepSeek API model
    /// 
    public static string DeepSeekApiModel => "deepseek-chat";

    /// 
    /// Gets base DeepSeek API URL
    /// 
    public static string DeepSeekBaseApiUrl => "https://api.deepseek.com/chat/completions";

    #endregion

    /// 
    /// Gets a period (in seconds) before the request times out
    /// 
    public static int RequestTimeout => 30;

    /// 
    /// Gets a query format string for generate product description with AI
    /// 
    public static string ProductDescriptionQuery => "Create a description on the {4} language for the product with the \"{0}\" name. Use the following features and keywords: {1}. Use a {2}. {3}.";

    /// 
    /// Gets a query format string to generate meta title (SEO) with AI
    /// 
    public static string MetaTitleQuery => "Create most suitable meta title on the {2} language for the page with \"{0}\" title and \"{1}\" text. Optimize the result for SEO. Use plain text for response";

    /// 
    /// Gets a query format string to generate meta keywords (SEO) with AI
    /// 
    public static string MetaKeywordsQuery => "Create five or six of keywords on the {2} language for the page with \"{0}\" title and \"{1}\" text. Optimize the result for SEO, list them separated by commas. Use plain text for response";

    /// 
    /// Gets a query format string to generate meta description (SEO) with AI
    /// 
    public static string MetaDescriptionQuery => "Create a meta description on the {2} language for the page with \"{0}\" title and \"{1}\" text. Optimize the result for SEO. Use plain text for response";
}