Skip to content

Automating Bearer Token Generation#31

Merged
beansrowning merged 14 commits into
masterfrom
dev
Jun 24, 2026
Merged

Automating Bearer Token Generation#31
beansrowning merged 14 commits into
masterfrom
dev

Conversation

@beansrowning

@beansrowning beansrowning commented Jun 24, 2026

Copy link
Copy Markdown
Collaborator

Changes

  • Automating fetching of the bearer token for AzureOpenAI client
  • Updated pytest suite accordingly
  • We should be able to avoid repeatedly handling auth errors when tokens expire this way
  • Shifting azure-auth infra to use AIO methods for async operations
    • Will need to add dependency on aiohttp
    • Python support now 3.10+ as a result

beansrowning and others added 14 commits August 7, 2025 14:09
- Seems like something we'd want all the time
- Signals to API to cancel
- Not super robust, should rework model
## Changes
- Fixing some rather boneheadded approaches to batch and query handling using a polling approach, which was inefficient
- Adding callback to batch_handler to remove it from list rather than polling status
- Adding callback for query_handler as well within all-call processors
- Cleaning up logs by decreasing log severity for many log events to debug
- Fixing placeholder logic within processor code which wasn't working
- Fixes explicit error handling to fetch new tokens
- Passing explicitly to OpenAI constructor instead of using env var which has changed between versions
- Just patching in a dummy value for the token generator
- TODO: probably actually define an attribute for this at compile time
- Now only 3.10+
@beansrowning beansrowning merged commit 9bcf896 into master Jun 24, 2026
7 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.

1 participant