Skip to content

Commit 86f10b6

Browse files
fix[modules-config](socai): add little message on model test to manage wrong models and wronk api keys on the request
1 parent 96345fa commit 86f10b6

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

plugins/modules-config/validations/socai/providers/AbstractProvider.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,12 @@ func (p *AbstractProvider) PerformTestRequest() (int, error) {
5151

5252
body,_ := json.Marshal(map[string]any{
5353
"model": p.Model,
54+
"messages": []map[string]string{
55+
{
56+
"role": "user",
57+
"content": "only say ok",
58+
},
59+
},
5460
})
5561

5662
_, status, err := utils.DoReq[map[string]any](p.URL,body , "POST", headers, false)

0 commit comments

Comments
 (0)