Skip to content

Commit 1f2e9ce

Browse files
Align syntax
1 parent 30e2194 commit 1f2e9ce

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -441,10 +441,10 @@ client.Task.SpamClassify(mirage.SpamClassifyRequest {
441441
"logprob": -0.10,
442442

443443
"scores": {
444-
"gibberish": 0.0,
445-
"marketing": 0.45,
446-
"regular": 0.0,
447-
"spam": 0.93
444+
"gibberish": 0.0,
445+
"marketing": 0.45,
446+
"regular": 0.0,
447+
"spam": 0.93
448448
}
449449
}
450450
}

task_spam.go

+5-4
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ type SpamClassifyResponseData struct {
3333

3434
// SpamClassifyResponse mapping
3535
type SpamClassifyResponse struct {
36-
Class string `json:"class"`
37-
Confidence float32 `json:"confidence"`
38-
LogProb float32 `json:"logprob"`
39-
Scores SpamClassifyResponseScores `json:"scores"`
36+
Class string `json:"class"`
37+
Confidence float32 `json:"confidence"`
38+
LogProb float32 `json:"logprob"`
39+
Scores SpamClassifyResponseScores `json:"scores"`
4040
}
4141

4242
// SpamClassifyResponseScores mapping
@@ -47,6 +47,7 @@ type SpamClassifyResponseScores struct {
4747
Spam float32 `json:"spam"`
4848
}
4949

50+
5051
// String returns the string representation of SpamClassifyResponse
5152
func (instance SpamClassifyResponse) String() string {
5253
return Stringify(instance)

0 commit comments

Comments
 (0)