mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-10-05 12:21:52 +00:00
Add strong_typing, add defaults
This commit is contained in:
parent
98da002b4c
commit
2f6ce08315
24 changed files with 5170 additions and 109 deletions
|
@ -18,16 +18,16 @@ import yaml
|
|||
|
||||
from llama_models import schema_utils
|
||||
|
||||
from .pyopenapi.options import Options
|
||||
from .pyopenapi.specification import Info, Server
|
||||
from .pyopenapi.utility import Specification
|
||||
|
||||
# We do some monkey-patching to ensure our definitions only use the minimal
|
||||
# (json_schema_type, webmethod) definitions from the llama_models package. For
|
||||
# generation though, we need the full definitions and implementations from the
|
||||
# (json-strong-typing) package.
|
||||
|
||||
from strong_typing.schema import json_schema_type
|
||||
|
||||
from .pyopenapi.options import Options
|
||||
from .pyopenapi.specification import Info, Server
|
||||
from .pyopenapi.utility import Specification
|
||||
from .strong_typing.schema import json_schema_type
|
||||
|
||||
schema_utils.json_schema_type = json_schema_type
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue