INNER CODE UNIT · TypeScript

WORD_MATCH_REGEX

google-marketing-solutions/feedgen · src/app.ts:33

const WORD_MATCH_REGEX = /[A-Za-zÀ-ÖØ-öø-ÿ0-9]+/g;

const TITLE_MAX_LENGTH = 150;
const DESCRIPTION_MAX_LENGTH = 5000;

const [
  vertexAiGcpProjectId,
  vertexAiLanguageModelId,
  vertexAiLocation,
] = [
  getConfigSheetValue(CONFIG.userSettings.vertexAi.gcpProjectId),
  getConfigSheetValue(CONFIG.userSettings.vertexAi.languageModelId),
  String(getConfigSheetValue(CONFIG.userSettings.vertexAi.location) || '')
    .trim()
    .toLowerCase() || CONFIG.vertexAi.location,
];

const TITLE_GENERATION_RESPONSE_REGEX = new RegExp(

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…