Skip to content

Commit c93b41a

Browse files
committed
fix: integration test cases fixes
1 parent f69ee99 commit c93b41a

File tree

36 files changed

+265
-260
lines changed

36 files changed

+265
-260
lines changed

core/changelog.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
feat: send back raw request in extra fields
22
feat: added support for reasoning in chat completions
33
feat: enhanced reasoning support in responses api
4-
enhancement: improved internal inter provider conversions for integrations
4+
enhancement: improved internal inter provider conversions for integrations
5+
feat: switched to gemini native api
6+
feat: fallback to supported request type for custom models used in integration

core/providers/cohere/chat.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -688,5 +688,11 @@ func (cm *CohereMessage) ToBifrostChatMessage() *schemas.ChatMessage {
688688
Content: messageContent,
689689
ChatAssistantMessage: assistantMessage,
690690
}
691+
692+
if cm.Role == "tool" {
693+
bifrostMessage.ChatToolMessage = &schemas.ChatToolMessage{
694+
ToolCallID: cm.ToolCallID,
695+
}
696+
}
691697
return bifrostMessage
692698
}

core/providers/gemini/chat.go

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -256,15 +256,6 @@ func (response *GenerateContentResponse) ToBifrostChatCompletionStream() (*schem
256256
},
257257
}
258258

259-
// Preserve thought signature if present (required for Gemini 3 Pro)
260-
if len(part.ThoughtSignature) > 0 {
261-
toolCall.ExtraContent = map[string]interface{}{
262-
"google": map[string]interface{}{
263-
"thought_signature": string(part.ThoughtSignature),
264-
},
265-
}
266-
}
267-
268259
toolCalls = append(toolCalls, toolCall)
269260

270261
case part.FunctionResponse != nil:

core/providers/gemini/gemini.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ func (provider *GeminiProvider) ChatCompletion(ctx context.Context, key schemas.
245245

246246
// Set raw request if enabled
247247
if providerUtils.ShouldSendBackRawRequest(ctx, provider.sendBackRawRequest) {
248-
bifrostResponse.ExtraFields.RawRequest = jsonData
248+
providerUtils.ParseAndSetRawRequest(&bifrostResponse.ExtraFields, jsonData)
249249
}
250250

251251
// Set raw response if enabled

0 commit comments

Comments
 (0)