Skip to content

Commit 30e2194

Browse files
author
Baptiste Jamin
committed
v1.8.1
1 parent 899561a commit 30e2194

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

README.md

+9-2
Original file line numberDiff line numberDiff line change
@@ -437,8 +437,15 @@ client.Task.SpamClassify(mirage.SpamClassifyRequest {
437437

438438
"data": {
439439
"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+
}
442449
}
443450
}
444451
```

VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.8.0
1+
1.8.1

mirage.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import (
2020

2121

2222
const (
23-
libraryVersion = "1.8.0"
23+
libraryVersion = "1.8.1"
2424
defaultRestEndpointURL = "https://api.mirage-ai.com/v1/"
2525
userAgent = "go-mirage-api/" + libraryVersion
2626
acceptContentType = "application/json"

task_spam.go

+1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ type SpamClassifyResponse struct {
3939
Scores SpamClassifyResponseScores `json:"scores"`
4040
}
4141

42+
// SpamClassifyResponseScores mapping
4243
type SpamClassifyResponseScores struct {
4344
Gibberish float32 `json:"gibberish"`
4445
Marketing float32 `json:"marketing"`

0 commit comments

Comments
 (0)