mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-11-10 17:02:32 +00:00
test(grok): configure multipart media mapping
This commit is contained in:
1 parent
335edde9c8
commit
b4ad7fd363
1 file changed
+3
-2
@@ -749,8 +749,9 @@ func TestForwardGrokMediaImagesEditMultipartConvertsToJSON(t *testing.T) {
|
|||||||
Type: AccountTypeAPIKey,
|
Type: AccountTypeAPIKey,
|
||||||
Concurrency: 1,
|
Concurrency: 1,
|
||||||
Credentials: map[string]any{
|
Credentials: map[string]any{
|
||||||
"api_key": "api-key",
|
"api_key": "api-key",
|
||||||
"base_url": "https://xai.test/v1",
|
"base_url": "https://xai.test/v1",
|
||||||
|
"model_mapping": map[string]any{"grok-imagine-edit": "vendor-image-edit"},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
upstream := &httpUpstreamRecorder{resp: &http.Response{
|
upstream := &httpUpstreamRecorder{resp: &http.Response{
|
||||||
|
|||||||
Reference in new issue
Block a user