-
Notifications
You must be signed in to change notification settings - Fork 795
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
Conversation
There was a problem hiding this 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 in4
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: |
There was a problem hiding this comment.
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.
There was a problem hiding this 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 in2
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 iflitellm_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.
e54cadb
to
ae7a6d9
Compare
There was a problem hiding this 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 in2
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:
Usingtype: ignore
can hide potential issues. Consider handling the optional nature oflitellm_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.
Summary:
Added support for Azure GPT-4o mini by updating configuration settings, API handler factory, and LLM configuration registry.
Key points:
ENABLE_AZURE_GPT4O_MINI
flag inskyvern/config.py
.skyvern/config.py
.LLMConfig
andLLMConfigBase
inskyvern/forge/sdk/api/llm/models.py
to includelitellm_params
.LLMAPIHandlerFactory.get_llm_api_handler
inskyvern/forge/sdk/api/llm/api_handler_factory.py
to handlelitellm_params
.skyvern/forge/sdk/api/llm/config_registry.py
.Generated with ❤️ by ellipsis.dev