mirror of
https://github.com/LibreTranslate/LibreTranslate.git
synced 2024-11-22 07:51:00 +00:00
Merge pull request #603 from zachdecook/detect-integer
Documentation: /detect returns an integer 0-100, not a float
This commit is contained in:
commit
2007ea87e6
1 changed files with 4 additions and 4 deletions
|
@ -858,7 +858,7 @@ def create_app(args):
|
||||||
name: q
|
name: q
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
example: Hello world!
|
example: What language is this?
|
||||||
required: true
|
required: true
|
||||||
description: Text to detect
|
description: Text to detect
|
||||||
- in: formData
|
- in: formData
|
||||||
|
@ -879,11 +879,11 @@ def create_app(args):
|
||||||
properties:
|
properties:
|
||||||
confidence:
|
confidence:
|
||||||
type: number
|
type: number
|
||||||
format: float
|
format: integer
|
||||||
minimum: 0
|
minimum: 0
|
||||||
maximum: 1
|
maximum: 100
|
||||||
description: Confidence value
|
description: Confidence value
|
||||||
example: 0.6
|
example: 100
|
||||||
language:
|
language:
|
||||||
type: string
|
type: string
|
||||||
description: Language code
|
description: Language code
|
||||||
|
|
Loading…
Reference in a new issue