Skip to content
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

Add GPT-4o for Azure OpenAI #1755

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

1orZero
Copy link

@1orZero 1orZero commented May 26, 2024

🚀 This description was created by Ellipsis for commit 690f94c

Summary:

This PR integrates GPT-4o model support into the Azure OpenAI API configuration, including backend, frontend, and database updates.

Key points:

  • Added gpt-4o case in POST function in app/api/chat/azure/route.ts to handle new model.
  • Added new state azureOpenai45OID in ProfileSettings component in components/utility/profile-settings.tsx for frontend configuration.
  • Added new database column azure_openai_45_o_id in profiles table via migration in supabase/migrations/20240526065246_add_azure_openai_45_o_id_to_profiles.sql.
  • Updated Database type in supabase/types.ts to include new column.

Generated with ❤️ by ellipsis.dev

Copy link

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❌ Changes requested. Reviewed everything up to 690f94c in 1 minute and 3 seconds

More details
  • Looked at 106 lines of code in 4 files
  • Skipped 0 files when reviewing.
  • Skipped posting 0 drafted comments based on config settings.

Workflow ID: wflow_d8DLIjVNXSwM1ekd


Want Ellipsis to fix these issues? Tag @ellipsis-dev in a comment. You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

app/api/chat/azure/route.ts Show resolved Hide resolved
@em-le-ts
Copy link

+1

@1orZero
Copy link
Author

1orZero commented May 28, 2024

❌ Changes requested. Reviewed everything up to 690f94c in 1 minute and 3 seconds

More details
Want Ellipsis to fix these issues? Tag @ellipsis-dev in a comment. You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

Do I need to update azure_openai_45_o_id ? I think it should be aligned with the existing Azure field naming convention.

Below are examples of existing Azure fields.

case "gpt-3.5-turbo":
  DEPLOYMENT_ID = profile.azure_openai_35_turbo_id || "";
  break;
case "gpt-4-turbo-preview":
  DEPLOYMENT_ID = profile.azure_openai_45_turbo_id || "";
  break;
case "gpt-4-vision-preview":
  DEPLOYMENT_ID = profile.azure_openai_45_vision_id || "";
  break;

@DogFortune
Copy link

I too hope this feature will be available soon.

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.

3 participants