-
Notifications
You must be signed in to change notification settings - Fork 0
new improvements #1
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
Open
willchrisjr
wants to merge
10
commits into
main
Choose a base branch
from
new-improvements
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
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
Remove unnecessary commented-out code and empty elements. * **src/app/actions.tsx** - Remove commented-out code for the `showWeather` tool. * **src/app/genui/page.tsx** - Remove commented-out import for `Chat` component. * **src/components/cards/aboutcard.tsx** - Remove empty paragraphs in the `CardContent` section. * **src/components/cards/genuicard.tsx** - Complete the incomplete sentence in the `CardContent` section. * **src/components/header.tsx** - Remove the empty `Link` component. --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/willchrisjr/react-next-app?shareId=XXXX-XXXX-XXXX-XXXX).
* **Add AI model providers** - Add OpenAI provider - Add Google Cloud AI provider - Add Azure AI provider * **Update functions to support new models** - Update `continueTextConversation` to support new models - Update `continueConversation` to support new models
…t a `model` parameter * Update `streamText` and `generateText` calls to use the `model` parameter Add a dropdown for selecting the AI model in `GenUI` and `Chat` components * Pass the selected model to `continueConversation` and `continueTextConversation`
…unctions to accept separate provider and model parameters. * **src/app/actions.tsx** - Create `getModelProvider` function to return the appropriate model provider. - Update `continueTextConversation` and `continueConversation` to accept separate provider and model parameters. * **src/app/genui/page.tsx** - Add state for selected provider and model. - Update `handleSubmit` to pass both provider and model. - Update select dropdown to include both provider and model options. * **src/components/chat.tsx** - Add state for selected provider and model. - Update `handleSubmit` to pass both provider and model. - Update select dropdown to include both provider and model options. * **README.md** - Add instructions on how to select both provider and model.
* **`src/app/actions.tsx`** - Add `getChatCompletion` function to use `createChatCompletion` with the OpenAI API - Include error handling for the API request * **`README.md`** - Update instructions to include setting up the OpenAI API key in the environment variables * **`tsconfig.json`** - Update `compilerOptions` to match the provided configuration - Ensure `include` includes the `src` directory
Add comparison mode for AI model responses. * **src/app/actions.tsx** - Add `compareAIModels` function to compare responses from different AI models. - Update `getModelProvider` function to include a new provider `compare`. - Update `continueTextConversation` and `continueConversation` functions to handle the `compare` provider. * **src/app/genui/page.tsx** - Add `compareMode` state to toggle comparison mode. - Update `handleSubmit` function to handle comparison mode. - Add a new button to toggle comparison mode in the UI. * **src/components/chat.tsx** - Add `compareMode` state to toggle comparison mode. - Update `handleSubmit` function to handle comparison mode. - Add a new button to toggle comparison mode in the UI. --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/willchrisjr/react-next-app?shareId=XXXX-XXXX-XXXX-XXXX).
Add compare mode to chat interface
…o use Azure OpenAI API * **Environment Variables** - Load environment variables using `dotenv.config()` - Retrieve `AZURE_OPENAI_API_KEY` and `AZURE_OPENAI_ENDPOINT` from environment variables - Throw error if API key or endpoint is not defined * **getChatCompletion Function** - Update to use Azure OpenAI API key and endpoint - Log the response from Azure OpenAI API
…`README.md` * **Azure AI provider:** - Add Azure AI provider with `getChatCompletion` function using provided code snippet. - Update `continueTextConversation` and `continueConversation` functions to support `azureAI` provider. - Update `checkAIAvailability` function to check for `AZURE_OPENAI_API_KEY` and `AZURE_OPENAI_ENDPOINT`. * **README.md:** - Add instructions to set up `AZURE_OPENAI_API_KEY` and `AZURE_OPENAI_ENDPOINT` in the `.env` file. - Update the list of AI model providers to include Azure AI.
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.
Remove unnecessary commented-out code and empty elements.
showWeathertool.Chatcomponent.CardContentsection.CardContentsection.Linkcomponent.For more details, open the Copilot Workspace session.