Skip to content

Conversation

@willchrisjr
Copy link
Owner

@willchrisjr willchrisjr commented Oct 29, 2024

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.

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).
Repository owner deleted a comment from bolt-new-by-stackblitz bot Oct 29, 2024
* **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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants