Skip to content

Commit 8df3860

Browse files
committed
rebase
1 parent 5641863 commit 8df3860

File tree

1 file changed

+0
-62
lines changed

1 file changed

+0
-62
lines changed

internal/apischema/openai/vendor_fields_test.go

Lines changed: 0 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import (
1616
"github.com/openai/openai-go/v2/packages/param"
1717
"github.com/stretchr/testify/require"
1818
"google.golang.org/genai"
19-
"k8s.io/utils/ptr"
2019
)
2120

2221
func TestChatCompletionRequest_VendorFieldsExtraction(t *testing.T) {
@@ -125,12 +124,6 @@ func TestChatCompletionRequest_VendorFieldsExtraction(t *testing.T) {
125124
"content": "Hello with all GCP fields!"
126125
}
127126
],
128-
"generationConfig": {
129-
"thinkingConfig": {
130-
"includeThoughts": true,
131-
"thinkingBudget": 1000
132-
}
133-
},
134127
"safetySettings": [{
135128
"category": "HARM_CATEGORY_HARASSMENT",
136129
"threshold": "BLOCK_ONLY_HIGH"
@@ -148,12 +141,6 @@ func TestChatCompletionRequest_VendorFieldsExtraction(t *testing.T) {
148141
},
149142
},
150143
GCPVertexAIVendorFields: &GCPVertexAIVendorFields{
151-
GenerationConfig: &GCPVertexAIGenerationConfig{
152-
ThinkingConfig: &genai.ThinkingConfig{
153-
IncludeThoughts: true,
154-
ThinkingBudget: ptr.To(int32(1000)),
155-
},
156-
},
157144
SafetySettings: []*genai.SafetySetting{
158145
{
159146
Category: genai.HarmCategoryHarassment,
@@ -164,55 +151,6 @@ func TestChatCompletionRequest_VendorFieldsExtraction(t *testing.T) {
164151
},
165152
},
166153
},
167-
{
168-
name: "Request with multiple vendor fields",
169-
jsonData: []byte(`{
170-
"model": "claude-3",
171-
"messages": [
172-
{
173-
"role": "user",
174-
"content": "Multiple vendors test"
175-
}
176-
],
177-
"generationConfig": {
178-
"thinkingConfig": {
179-
"includeThoughts": true,
180-
"thinkingBudget": 1000
181-
}
182-
},
183-
"thinking": {
184-
"type": "enabled",
185-
"budget_tokens": 1000
186-
}
187-
}`),
188-
expected: &ChatCompletionRequest{
189-
Model: "claude-3",
190-
Messages: []ChatCompletionMessageParamUnion{
191-
{
192-
OfUser: &ChatCompletionUserMessageParam{
193-
Role: ChatMessageRoleUser,
194-
Content: StringOrUserRoleContentUnion{Value: "Multiple vendors test"},
195-
},
196-
},
197-
},
198-
AnthropicVendorFields: &AnthropicVendorFields{
199-
Thinking: &anthropic.ThinkingConfigParamUnion{
200-
OfEnabled: &anthropic.ThinkingConfigEnabledParam{
201-
BudgetTokens: 1000,
202-
Type: "enabled",
203-
},
204-
},
205-
},
206-
GCPVertexAIVendorFields: &GCPVertexAIVendorFields{
207-
GenerationConfig: &GCPVertexAIGenerationConfig{
208-
ThinkingConfig: &genai.ThinkingConfig{
209-
IncludeThoughts: true,
210-
ThinkingBudget: ptr.To(int32(1000)),
211-
},
212-
},
213-
},
214-
},
215-
},
216154
{
217155
name: "Request without vendor fields",
218156
jsonData: []byte(`{

0 commit comments

Comments
 (0)