Fix GeminiService client attribute error in knowledge base distillation
Replace self.gemini.client with self.gemini.primary_client on line 295 of knowledge_base_service.py. GeminiService only exposes primary_client and fallback_client — there is no client attribute. This caused all processing jobs to fail at the distillation step, which is also why Version History was always blank (no SpecVersion records were ever created). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
538a32505e
commit
060fbeba76
1 changed files with 1 additions and 1 deletions
|
|
@ -292,7 +292,7 @@ class KnowledgeBaseService:
|
|||
prompt = prompt_template.format(combined_markdown=combined_markdown)
|
||||
|
||||
logger.info(f"[KB_SERVICE] Sending {len(combined_markdown)} chars to Gemini for distillation")
|
||||
response = await self.gemini.client.aio.models.generate_content(
|
||||
response = await self.gemini.primary_client.aio.models.generate_content(
|
||||
model=self.gemini.model,
|
||||
contents=prompt,
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue