woheller69 / gptAssist

gptAssist is a simple WebView wrapper for ChatGPT
GNU General Public License v3.0
226 stars 6 forks source link

Image handling addresses changed on OpenAI side #22

Closed catbears closed 8 months ago

catbears commented 8 months ago

Thank you for the app, I like it a lot.

Upload of images and download of generated images doesn't work anymore. I think it is because Openai changed the domains handling the files. Could you please look into this?

I found this to display and download images, for the upload I am not sure: files.oaiusercontent.com

Thanks

woheller69 commented 8 months ago

Please try the apk from this zip Added oaiusercontent.com

Uninstall first.

signedartifactscontent.zip

catbears commented 8 months ago

Upload and download/display work with the file.

Thanks

catbears commented 8 months ago

Sorry for me being too quick. The images show now in the app, but the download button does not work. I made a screenshot, also of the network requests.

image

If an image is hovered with the mouse / long tapped on the app, then the download button appears. But clicking/tapping it does not download the image.

If one taps an image it gets fullscreen. That's ok, but the download button is hidden in vertical mode. If turned, the button shows, but also does not initiate the download (the other button hides the text box, it works).

Screenshot_20231023-195532_gptAssist

Horizontal Screenshot_20231023-195554_gptAssist

I am on LineageOS , Android 13, latest update

Maybe this is helpful: The table shows all urls after I sent the command to generate images (latest on top).

image

woheller69 commented 8 months ago

I don't have ChatGPT Plus. Can I test this without?

catbears commented 8 months ago

Image generation is a plus only feature.

woheller69 commented 8 months ago

Would that work? Long click saves the image.

Uninstall Remove .zip and install

app-debug.apk.zip

catbears commented 8 months ago

Long click works :)

There are differences between the app and the browser-dl, which I don't mind. Just want to let you know.

PC - browser stored file and name: "DALL·E 2023-10-25 12.25.36 - vector icon on a white background, depicting ...and so on.png" App-download: Filename and type from the link to the file, like "Dac81f047-a0e3-43fa-b2-c7577a03ff9d.bin.webp"

The long tap issues a message which reads sth like: "image saved as ...bin" tapping the message does not work, but the images are stored correctly, as described above. They have the same size and resolution as the pngs from the pc/browser.

I'm happy so far, thanks for the fixes!