feat: add dynamic system prompt for car image analysis

This commit is contained in:
RustamRu
2025-03-09 11:04:01 +03:00
parent 70e8a6877c
commit 7b685ad99e
2 changed files with 10 additions and 21 deletions

View File

@@ -4,6 +4,13 @@ const getGigaToken = async () => {
return data.features['dry-wash-bh'].GIGA_TOKEN.value
}
const getSystemPrompt = async () => {
const response = await fetch('https://admin.bro-js.ru/api/config/v1/dev')
const data = await response.json()
return data.features['dry-wash-bh'].SYSTEM_PROMPT.value
}
module.exports = {
getGigaToken
getGigaToken,
getSystemPrompt
}