pull down to refresh
10 sats \ 0 replies \ @kemang1_wangi 21 May 2024 \ on: Introducing the Prompt Enhancer and Optimizer Plugin for OpenAgents! openagents
I tried it, it’s awesome, nice one
@AtlantisPleb I've done some changes to the code :
JSON Response Handling:
- The JSON response from the API is decoded to extract the "image" URL field.
Error Handling:
- Added error handling to manage JSON decoding errors and invalid/missing "image" field in the response.
JSON Encoding:
- The extracted "image" URL is re-encoded into a JSON object to ensure it can be handled efficiently.
Memory Allocation and Offset Management:
- The JSON-encoded image URL is allocated in memory.
- The memory offset where the URL is stored is then passed back as the output.
With these changes, the functionality now correctly fetches only the image URL from the API response, handles errors, and manages memory allocation to ensure seamless processing and output.
Hey Thanks! Re-sent the DM or this is my twitter https://twitter.com/kemang1_wangi
110 sats \ 0 replies \ @kemang1_wangi OP 15 May 2024 \ parent \ on: Plugin : Web Screenshot Plugin openagents
I agree, thats why i build this plugin in the first place
100 sats \ 2 replies \ @kemang1_wangi OP 15 May 2024 \ parent \ on: Plugin : Web Screenshot Plugin openagents
Thanks! i already DM on X
GENESIS