Skip to content

Commit

Permalink
rm console logs
Browse files Browse the repository at this point in the history
  • Loading branch information
bramses committed Mar 21, 2023
1 parent b31ee30 commit f7906fd
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export const unfinishedCodeBlock = (txt: string) => {
return false;
}

if (matcher.length % 2 !== 0) console.log("unclosed code block detected");
if (matcher.length % 2 !== 0) console.log("[ChatGPT MD] unclosed code block detected");

return matcher.length % 2 !== 0;
};
2 changes: 0 additions & 2 deletions main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ export default class ChatGPT_MD extends Plugin {
user: string | null = null
) {
try {
console.log(temperature)
console.log("calling openai api");

if (stream) {
Expand Down Expand Up @@ -208,7 +207,6 @@ export default class ChatGPT_MD extends Plugin {
: true; // Otherwise fallback on true.

const temperature = metaMatter?.temperature !== undefined ? metaMatter.temperature : 0.3;
console.log(temperature)

const frontmatter = {
title: metaMatter?.title || view.file.basename,
Expand Down
2 changes: 1 addition & 1 deletion stream.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export const streamSSE = async (
) => {
return new Promise((resolve, reject) => {
try {
console.log("streamSSE", options);
console.log("[ChatGPT MD] streamSSE", options);

const url = "https://api.openai.com/v1/chat/completions";

Expand Down

0 comments on commit f7906fd

Please sign in to comment.