Skip to content

Instantly share code, notes, and snippets.

@simonw
Created February 27, 2025 21:25
Show Gist options
  • Select an option

  • Save simonw/90834e1ca91e3f802d80f67bac94ad7d to your computer and use it in GitHub Desktop.

Select an option

Save simonw/90834e1ca91e3f802d80f67bac94ad7d to your computer and use it in GitHub Desktop.
[
{
"id": "01jn4hgfwcp74ss1msjez5s4ff",
"model": "gpt-4.5-preview",
"prompt": "Generate an SVG of a pelican riding a bicycle",
"system": null,
"prompt_json": {
"messages": [
{
"role": "user",
"content": "Generate an SVG of a pelican riding a bicycle"
}
]
},
"options_json": {},
"response": "Here is an SVG graphic illustrating a whimsical pelican riding a bicycle:\n\n```xml\n<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"300\" height=\"250\" viewBox=\"0 0 300 250\">\n <!-- Bicycle Wheels -->\n <circle cx=\"90\" cy=\"200\" r=\"40\" stroke=\"#000\" stroke-width=\"4\" fill=\"none\"/>\n <circle cx=\"210\" cy=\"200\" r=\"40\" stroke=\"#000\" stroke-width=\"4\" fill=\"none\"/>\n \n <!-- Bicycle Frame -->\n <line x1=\"90\" y1=\"200\" x2=\"150\" y2=\"150\" stroke=\"#000\" stroke-width=\"4\"/>\n <line x1=\"150\" y1=\"150\" x2=\"210\" y2=\"200\" stroke=\"#000\" stroke-width=\"4\"/>\n <line x1=\"150\" y1=\"150\" x2=\"150\" y2=\"120\" stroke=\"#000\" stroke-width=\"4\"/>\n <line x1=\"90\" y1=\"200\" x2=\"130\" y2=\"130\" stroke=\"#000\" stroke-width=\"4\"/>\n <line x1=\"130\" y1=\"130\" x2=\"180\" y2=\"130\" stroke=\"#000\" stroke-width=\"4\"/>\n <line x1=\"210\" y1=\"200\" x2=\"180\" y2=\"130\" stroke=\"#000\" stroke-width=\"4\"/>\n \n <!-- Bicycle Handlebar -->\n <line x1=\"180\" y1=\"130\" x2=\"190\" y2=\"115\" stroke=\"#000\" stroke-width=\"4\"/>\n <line x1=\"180\" y1=\"130\" x2=\"170\" y2=\"115\" stroke=\"#000\" stroke-width=\"4\"/>\n \n <!-- Pelican Body -->\n <ellipse cx=\"150\" cy=\"90\" rx=\"30\" ry=\"40\" fill=\"#fff8e7\" stroke=\"#000\" stroke-width=\"3\"/>\n \n <!-- Pelican Neck -->\n <path d=\"M150 60 Q170 10 200 40\" fill=\"none\" stroke=\"#000\" stroke-width=\"3\"/>\n \n <!-- Pelican Head -->\n <ellipse cx=\"200\" cy=\"40\" rx=\"15\" ry=\"20\" fill=\"#fff8e7\" stroke=\"#000\" stroke-width=\"3\"/>\n \n <!-- Pelican Beak -->\n <polygon points=\"215,45 250,55 210,65 200,50\" fill=\"#f5c55f\" stroke=\"#000\" stroke-width=\"3\"/>\n \n <!-- Pelican Eye -->\n <circle cx=\"205\" cy=\"35\" r=\"3\" fill=\"#000\"/>\n \n <!-- Pelican Wing -->\n <path d=\"M130 80 Q100 70 120 100 Q130 90 130 80\" fill=\"#e8dcc0\" stroke=\"#000\" stroke-width=\"2\"/>\n</svg>\n```\n\nThis SVG creates an artistic depiction of a pelican confidently enjoying a ride on a bicycle.",
"response_json": {
"content": "Here is an SVG graphic illustrating a whimsical pelican riding a bicycle:\n\n```xml\n<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"300\" height=\"250\" viewBox=\"0 0 300 250\">\n <!-- Bicycle Wheels -->\n <circle cx=\"90\" cy=\"200\" r=\"40\" stroke=\"#000\" stroke-width=\"4\" fill=\"none\"/>\n <circle cx=\"210\" cy=\"200\" r=\"40\" stroke=\"#000\" stroke-width=\"4\" fill=\"none\"/>\n \n <!-- Bicycle Frame -->\n <line x1=\"90\" y1=\"200\" x2=\"150\" y2=\"150\" stroke=\"#000\" stroke-width=\"4\"/>\n <line x1=\"150\" y1=\"150\" x2=\"210\" y2=\"200\" stroke=\"#000\" stroke-width=\"4\"/>\n <line x1=\"150\" y1=\"150\" x2=\"150\" y2=\"120\" stroke=\"#000\" stroke-width=\"4\"/>\n <line x1=\"90\" y1=\"200\" x2=\"130\" y2=\"130\" stroke=\"#000\" stroke-width=\"4\"/>\n <line x1=\"130\" y1=\"130\" x2=\"180\" y2=\"130\" stroke=\"#000\" stroke-width=\"4\"/>\n <line x1=\"210\" y1=\"200\" x2=\"180\" y2=\"130\" stroke=\"#000\" stroke-width=\"4\"/>\n \n <!-- Bicycle Handlebar -->\n <line x1=\"180\" y1=\"130\" x2=\"190\" y2=\"115\" stroke=\"#000\" stroke-width=\"4\"/>\n <line x1=\"180\" y1=\"130\" x2=\"170\" y2=\"115\" stroke=\"#000\" stroke-width=\"4\"/>\n \n <!-- Pelican Body -->\n <ellipse cx=\"150\" cy=\"90\" rx=\"30\" ry=\"40\" fill=\"#fff8e7\" stroke=\"#000\" stroke-width=\"3\"/>\n \n <!-- Pelican Neck -->\n <path d=\"M150 60 Q170 10 200 40\" fill=\"none\" stroke=\"#000\" stroke-width=\"3\"/>\n \n <!-- Pelican Head -->\n <ellipse cx=\"200\" cy=\"40\" rx=\"15\" ry=\"20\" fill=\"#fff8e7\" stroke=\"#000\" stroke-width=\"3\"/>\n \n <!-- Pelican Beak -->\n <polygon points=\"215,45 250,55 210,65 200,50\" fill=\"#f5c55f\" stroke=\"#000\" stroke-width=\"3\"/>\n \n <!-- Pelican Eye -->\n <circle cx=\"205\" cy=\"35\" r=\"3\" fill=\"#000\"/>\n \n <!-- Pelican Wing -->\n <path d=\"M130 80 Q100 70 120 100 Q130 90 130 80\" fill=\"#e8dcc0\" stroke=\"#000\" stroke-width=\"2\"/>\n</svg>\n```\n\nThis SVG creates an artistic depiction of a pelican confidently enjoying a ride on a bicycle.",
"finish_reason": "stop",
"usage": {
"completion_tokens": 648,
"prompt_tokens": 17,
"total_tokens": 665,
"completion_tokens_details": {
"accepted_prediction_tokens": 0,
"audio_tokens": 0,
"reasoning_tokens": 0,
"rejected_prediction_tokens": 0
},
"prompt_tokens_details": {
"audio_tokens": 0,
"cached_tokens": 0
}
},
"id": "chatcmpl-B5ekLqsIqCnWN3RYI7GncBslfohjK",
"object": "chat.completion.chunk",
"model": "gpt-4.5-preview-2025-02-27",
"created": 1740687969
},
"conversation_id": "01jn4hgfwax9wpm03ps7bc4m4c",
"duration_ms": 111953,
"datetime_utc": "2025-02-27T20:26:08.823199+00:00",
"input_tokens": 17,
"output_tokens": 648,
"token_details": null,
"conversation_name": "Generate an SVG of a pelican ri\u2026",
"conversation_model": "gpt-4.5-preview",
"schema_json": null,
"attachments": []
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment