Updated documentation and .env.example to include model limitations and API versatility#38
Merged
jack-williams merged 2 commits intomicrosoft:fix/openai-client-configfrom May 4, 2026
Conversation
added 2 commits
April 30, 2026 16:44
0e4bfc1
into
microsoft:fix/openai-client-config
2 checks passed
jack-williams
added a commit
that referenced
this pull request
May 4, 2026
) * Use AzureOpenAI client and clean up env config in chat & image apps - Switch to the SDK's AzureOpenAI client when VITE_OPENAI_BASE_URL is set so Azure auth uses the supported single api-key header path with api-version, instead of the base OpenAI client with a manually-injected baseURL. - Drop the dead process.env.OPENAI_* fallbacks. vite.config.ts defines process.env as {}, so those reads were inlined as undefined at build time and never did anything. - Read VITE_OPENAI_API_VERSION (new) and use it when constructing the Azure client. Update vite-env.d.ts on both apps with the new optional types. - Default chat model is now gpt-4.1 to match the rest of the codebase. - Mirror the .env.example layout across both apps and comment out the optional vars so copying .env.example does not silently activate the Azure path with a placeholder URL. - Document the optional VITE_OPENAI_* configuration in the README. Co-authored-by: Jace Medlin <32235747+based-jace@users.noreply.github.com> * Updated documentation and .env.example to include model limitations and API versatility (#38) * Updated documentation and .env.example to include model limitations and API versatility * Ran prettier on README --------- Co-authored-by: Jace Medlin (AIM Consulting Addison Group) <v-jacemedlin@gmail.com> --------- Co-authored-by: Jack Williams <jack.williams@microsoft.com> Co-authored-by: Jace Medlin <32235747+based-jace@users.noreply.github.com> Co-authored-by: Jace Medlin (AIM Consulting Addison Group) <v-jacemedlin@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
No description provided.