Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fix issue where an agent on twitter tries to use ImageDescriptionService to get the description of a picture from a twitter post but the link provided by the twitter client is a normal twitter link instead of a .pbs link (see example below)
Link to post : https://x.com/MelissiaHanse12/status/1874616542509621650
Link to media : https://pbs.twimg.com/media/GgP5z7AaYAAVN8e?format=jpg&name=small
When provided with the post link, Model returns an error [see original issue] (#1668)
Relates to:
Issue 1668
Risks
Low
Background
What does this PR do?
What kind of change is this?
Documentation changes needed?
Testing
I cloned a fresh repo from the release 1.7 and ran a default character with twitter client. My .env contained an Openai API key and I used a venice API model for my agent. I implemented the fix from this PR first PR 1667
After that, I added a printline to the requestOpenAI function inside of packages\plugin-node\src\services\image.ts at line 221 and 222. (file is not included in PR since it is not needed for the fix).
Where should a reviewer start?
Detailed testing steps
Discord username
displayed name : nusko Discord nametag : nusko_