Skip to content

Commit

Permalink
🐛 fix getBranch bug
Browse files Browse the repository at this point in the history
  • Loading branch information
sestinj committed Dec 8, 2023
1 parent 8ebedb6 commit fb04971
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion extensions/vscode/src/continueIdeClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -770,7 +770,7 @@ class IdeProtocolClient {
async getBranch(): Promise<string> {
const repo = await this.getRepo();

return repo.state.HEAD?.name || "NONE";
return repo?.state?.HEAD?.name || "NONE";
}

async getDiff(): Promise<string> {
Expand Down
3 changes: 1 addition & 2 deletions server/continuedev/libs/constants/default_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ def modify_config(config: ContinueConfig) -> ContinueConfig:
}
],
"model_roles": {
"default": "GPT-4",
"summarize": "GPT-3.5-Turbo"
"default": "GPT-4"
},
"slash_commands": [
{
Expand Down
2 changes: 1 addition & 1 deletion server/continuedev/libs/llm/ggml.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ async def _raw_stream_complete(self, prompt, options):
) as resp:
if resp.status != 200:
raise Exception(
f"Error calling /chat/completions endpoint: {resp.status}"
f"Error calling /completions endpoint: {resp.status}"
)

async for line in resp.content.iter_any():
Expand Down

0 comments on commit fb04971

Please sign in to comment.