Merge pull request 'fix: 修复 deploy 工作流缺少 Node.js 导致 checkout 失败的问题' #72

Merged
huanghaosheng merged 61 commits from develop into main 2026-06-14 14:37:27 +08:00
Showing only changes of commit 312e762aff - Show all commits

View File

@@ -61,7 +61,7 @@ type chatMessage struct {
type contentPart struct { type contentPart struct {
Type string `json:"type"` Type string `json:"type"`
Text string `json:"text,omitempty"` Text string `json:"text"`
ImageURL *imageURL `json:"image_url,omitempty"` ImageURL *imageURL `json:"image_url,omitempty"`
} }
@@ -100,6 +100,9 @@ func (o *OpenAIService) ChatStream(ctx context.Context, req Request) (<-chan Chu
if err != nil { if err != nil {
return nil, fmt.Errorf("llm: marshal request: %w", err) return nil, fmt.Errorf("llm: marshal request: %w", err)
} }
if err != nil {
return nil, fmt.Errorf("llm: marshal request: %w", err)
}
// 创建带超时的 context // 创建带超时的 context
ctx, cancel := context.WithTimeout(ctx, o.timeout) ctx, cancel := context.WithTimeout(ctx, o.timeout)