14
This commit is contained in:
@@ -8,7 +8,7 @@ def generate_complaint_text(platform, violator_article, my_article=None):
|
|||||||
return "Ошибка: API ключ для Gemini не настроен в .env"
|
return "Ошибка: API ключ для Gemini не настроен в .env"
|
||||||
|
|
||||||
genai.configure(api_key=api_key)
|
genai.configure(api_key=api_key)
|
||||||
model = genai.GenerativeModel('gemini-1.5-flash')
|
model = genai.GenerativeModel('gemini-2.0-flash')
|
||||||
|
|
||||||
prompt = f"""
|
prompt = f"""
|
||||||
Ты - профессиональный юрист в сфере интеллектуальной собственности и e-commerce.
|
Ты - профессиональный юрист в сфере интеллектуальной собственности и e-commerce.
|
||||||
@@ -39,7 +39,7 @@ def generate_review_reply(review_text, rating):
|
|||||||
return "Ошибка: API ключ не настроен."
|
return "Ошибка: API ключ не настроен."
|
||||||
|
|
||||||
genai.configure(api_key=api_key)
|
genai.configure(api_key=api_key)
|
||||||
model = genai.GenerativeModel('gemini-1.5-flash')
|
model = genai.GenerativeModel('gemini-2.0-flash')
|
||||||
|
|
||||||
prompt = f"""
|
prompt = f"""
|
||||||
Ты - менеджер по работе с клиентами в магазине на маркетплейсе.
|
Ты - менеджер по работе с клиентами в магазине на маркетплейсе.
|
||||||
@@ -71,7 +71,7 @@ def generate_product_card(title):
|
|||||||
return {"error": "API ключ не настроен."}
|
return {"error": "API ключ не настроен."}
|
||||||
|
|
||||||
genai.configure(api_key=api_key)
|
genai.configure(api_key=api_key)
|
||||||
model = genai.GenerativeModel('gemini-1.5-flash')
|
model = genai.GenerativeModel('gemini-2.0-flash')
|
||||||
|
|
||||||
prompt = f"""
|
prompt = f"""
|
||||||
Ты - эксперт по листингу на маркетплейсах Ozon и Wildberries.
|
Ты - эксперт по листингу на маркетплейсах Ozon и Wildberries.
|
||||||
@@ -103,7 +103,7 @@ def analyze_competitor(my_desc, comp_desc):
|
|||||||
return {"error": "API ключ не настроен."}
|
return {"error": "API ключ не настроен."}
|
||||||
|
|
||||||
genai.configure(api_key=api_key)
|
genai.configure(api_key=api_key)
|
||||||
model = genai.GenerativeModel('gemini-1.5-flash')
|
model = genai.GenerativeModel('gemini-2.0-flash')
|
||||||
|
|
||||||
prompt = f"""
|
prompt = f"""
|
||||||
Ты - старший аналитик по маркетплейсам. Твоя цель: найти способы "победить" карточку конкурента.
|
Ты - старший аналитик по маркетплейсам. Твоя цель: найти способы "победить" карточку конкурента.
|
||||||
|
|||||||
@@ -259,7 +259,11 @@ function initBilling() {
|
|||||||
|
|
||||||
function initTabs() {
|
function initTabs() {
|
||||||
const btns = document.querySelectorAll('.tab-btn');
|
const btns = document.querySelectorAll('.tab-btn');
|
||||||
const sections = ['dashboard-section', 'cases-section', 'integrations-section', 'billing-section'];
|
const sections = [
|
||||||
|
'dashboard-section', 'cases-section', 'integrations-section', 'billing-section',
|
||||||
|
'logs-section', 'reviews-section', 'seo-section', 'content-section',
|
||||||
|
'finance-section', 'generator-section', 'analytics-section', 'repricer-section'
|
||||||
|
];
|
||||||
|
|
||||||
btns.forEach(btn => {
|
btns.forEach(btn => {
|
||||||
btn.addEventListener('click', () => {
|
btn.addEventListener('click', () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user