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

Ensure openai token #262

Merged
merged 2 commits into from
Aug 2, 2023
Merged

Conversation

gukoff
Copy link
Contributor

@gukoff gukoff commented Jun 2, 2023

Purpose

  • Correctly check that token expires soon
  • Idiomatic Flask

Does this introduce a breaking change?

[ ] Yes
[x] No

Pull Request Type

What kind of change does this Pull Request introduce?

[x] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[x] Refactoring (no functional changes, no api changes)
[ ] Documentation content changes
[ ] Other... Please describe:

Copy link
Collaborator

@pamelafox pamelafox left a comment

Choose a reason for hiding this comment

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

Looks good, thank you!

@pamelafox pamelafox merged commit 52abf79 into Azure-Samples:main Aug 2, 2023
1 check passed
@gukoff gukoff deleted the ensure-openai-token branch August 2, 2023 13:42
HughRunyan pushed a commit to RMI/RMI_chatbot that referenced this pull request Mar 26, 2024
* Idiomatic @before_request hook for updating the access token

* Update the token if it's going to expire soon.

There likely was a typo with "-".
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