-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: describe graph (PT-188650872) #22
base: main
Are you sure you want to change the base?
Conversation
@@ -1,38 +1,3 @@ | |||
import { AssistantTool } from "openai/resources/beta/assistants"; | |||
|
|||
export const openAiTools: AssistantTool[] = [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are no longer needed in the plugin codebase. The tool functions will be created and edited exclusively on the OpenAI platform going forward.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
#188650872
With these changes and related changes to CODAP v3 plus modified AI assistant instructions, the assistant will request an image snapshot of a graph in CODAP when the user asks DAVAI to describe what a graph actually looks like. With the proper CODAP API request, CODAP will send the plugin a base64-encoded string which the plugin can convert to a file and upload to the assistant's file storage for analysis.
To test this out in a browser, you'll need to use a branch CODAP v3 URL, as well as the plugin branch URL with the
mode
param set to "development", like so:https://codap3.concord.org/branch/describe-graph-by-text/index.html?sample=mammals&di=https://codap3.concord.org/davai-plugin/branch/describe-graph-by-text/?mode=development
You'll also need to change the assistant to "DAVAI Image Interpretation" in the Developer Options section of the plugin.