Hugging Face Integration. Remove OpenAI and Anthropic and DeepSeek. Add Hugging Face.

This commit is contained in:
ajaysi
2025-10-29 20:15:04 +05:30
parent 4431cd9848
commit 3219e6bbe4
15 changed files with 883 additions and 482 deletions

View File

@@ -44,7 +44,7 @@ class KeywordAnalyzer:
}}
"""
from services.llm_providers.gemini_provider import gemini_structured_json_response
from services.llm_providers.main_text_generation import llm_text_gen
keyword_schema = {
"type": "object",
@@ -62,11 +62,9 @@ class KeywordAnalyzer:
"required": ["primary", "secondary", "long_tail", "search_intent", "difficulty", "content_gaps", "semantic_keywords", "trending_terms", "analysis_insights"]
}
keyword_analysis = gemini_structured_json_response(
keyword_analysis = llm_text_gen(
prompt=keyword_prompt,
schema=keyword_schema,
temperature=0.3,
max_tokens=4000
json_struct=keyword_schema
)
if isinstance(keyword_analysis, dict) and 'error' not in keyword_analysis: