Skip to content

Commit

Permalink
enhance(ai-help): add model to issue reports
Browse files Browse the repository at this point in the history
  • Loading branch information
caugner committed Apr 15, 2024
1 parent 26ed0e5 commit a66ab7d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions client/src/plus/ai-help/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1083,6 +1083,9 @@ function ReportIssueOnGitHubLink({
currentMessage: Message;
children: React.ReactNode;
}) {
const user = useUserData();
const isSubscriber = useMemo(() => isPlusSubscriber(user), [user]);

const gleanClick = useGleanClick();
const currentMessageIndex = messages.indexOf(currentMessage);
const questions = messages
Expand All @@ -1107,6 +1110,8 @@ function ReportIssueOnGitHubLink({
)
.join("\n") ?? "(None)"
);
// TODO Persist model in messages and read it from there.
sp.set("model", isSubscriber ? "gpt-4" : "gpt-3.5");
sp.set("template", "ai-help-answer.yml");

url.search = sp.toString();
Expand Down

0 comments on commit a66ab7d

Please sign in to comment.