You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
vscode.workspace.workspaceFolders?.map((folder)=>folder.uri.fsPath).at(0)??path.join(os.homedir(),"Desktop")// may or may not exist but fs checking existence would immediately ask for permission which would be bad UX, need to come up with a better solution
// If the previous API request's total token usage is close to the context window, truncate the conversation history to free up space for the new request
// since we sent off a placeholder api_req_started message to update the webview while waiting to actually start the API request (to load potential details for example), we need to update the text of that message
return`The message is too large for the model's available space (${messageSize} estimated tokens > ${maxAllowedSize} tokens, where ${this.systemPromptSize} tokens are used by system prompt and ${this.modelInfo.maxTokens??4000} tokens reserved for response). Please hit Cancel and try breaking up the task into smaller steps.`
76
+
}
77
+
78
+
returnundefined
79
+
}
80
+
81
+
/**
82
+
* Checks if the conversation history size exceeds the context window
0 commit comments