File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ import OpenAI from "openai";
2929import { DeepInfra } from "./deep-infra" ;
3030import { ChatGpt } from "./chat-gpt" ;
3131import { Feedback } from "./feedback" ;
32+ import { Titled } from "./titled" ;
3233
3334export let github : {
3435 context : {
@@ -95,7 +96,9 @@ async function run() {
9596 await new ChatGpt (
9697 new OpenAI ( { apiKey : core . getInput ( "openai_token" ) } ) ,
9798 model
98- ) . analyze ( body ) ,
99+ ) . analyze (
100+ new Titled ( smart . title , body ) . asString ( )
101+ ) ,
99102 octokit ,
100103 issue ,
101104 smart . user ?. login
@@ -105,10 +108,7 @@ async function run() {
105108 const model = core . getInput ( "deepinfra_model" ) ;
106109 const answer = await new DeepInfra ( deepinfra , model )
107110 . analyze (
108- `
109- Title: ${ smart . title }
110- Report body: ${ body }
111- `
111+ new Titled ( smart . title , body ) . asString ( )
112112 ) ;
113113 await new Feedback (
114114 answer ,
You can’t perform that action at this time.
0 commit comments