New (Python) example: simple drawings (rectangle, ellipse, arrow)#238
Draft
gvanrossum wants to merge 29 commits intomicrosoft:mainfrom
Draft
New (Python) example: simple drawings (rectangle, ellipse, arrow)#238gvanrossum wants to merge 29 commits intomicrosoft:mainfrom
gvanrossum wants to merge 29 commits intomicrosoft:mainfrom
Conversation
The idea is that you can write a small amount of JavaScript that reads the JSON and renders in an HTML5 canvas, or some Python that renders it in Tkinter, or anything else that strikes your fancy. I would like to use this to draw diagrams representing the stack and memory layout for an interpreter, to be used in internal docs.
Member
|
There's some stuff here that makes intuitive sense, but I'll need to check in with others (CC @ahejlsberg) I would think that the best format for incorporating chat history would be something like
That gives background for the current convo, plus reinforces the current task at hand. This PR is pretty close to that. |
Contributor
Author
|
I wonder how to proceed. Clearly this PR two things (adding history and adding a new example) and that's not great. Your fixes to the translator (#240) broke my PR and I would rather not try to merge it back. I propose to add my example without chat history and start a separate discussion on chat history -- okay? |
This was referenced Apr 22, 2024
(Just append the inputs, separated by newlines.)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
For me, this works best with openai model gpt-3.5-turbo; gpt-4 seems worse (?!).
Here's a sample session (no longer valid without history support)