eliza icon indicating copy to clipboard operation
eliza copied to clipboard

fix: fix imageModelProvider apiKey selection fallback

Open its-DeFine opened this issue 1 year ago • 2 comments

##Relates to https://github.com/ai16z/eliza/issues/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

its-DeFine avatar Dec 20 '24 14:12 its-DeFine

Closed to review again and remediate issues

its-DeFine avatar Dec 20 '24 18:12 its-DeFine

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

Titan-Node avatar Dec 21 '24 04:12 Titan-Node