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 gpt4o mini support #666

Merged
merged 2 commits into from
Aug 2, 2024
Merged

add gpt4o mini support #666

merged 2 commits into from
Aug 2, 2024

Conversation

LawyZheng
Copy link
Collaborator

@LawyZheng LawyZheng commented Aug 2, 2024

🚀 This description was created by Ellipsis for commit ae7a6d9

Summary:

Added support for Azure GPT-4o mini by updating configuration settings, API handler factory, and LLM configuration registry.

Key points:

  • Added ENABLE_AZURE_GPT4O_MINI flag in skyvern/config.py.
  • Introduced Azure GPT-4o mini specific environment variables in skyvern/config.py.
  • Updated LLMConfig and LLMConfigBase in skyvern/forge/sdk/api/llm/models.py to include litellm_params.
  • Modified LLMAPIHandlerFactory.get_llm_api_handler in skyvern/forge/sdk/api/llm/api_handler_factory.py to handle litellm_params.
  • Registered Azure GPT-4o mini configuration in skyvern/forge/sdk/api/llm/config_registry.py.

Generated with ❤️ by ellipsis.dev

Copy link
Contributor

@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 087e962 in 58 seconds

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

Workflow ID: wflow_OizGxUn8h4bA1IB0


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.

@@ -158,6 +160,8 @@ async def llm_api_handler(
parameters = LLMAPIHandlerFactory.get_api_parameters()

active_parameters.update(parameters)
if llm_config.litellm_params:
Copy link
Contributor

Choose a reason for hiding this comment

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

The code assumes litellm_params is always a dictionary, but it's defined as optional and can be None. This can lead to a TypeError when attempting to update active_parameters with None. Consider adding a check to ensure litellm_params is not None before updating.

Copy link
Contributor

@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.

👍 Looks good to me! Incremental review on e54cadb in 57 seconds

More details
  • Looked at 33 lines of code in 2 files
  • Skipped 0 files when reviewing.
  • Skipped posting 1 drafted comments based on config settings.
1. skyvern/forge/sdk/api/llm/api_handler_factory.py:163
  • Draft comment:
    Using # type: ignore can lead to potential runtime errors if litellm_params are not structured as expected. Consider implementing proper type checks or conversions to ensure compatibility.
if llm_config.litellm_params is not None:
    active_parameters.update(llm_config.litellm_params)
  • Reason this comment was not posted:
    Confidence of 20% on close inspection, compared to threshold of 50%.

Workflow ID: wflow_CvtgcetOCuPG1iXA


You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

@LawyZheng LawyZheng force-pushed the add-azure-gpt4o-mini branch from e54cadb to ae7a6d9 Compare August 2, 2024 11:34
Copy link
Contributor

@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.

👍 Looks good to me! Incremental review on ae7a6d9 in 53 seconds

More details
  • Looked at 33 lines of code in 2 files
  • Skipped 0 files when reviewing.
  • Skipped posting 1 drafted comments based on config settings.
1. skyvern/forge/sdk/api/llm/api_handler_factory.py:163
  • Draft comment:
    Using type: ignore can hide potential issues. Consider handling the optional nature of litellm_params explicitly to avoid type mismatches and improve code safety.
if llm_config.litellm_params is not None:
    active_parameters.update(llm_config.litellm_params)
  • Reason this comment was not posted:
    Confidence of 20% on close inspection, compared to threshold of 50%.

Workflow ID: wflow_Lo6xhtyIeTjjSxIz


You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

@LawyZheng LawyZheng merged commit 98e2f7f into main Aug 2, 2024
2 checks passed
@LawyZheng LawyZheng deleted the add-azure-gpt4o-mini branch August 2, 2024 11:35
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.

1 participant