Skip to content

Conversation

@JWShroyer
Copy link

Q A
Bug fix? yes
New feature? no
BC breaks? no
Related Issue Fix #455

Describe your change

Adds refreshToken callback to ktor Bearer Config returning the existing tokens instead of using the default null behavior. OpenAI API Keys don't require a refresh.

What problem is this fixing?

401 responses from OpenAI API would clear the access token and would require us recreate the client otherwise.

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.

401 Response Clears Access Token

1 participant