feat: 🚸 display troubleshooting link when loading
This commit is contained in:
parent
2959042fa5
commit
698dccf474
3 changed files with 56 additions and 16 deletions
|
|
@ -52,7 +52,7 @@ class HuggingFaceInferenceAPI(LLM):
|
|||
|
||||
response = requests.post(API_URL, headers=headers, json={
|
||||
"inputs": prompt, "parameters": {
|
||||
"max_new_tokens": self.max_context_length - self.count_tokens(prompt),
|
||||
"max_new_tokens": min(250, self.max_context_length - self.count_tokens(prompt)),
|
||||
"max_time": DEFAULT_MAX_TIME,
|
||||
"return_full_text": False,
|
||||
}
|
||||
|
|
|
|||
|
|
@ -351,21 +351,57 @@ function GUI(props: GUIProps) {
|
|||
>
|
||||
Continue Server Starting
|
||||
</p>
|
||||
<p
|
||||
style={{
|
||||
margin: "auto",
|
||||
textAlign: "center",
|
||||
marginTop: "4px",
|
||||
fontSize: "12px",
|
||||
cursor: "pointer",
|
||||
opacity: 0.7,
|
||||
}}
|
||||
onClick={() => {
|
||||
postVscMessage("toggleDevTools", {});
|
||||
}}
|
||||
>
|
||||
<u>Click to view logs</u>
|
||||
</p>
|
||||
<div className="flex mx-8 my-2">
|
||||
<p
|
||||
style={{
|
||||
margin: "auto",
|
||||
textAlign: "center",
|
||||
marginTop: "4px",
|
||||
fontSize: "12px",
|
||||
cursor: "pointer",
|
||||
opacity: 0.7,
|
||||
}}
|
||||
>
|
||||
<u>
|
||||
<a
|
||||
style={{ color: "inherit" }}
|
||||
href="https://continue.dev/docs/troubleshooting"
|
||||
>
|
||||
Troubleshooting help
|
||||
</a>
|
||||
</u>
|
||||
</p>
|
||||
<p
|
||||
style={{
|
||||
margin: "auto",
|
||||
textAlign: "center",
|
||||
marginTop: "4px",
|
||||
fontSize: "12px",
|
||||
cursor: "pointer",
|
||||
opacity: 0.7,
|
||||
}}
|
||||
onClick={() => {
|
||||
postVscMessage("toggleDevTools", {});
|
||||
}}
|
||||
>
|
||||
<u>View logs</u>
|
||||
</p>
|
||||
<p
|
||||
style={{
|
||||
margin: "auto",
|
||||
textAlign: "center",
|
||||
marginTop: "4px",
|
||||
fontSize: "12px",
|
||||
cursor: "pointer",
|
||||
opacity: 0.7,
|
||||
}}
|
||||
onClick={() => {
|
||||
postVscMessage("reloadWindow", {});
|
||||
}}
|
||||
>
|
||||
<u>Reload the window</u>
|
||||
</p>
|
||||
</div>
|
||||
<div className="w-3/4 m-auto text-center text-xs">
|
||||
Tip: Drag the Continue logo from the far left of the window to the
|
||||
right, then toggle Continue using option/alt+command+m.
|
||||
|
|
|
|||
|
|
@ -252,6 +252,10 @@ export function setupDebugPanel(
|
|||
vscode.commands.executeCommand("continue.viewLogs");
|
||||
break;
|
||||
}
|
||||
case "reloadWindow": {
|
||||
vscode.commands.executeCommand("workbench.action.reloadWindow");
|
||||
break;
|
||||
}
|
||||
case "focusEditor": {
|
||||
setFocusedOnContinueInput(false);
|
||||
vscode.commands.executeCommand(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue