mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-08-06 10:42:39 +00:00
generator
This commit is contained in:
parent
1fd7ea881c
commit
4291fc0b25
1 changed files with 0 additions and 8 deletions
|
@ -177,14 +177,6 @@ class ContentBuilder:
|
|||
) -> Dict[str, MediaType]:
|
||||
"Creates the content subtree for a request or response."
|
||||
|
||||
# def has_iterator_type(t):
|
||||
# if typing.get_origin(t) is typing.Union:
|
||||
# return any(has_iterator_type(a) for a in typing.get_args(t))
|
||||
# else:
|
||||
# # TODO: needs a proper fix where we let all types correctly flow upwards
|
||||
# # and then test against AsyncIterator
|
||||
# return "StreamChunk" in str(t)
|
||||
|
||||
def is_iterator_type(t):
|
||||
return "StreamChunk" in str(t)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue