Changes for new thinking format and URL format #15
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Purpose
This pull request includes updates to the Azure infrastructure configuration, refactors the OpenAI client integration in the Quart app, and simplifies the chat response streaming logic. Additionally, it includes a minor fix in the front-end template for handling response content.
Infrastructure Updates:
aiServicesEndpointininfra/main.bicepto remove the/modelssuffix in both the module definition and the outputAZURE_INFERENCE_ENDPOINT. This ensures consistency with the new endpoint format. [1] [2]OpenAI Client Refactoring:
AsyncOpenAIclient withAsyncAzureOpenAIinsrc/quartapp/chat.py. This change removes the customTokenBasedAuthclass and simplifies authentication by directly using the Azure AD token provider. The API version was also updated to2025-04-01-preview. [1] [2]Chat Response Streaming Simplification:
async def response_stream()by removing handling for<think>tags and directly yielding the JSON representation of the model's response updates.Front-End Template Fix:
src/quartapp/templates/index.htmlto ensure the loading bar is hidden only whenevent.delta.contentis present.Does this introduce a breaking change?
Pull Request Type
What kind of change does this Pull Request introduce?
How to Test
What to Check
Verify that the following are valid
Other Information