You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the OpenAI module is generating a one-sentence summary of the user's ask. We should modify this to include a recommendation on which team would be most able to help resolve the user's issue. While adding a label will trigger our Linear integration, it's helpful to know which label to add 😉
We'd need a mapping similar to this:
constengineeringTeams: {team: string;description: string}[]=[{team: "Engine",description: "Focuses on the core API engine, ensuring performance, scalability, and reliability."},{team: "Enterprise Connectors",description: "Builds and maintains connectors for enterprise-grade integrations with various systems and databases."},{team: "Docs",description: "Responsible for creating and maintaining clear, comprehensive documentation for users."}];
Then, we'd need to update the implementation of the summary function(s) to be something like this:
exportasyncfunctionsummarizeIssueBody(issueBody: string): Promise<string>{constnote=awaitclient.chat.completions.create({messages: [{role: "user",content: `Summarize this GitHub issue into a one-sentence summary of what the user is asking for: ${issueBody}. Additionally, analyze the user's ask and recommend which team from this list would be best to help: ${engineeringTeams.map(({ team, description })=>`${team}: ${description}`).join("; ");}`,},],model: "gpt-4o",});if(!note.choices[0].message.content){thrownewError(`Error from OpenAI generating a summary`);}returnnote.choices[0].message.content;}// Transforms an existing Issue to use the summarized response from GPT.exportfunctionupdateIssueBody(issue: SheetRow,summary: string): SheetRow{issue.notes=summary;returnissue;}
The text was updated successfully, but these errors were encountered:
Currently, the OpenAI module is generating a one-sentence summary of the user's ask. We should modify this to include a recommendation on which team would be most able to help resolve the user's issue. While adding a label will trigger our Linear integration, it's helpful to know which label to add 😉
We'd need a mapping similar to this:
Then, we'd need to update the implementation of the summary function(s) to be something like this:
The text was updated successfully, but these errors were encountered: