docs: 📝 update codellama documentation

This commit is contained in:
Nate Sesti 2023-09-19 12:56:31 -07:00
parent 8a37d5865b
commit ba2e684f81
2 changed files with 13 additions and 5 deletions

View file

@ -79,8 +79,9 @@ config = ContinueConfig(
...
models=Models(default=OpenAI(
model="CodeLlama-7b-Instruct-hf",
openai_server_info={'api_base': 'http://localhost:8000/v1'})
api_base="http://localhost:8000/v1"
))
)
```
4. Reload the VS Code window for changes to take effect.

View file

@ -298,11 +298,18 @@ class IdeProtocolClient {
});
break;
case "listDirectoryContents":
messenger.send("listDirectoryContents", {
contents: await this.getDirectoryContents(
let contents: string[] = [];
try {
contents = await this.getDirectoryContents(
data.directory,
data.recursive || false
),
);
} catch (e) {
console.log("Error listing directory contents: ", e);
contents = [];
}
messenger.send("listDirectoryContents", {
contents,
});
break;
case "editFile":