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

Modified the import to use openai and set the API key using openai.api_key #611

Merged
merged 3 commits into from
Oct 8, 2024

Conversation

Shuvo31
Copy link
Contributor

@Shuvo31 Shuvo31 commented Oct 8, 2024

The openai library does not have a Client class that can be imported directly.
Instead, we can use openai.api_key for authentication and the module's built-in methods to interact with the API.
Set the API key using openai.api_key.

In the RecSum-experiments.ipynb file
I have converted user_input to lowercase using input("You: ").lower() before the comparison.
This ensures that both "bye" and "Bye" (or any variation like "BYE") are treated the same, making the condition work as intended.

PR #594, accidentally got closed.

@creatorrr I removed the .DS_Store file that I checked in accidentally.

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Skipped PR review on 6bcb911 because no changed files had a supported extension. If you think this was in error, please contact us and we'll fix it right away.


Generated with ❤️ by ellipsis.dev

@Shuvo31 Shuvo31 changed the title Modified the import to use openai and set the API key using openai.api_key #594 Modified the import to use openai and set the API key using openai.api_key Oct 8, 2024
@creatorrr creatorrr merged commit 0424843 into julep-ai:dev Oct 8, 2024
3 of 6 checks passed
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

Successfully merging this pull request may close these issues.

2 participants