fix: 🐛 small bug fixes
This commit is contained in:
parent
bf79b7b940
commit
bc75ff294a
3 changed files with 23 additions and 6 deletions
|
|
@ -349,7 +349,7 @@ export const MODEL_INFO: { [key: string]: ModelInfo } = {
|
|||
...completionParamsInputs,
|
||||
],
|
||||
packages: [
|
||||
...codeLlamaPackages.map((p) => {
|
||||
...llama2Packages.map((p) => {
|
||||
return {
|
||||
...p,
|
||||
params: {
|
||||
|
|
@ -360,7 +360,7 @@ export const MODEL_INFO: { [key: string]: ModelInfo } = {
|
|||
},
|
||||
};
|
||||
}),
|
||||
...llama2Packages.map((p) => {
|
||||
...codeLlamaPackages.map((p) => {
|
||||
return {
|
||||
...p,
|
||||
params: {
|
||||
|
|
|
|||
|
|
@ -24,6 +24,16 @@ function getExtensionVersionInt(versionString: string): number {
|
|||
|
||||
function addPythonPathForConfig() {
|
||||
// Add to python.analysis.extraPaths global setting so config.py gets LSP
|
||||
|
||||
if (
|
||||
vscode.workspace.workspaceFolders?.some((folder) =>
|
||||
folder.uri.fsPath.endsWith("continue")
|
||||
)
|
||||
) {
|
||||
// Not for the Continue repo
|
||||
return;
|
||||
}
|
||||
|
||||
const pythonConfig = vscode.workspace.getConfiguration("python");
|
||||
const analysisPaths = pythonConfig.get<string[]>("analysis.extraPaths");
|
||||
const autoCompletePaths = pythonConfig.get<string[]>(
|
||||
|
|
|
|||
|
|
@ -325,10 +325,17 @@ class ContextManager:
|
|||
Deletes the documents in the search index.
|
||||
"""
|
||||
async with Client(get_meilisearch_url()) as search_client:
|
||||
await asyncio.wait_for(
|
||||
search_client.index(SEARCH_INDEX_NAME).delete_documents(ids),
|
||||
timeout=20,
|
||||
)
|
||||
try:
|
||||
await asyncio.wait_for(
|
||||
search_client.index(SEARCH_INDEX_NAME).delete_documents(ids),
|
||||
timeout=20,
|
||||
)
|
||||
except asyncio.TimeoutError:
|
||||
logger.warning(
|
||||
"Failed to delete document from meilisearch in 20 seconds"
|
||||
)
|
||||
except Exception as e:
|
||||
logger.warning(f"Error deleting document from meilisearch: {e}")
|
||||
|
||||
async def load_index(self, workspace_dir: str, should_retry: bool = True):
|
||||
try:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue