mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-08-07 02:58:21 +00:00
remove comments
This commit is contained in:
parent
2214de9e54
commit
14a1a04b8e
1 changed files with 0 additions and 3 deletions
|
@ -136,7 +136,6 @@ class SchemaBuilder:
|
|||
|
||||
type_schema, type_definitions = self.schema_generator.classdef_to_schema(typ)
|
||||
|
||||
# Add metrics field to all response schemas
|
||||
if self._is_response_type(typ):
|
||||
if isinstance(type_schema, dict) and '$ref' in type_schema:
|
||||
# If it's a reference, modify the schema in type_definitions
|
||||
|
@ -144,10 +143,8 @@ class SchemaBuilder:
|
|||
if ref_name in type_definitions:
|
||||
self._add_metrics_to_schema(type_definitions[ref_name])
|
||||
else:
|
||||
# Direct schema case
|
||||
self._add_metrics_to_schema(type_schema)
|
||||
|
||||
# Register all schemas, including modified ones
|
||||
for ref, schema in type_definitions.items():
|
||||
self._add_ref(ref, schema)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue