Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
4 changes: 2 additions & 2 deletions ChrmeExt/background.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const API_KEY = "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";
const API_KEY = "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";

// Add permission to the manifest.json to access cookies
chrome.runtime.onMessage.addListener((request, sender, sendResponse) => {
Expand All @@ -10,7 +10,7 @@
'Authorization': `Bearer ${API_KEY}`
},
body: JSON.stringify({
model: "llama3-70b-8192",
model: "llama-3.1-8b-instant",
messages: [{
role: "user",
content: request.prompt
Expand All @@ -27,7 +27,7 @@
return response.json();
})
.then(data => {
if (!data.choices || !data.choices[0]?.message?.content) {

Check warning on line 30 in ChrmeExt/background.js

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Prefer using an optional chain expression instead, as it's more concise and easier to read.

See more on https://sonarcloud.io/project/issues?id=brockgilman_SummarAIze&issues=AZ197mqmSTzC4JOHPTVh&open=AZ197mqmSTzC4JOHPTVh&pullRequest=109
throw new Error('Invalid API response format');
}
sendResponse({ success: true, data });
Expand Down
15 changes: 0 additions & 15 deletions frontend/.firebase/hosting.ZGlzdA.cache

This file was deleted.

Loading