fix: ChatBubble crash and DeepSeek API compatibility

- Fix ChatBubble to handle non-string content with String() wrapper
- Fix API route to use generateText for non-streaming requests
- Add @ai-sdk/openai-compatible for non-OpenAI providers (DeepSeek, etc.)
- Use Chat Completions API instead of Responses API for compatible providers
- Update ChatBubble tests and fix component exports to kebab-case
- Remove stale PascalCase ChatBubble.tsx file
This commit is contained in:
Max
2026-01-26 16:55:05 +07:00
parent 6b113e0392
commit e9e6fadb1d
544 changed files with 113077 additions and 427 deletions

View File

@@ -0,0 +1,74 @@
---
title: '{title}'
slug: '{slug}'
created: '{date}'
status: 'in-progress'
stepsCompleted: []
tech_stack: []
files_to_modify: []
code_patterns: []
test_patterns: []
---
# Tech-Spec: {title}
**Created:** {date}
## Overview
### Problem Statement
{problem_statement}
### Solution
{solution}
### Scope
**In Scope:**
{in_scope}
**Out of Scope:**
{out_of_scope}
## Context for Development
### Codebase Patterns
{codebase_patterns}
### Files to Reference
| File | Purpose |
| ---- | ------- |
{files_table}
### Technical Decisions
{technical_decisions}
## Implementation Plan
### Tasks
{tasks}
### Acceptance Criteria
{acceptance_criteria}
## Additional Context
### Dependencies
{dependencies}
### Testing Strategy
{testing_strategy}
### Notes
{notes}