Skip to content

Commit

Permalink
fix embedding api path
Browse files Browse the repository at this point in the history
  • Loading branch information
rjmacarthy committed Sep 1, 2024
1 parent 57aeed2 commit 329a67f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/extension/embeddings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export class EmbeddingDatabase {
const requestOptions: RequestOptions = {
hostname: provider.apiHostname,
port: provider.apiPort,
path: '/api/embeddings',
path: provider.apiPath,
protocol: provider.apiProtocol,
method: 'POST',
headers: {
Expand Down
2 changes: 1 addition & 1 deletion src/extension/providers/sidebar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ export class SidebarProvider implements vscode.WebviewViewProvider {
}
if (!this._db) return
for (const dir of dirs) {
;(await this._db.injestDocuments(dir.uri.fsPath)).populateDatabase()
(await this._db.injestDocuments(dir.uri.fsPath)).populateDatabase()
}
}

Expand Down

0 comments on commit 329a67f

Please sign in to comment.