Skip to content
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

Sample Python Notebook Application Error #846

Closed
nsteblay opened this issue May 7, 2023 · 2 comments
Closed

Sample Python Notebook Application Error #846

nsteblay opened this issue May 7, 2023 · 2 comments

Comments

@nsteblay
Copy link

nsteblay commented May 7, 2023

Describe the bug
There is an error in 00-getting-started.ipynb

To Reproduce
The line: kernel.add_text_completion_service("dv", OpenAITextCompletion("text-davinci-003", api_key, org_id))
Should be: kernel.config.add_text_completion_service("dv", OpenAITextCompletion("text-davinci-003", api_key, org_id))

Merge KernelConfig with Kernel (#731) is culprit. The notebooks were not tested apparently. Since this is an introduction to the Semantic Kernel I would recommend that the code published actually works if at all possible.

@mkarle
Copy link
Contributor

mkarle commented May 7, 2023

The pip package wasn’t updated yet, so when the notebook tries to install from requirements.txt, the change to kernel config reflected. To get around this until the pip package has been updated, uncomment !python -m pip install ../../../python in the first cell of the notebook, and comment out !python -m pip install -r requirements.txt

@shawncal
Copy link
Member

shawncal commented May 8, 2023

New pip packages released:
https://pypi.org/project/semantic-kernel/0.2.7.dev0/

Closing as the pip packages now match the documentation. Thanks again for raising this!

@shawncal shawncal closed this as completed May 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants