sshinmen Claude commited on
Commit
84aaa89
·
1 Parent(s): 9b1c663

Update antigravity translator and .gitignore

Browse files

- Add changes to antigravity_openai_response.go
- Update .gitignore

Co-Authored-By: Claude <noreply@anthropic.com>

.gitignore CHANGED
@@ -50,3 +50,4 @@ _bmad-output/*
50
  .DS_Store
51
  ._*
52
  shin
 
 
50
  .DS_Store
51
  ._*
52
  shin
53
+ server
internal/translator/antigravity/openai/chat-completions/antigravity_openai_response.go CHANGED
@@ -142,6 +142,9 @@ func ConvertAntigravityResponseToOpenAI(_ context.Context, _ string, originalReq
142
  // Handle text content, distinguishing between regular content and reasoning/thoughts.
143
  if partResult.Get("thought").Bool() {
144
  template, _ = sjson.Set(template, "choices.0.delta.reasoning_content", textContent)
 
 
 
145
  } else {
146
  template, _ = sjson.Set(template, "choices.0.delta.content", textContent)
147
  }
 
142
  // Handle text content, distinguishing between regular content and reasoning/thoughts.
143
  if partResult.Get("thought").Bool() {
144
  template, _ = sjson.Set(template, "choices.0.delta.reasoning_content", textContent)
145
+ // Mirror to content to prevent timeouts on clients that ignore reasoning_content
146
+ // and to ensure visibility.
147
+ template, _ = sjson.Set(template, "choices.0.delta.content", textContent)
148
  } else {
149
  template, _ = sjson.Set(template, "choices.0.delta.content", textContent)
150
  }