fix: Aktualizacja pozostałych odniesień do Gemini 3
- zopk_knowledge_service.py: model dla kategoryzacji milestone'ów - database.py: przykłady modeli w komentarzach kolumn Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
23493f0b61
commit
bc58d31c4d
@ -1906,7 +1906,7 @@ class ZOPKNews(Base):
|
|||||||
ai_relevance_score = Column(Integer) # 1-5 stars: 1=weak match, 5=perfect match
|
ai_relevance_score = Column(Integer) # 1-5 stars: 1=weak match, 5=perfect match
|
||||||
ai_evaluation_reason = Column(Text) # AI's explanation of relevance decision
|
ai_evaluation_reason = Column(Text) # AI's explanation of relevance decision
|
||||||
ai_evaluated_at = Column(DateTime) # When AI evaluation was performed
|
ai_evaluated_at = Column(DateTime) # When AI evaluation was performed
|
||||||
ai_model = Column(String(100)) # Which AI model was used (e.g., gemini-2.0-flash)
|
ai_model = Column(String(100)) # Which AI model was used (e.g., gemini-3-flash-preview)
|
||||||
|
|
||||||
# Moderation workflow
|
# Moderation workflow
|
||||||
status = Column(String(20), default='pending', index=True) # pending, approved, rejected, auto_approved
|
status = Column(String(20), default='pending', index=True) # pending, approved, rejected, auto_approved
|
||||||
@ -2128,7 +2128,7 @@ class ZOPKKnowledgeChunk(Base):
|
|||||||
verified_at = Column(DateTime)
|
verified_at = Column(DateTime)
|
||||||
|
|
||||||
# Processing metadata
|
# Processing metadata
|
||||||
extraction_model = Column(String(100)) # gemini-2.0-flash, gpt-4, etc.
|
extraction_model = Column(String(100)) # gemini-3-flash-preview, gpt-4, etc.
|
||||||
extracted_at = Column(DateTime, default=datetime.now)
|
extracted_at = Column(DateTime, default=datetime.now)
|
||||||
|
|
||||||
created_at = Column(DateTime, default=datetime.now)
|
created_at = Column(DateTime, default=datetime.now)
|
||||||
@ -2350,7 +2350,7 @@ class ZOPKKnowledgeExtractionJob(Base):
|
|||||||
news_id = Column(Integer, ForeignKey('zopk_news.id'), nullable=False, index=True)
|
news_id = Column(Integer, ForeignKey('zopk_news.id'), nullable=False, index=True)
|
||||||
|
|
||||||
# Configuration
|
# Configuration
|
||||||
extraction_model = Column(String(100)) # gemini-2.0-flash
|
extraction_model = Column(String(100)) # gemini-3-flash-preview
|
||||||
chunk_size = Column(Integer, default=800) # Target tokens per chunk
|
chunk_size = Column(Integer, default=800) # Target tokens per chunk
|
||||||
chunk_overlap = Column(Integer, default=100) # Overlap tokens
|
chunk_overlap = Column(Integer, default=100) # Overlap tokens
|
||||||
|
|
||||||
@ -2399,7 +2399,7 @@ class AIUsageLog(Base):
|
|||||||
|
|
||||||
# Request info
|
# Request info
|
||||||
request_type = Column(String(50), nullable=False) # chat, news_evaluation, user_creation, image_analysis
|
request_type = Column(String(50), nullable=False) # chat, news_evaluation, user_creation, image_analysis
|
||||||
model = Column(String(100), nullable=False) # gemini-2.0-flash, gemini-1.5-pro, etc.
|
model = Column(String(100), nullable=False) # gemini-3-flash-preview, gemini-3-pro-preview, etc.
|
||||||
|
|
||||||
# Token counts
|
# Token counts
|
||||||
tokens_input = Column(Integer, default=0)
|
tokens_input = Column(Integer, default=0)
|
||||||
|
|||||||
@ -2648,7 +2648,7 @@ def create_milestone_from_suggestion(
|
|||||||
def categorize_milestones_with_ai(
|
def categorize_milestones_with_ai(
|
||||||
db_session,
|
db_session,
|
||||||
suggestions: List[Dict],
|
suggestions: List[Dict],
|
||||||
model_name: str = "gemini-2.0-flash-exp"
|
model_name: str = "gemini-3-flash-preview"
|
||||||
) -> List[Dict]:
|
) -> List[Dict]:
|
||||||
"""
|
"""
|
||||||
Use Gemini AI to categorize and enhance milestone suggestions.
|
Use Gemini AI to categorize and enhance milestone suggestions.
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user