Skip to content

Commit

Permalink
2/n add default stream = True (#452)
Browse files Browse the repository at this point in the history
2/n add default stream = True

## What

default stream to true
  • Loading branch information
Ankush-lastmile authored Dec 11, 2023
2 parents 9257624 + 2e9ec29 commit eaa237e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions python/src/aiconfig/default_parsers/hf.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@ async def run_inference(
completion_data = await self.deserialize(prompt, aiconfig, options, parameters)

# if stream enabled in runtime options and config, then stream. Otherwise don't stream.
stream = True # Default value
if options is not None and options.stream is not None:
stream = options.stream
elif "stream" in completion_data:
Expand Down

0 comments on commit eaa237e

Please sign in to comment.