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

Fixed #571 - show message that model arg is ignored in case of using Azure OpenAI #592

Merged
merged 2 commits into from
Jun 19, 2024

Conversation

jank
Copy link
Contributor

@jank jank commented Jun 19, 2024

…AzureOpenAI

Reference Issues/PRs

Fixes #571

What does this implement/fix? Explain your changes.

Log warning message that model command line arg is ignored in case of using AzureOpenAI.

Copy link

codecov bot commented Jun 19, 2024

Codecov Report

Attention: Patch coverage is 0% with 2 lines in your changes missing coverage. Please review.

Project coverage is 76.29%. Comparing base (5a473be) to head (3c4258f).

Files Patch % Lines
sweagent/agent/models.py 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #592      +/-   ##
==========================================
+ Coverage   76.25%   76.29%   +0.04%     
==========================================
  Files          21       21              
  Lines        3318     3320       +2     
==========================================
+ Hits         2530     2533       +3     
+ Misses        788      787       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@klieret klieret left a comment

Choose a reason for hiding this comment

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

Thanks ❤️ ! (still planning to avoiding this problem in general, but this is an improvement for the here and now)

@klieret klieret merged commit aa94a2e into princeton-nlp:main Jun 19, 2024
6 checks passed
@jank
Copy link
Contributor Author

jank commented Jun 19, 2024

Just for the record. I created the original diff for this fix using SWE-Agent.
A few manual changes were necessary as GPT-4 introduced an import of logging instead of using the available logger.
Overall quite impressive work from the SWE-Agent team.

@ofirpress
Copy link
Member

Cool! Thank you so much!

sankalp1999 pushed a commit to sankalp1999/SWE-agent that referenced this pull request Nov 5, 2024
…ase of using Azure OpenAI (princeton-nlp#592)

* Fixed princeton-nlp#571 - show message that model arg is ignored in case of using AzureOpenAI

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
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.

When using the azure GPT endpoint, the --model CLI arg is ignored
3 participants