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

fix: fix imageModelProvider apiKey selection fallback #1272

Merged
merged 5 commits into from
Dec 24, 2024

Conversation

UD1sto
Copy link
Contributor

@UD1sto UD1sto commented Dec 20, 2024

##Relates to
#1270

##Risks
None known

What does this PR do?

Introduces an addition on packages/core/src/generate.ts that first tries to match the apiKey to it's corresponding imageModelProvider and moves to the fallback logic if that fails.

What kind of change is this?

Bug fixes (non-breaking change which fixes an issue)

Why are we doing this? Any context or related work?

Current behaviour is not intended and causing issues and confusion.

Documentation changes needed?

Testing

Manually tested

Where should a reviewer start?

packages/core/src/generate.ts

Detailed testing steps

Deploy Notes

Database changes

Discord username

@shakkernerd shakkernerd changed the base branch from main to develop December 20, 2024 15:23
@UD1sto UD1sto changed the title Fix for issue 1270 fix: for issue 1270 Dec 20, 2024
@UD1sto UD1sto changed the title fix: for issue 1270 fix: fix imageModelProvider apiKey selection fallback Dec 20, 2024
@UD1sto
Copy link
Contributor Author

UD1sto commented Dec 20, 2024

Closed to review again and remediate issues

@UD1sto UD1sto closed this Dec 20, 2024
@Titan-Node
Copy link
Contributor

+1 to this pull request. Looking to add another image gen provider but waiting for this pull to fix an underlying issue.

@UD1sto UD1sto reopened this Dec 21, 2024
@shakkernerd shakkernerd deleted the branch elizaOS:develop December 22, 2024 07:02
@odilitime odilitime reopened this Dec 22, 2024
Copy link
Collaborator

@monilpat monilpat left a comment

Choose a reason for hiding this comment

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

LGTM

@monilpat monilpat merged commit 8b23c3a into elizaOS:develop Dec 24, 2024
2 checks passed
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.

5 participants