File tree 4 files changed +12
-4
lines changed
4 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -437,8 +437,15 @@ client.Task.SpamClassify(mirage.SpamClassifyRequest {
437
437
438
438
"data" : {
439
439
"class" : " spam" ,
440
- "confidence" : 0.13 ,
441
- "logprob" : -0.10
440
+ "confidence" : 0.93 ,
441
+ "logprob" : -0.10 ,
442
+
443
+ "scores" : {
444
+ "gibberish" : 0.0 ,
445
+ "marketing" : 0.45 ,
446
+ "regular" : 0.0 ,
447
+ "spam" : 0.93
448
+ }
442
449
}
443
450
}
444
451
```
Original file line number Diff line number Diff line change 1
- 1.8.0
1
+ 1.8.1
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ import (
20
20
21
21
22
22
const (
23
- libraryVersion = "1.8.0 "
23
+ libraryVersion = "1.8.1 "
24
24
defaultRestEndpointURL = "https://api.mirage-ai.com/v1/"
25
25
userAgent = "go-mirage-api/" + libraryVersion
26
26
acceptContentType = "application/json"
Original file line number Diff line number Diff line change @@ -39,6 +39,7 @@ type SpamClassifyResponse struct {
39
39
Scores SpamClassifyResponseScores `json:"scores"`
40
40
}
41
41
42
+ // SpamClassifyResponseScores mapping
42
43
type SpamClassifyResponseScores struct {
43
44
Gibberish float32 `json:"gibberish"`
44
45
Marketing float32 `json:"marketing"`
You can’t perform that action at this time.
0 commit comments