fix(chat): improve OpenCode Zen integration and error handling
- Fetch models dynamically from OpenCode Zen API (36 models vs 5 hardcoded) - Add function calling support check before using tools - Add retry logic (num_retries=2) for transient failures - Improve logging for debugging API calls and errors - Update system prompt for multi-stop itinerary context - Clean up unused imports in frontend components - Remove deleted views.py (moved to views/__init__.py)
This commit is contained in:
@@ -746,20 +746,20 @@
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<div class="flex flex-wrap items-center gap-2">
|
||||
<div class="badge badge-ghost badge-sm">
|
||||
Visits: {hoveredLocation.visits?.length ?? 0}
|
||||
</div>
|
||||
<div class="badge badge-ghost badge-sm">
|
||||
Media: {hoveredLocation.images?.length ?? 0}
|
||||
</div>
|
||||
<div class="badge badge-ghost badge-sm">
|
||||
Files: {hoveredLocation.attachments?.length ?? 0}
|
||||
</div>
|
||||
<div class="badge badge-ghost badge-sm">
|
||||
Trails: {hoveredLocation.trails?.length ?? 0}
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex flex-wrap items-center gap-2">
|
||||
<div class="badge badge-ghost badge-sm">
|
||||
Visits: {hoveredLocation.visits?.length ?? 0}
|
||||
</div>
|
||||
<div class="badge badge-ghost badge-sm">
|
||||
Media: {hoveredLocation.images?.length ?? 0}
|
||||
</div>
|
||||
<div class="badge badge-ghost badge-sm">
|
||||
Files: {hoveredLocation.attachments?.length ?? 0}
|
||||
</div>
|
||||
<div class="badge badge-ghost badge-sm">
|
||||
Trails: {hoveredLocation.trails?.length ?? 0}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{#if hoveredLocation.visits && hoveredLocation.visits.length > 0}
|
||||
<div class="text-xs text-base-content/70">
|
||||
|
||||
Reference in New Issue
Block a user