#Problems with the GPT 3.5 model.

1 messages ยท Page 1 of 1 (latest)

formal basin
#

updated code and now i can call it but gpt 3.5 is just telling me to try again

formal basin
#

ok i thought it would help if i gave a bit of context. I want to create this thing where an ai can generate an image using html canvas. PAI gives the html (which i dont want) but in the script tags it just says "your code here". I know gpt 3.5 can generate code but it just tells me "Error, please try again" in the response

#

oh im using the gpt 3.5 unfiltered you can find here btww

#

Problems with the GPT 3.5 model.

formal basin
#

"To display a user prompt with "Sunset with a tree" using a canvas element without any additional HTML (assuming the canvas already exists on the page with an ID of canvas), you can use the following JavaScript code:

// Get reference to the canvas element by its ID
const canvas = document.getElementById('canvas');
const ctx = canvas.getContext('2d'); // Context for 2D rendering
if (!ctx) {
    console.error('Canvas not found or no 2D context available.');
} else {
    // Set up dimensions for our drawing area (you may want to set these dynamically based on your needs)
    const WIDTH = canvas.width;

The above is all i get using pai-001

#

firstly it gives me text which will break my code since its not javascript