-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Frontend][Core] Move guided decoding params into sampling params (#8252
- Loading branch information
Showing
16 changed files
with
441 additions
and
281 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
import pytest | ||
|
||
|
||
@pytest.fixture | ||
def sample_regex(): | ||
return (r"((25[0-5]|(2[0-4]|1\d|[1-9]|)\d)\.){3}" | ||
r"(25[0-5]|(2[0-4]|1\d|[1-9]|)\d)") | ||
|
||
|
||
@pytest.fixture | ||
def sample_json_schema(): | ||
return { | ||
"type": "object", | ||
"properties": { | ||
"name": { | ||
"type": "string" | ||
}, | ||
"age": { | ||
"type": "integer" | ||
}, | ||
"skills": { | ||
"type": "array", | ||
"items": { | ||
"type": "string", | ||
"maxLength": 10 | ||
}, | ||
"minItems": 3 | ||
}, | ||
"work_history": { | ||
"type": "array", | ||
"items": { | ||
"type": "object", | ||
"properties": { | ||
"company": { | ||
"type": "string" | ||
}, | ||
"duration": { | ||
"type": "number" | ||
}, | ||
"position": { | ||
"type": "string" | ||
} | ||
}, | ||
"required": ["company", "position"] | ||
} | ||
} | ||
}, | ||
"required": ["name", "age", "skills", "work_history"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.