-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[docs] 1/n Update getting started Code Snippets #488
Conversation
c48b50b
to
efaa34f
Compare
|
||
# Run a single prompt | ||
await config.run("get_activities") | ||
result = await aiconfig.run("get_activities") | ||
printr(result) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this needed? Also, should this be print?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This code executes silently without a print statement. Nothing gets printed to stdout and the user doesn't see anything. It would make sense for the user to see the output
Yes printr is a typo, thanks for catching
@@ -258,11 +274,10 @@ Let's run this with AIConfig: | |||
Replace `config.run` above with this: | |||
|
|||
```python | |||
inference_options = InferenceOptions(stream=True) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't we still need this? Or is this set earlier already?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is set earlier. Now, User just needs to update the aiconfig.run() call, which uses the previous Inference Options
Small changes that make it easier to copy paste and run (and have it work)
efaa34f
to
737f6c3
Compare
[docs] 1/n Update getting started Code Snippets
Small changes that make it easier to copy paste and run (and have it work)