Skip to content

didnt fix the error. but ill integrate anyways lol #13

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

Merged
merged 2 commits into from
Apr 9, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
remove asking model in prompt
  • Loading branch information
zubyj committed Apr 9, 2023
commit cd17b6abba129e6f9553804486d249e31608848b
3 changes: 1 addition & 2 deletions src/popup/popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,8 @@ async function getCodeFromActiveTab() {
}

function processCode(chatGPTProvider, codeText) {
const getModel = "tell me what model you are? are you gpt3.5 or gpt4"
chatGPTProvider.generateAnswer({
prompt: `Give me the time and space complexity of the following code, if it exists, in one short sentence.\n ${codeText} ${getModel}`,
prompt: `Give me the time and space complexity of the following code, if it exists, in one short sentence.\n ${codeText}`,
onEvent: (event) => {
if (event.type === "answer") {
displayTimeComplexity(event.data.text);
Expand Down