Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 6 additions & 12 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@
"@lmstudio/sdk": "^1.1.1",
"@mistralai/mistralai": "^1.9.18",
"@modelcontextprotocol/sdk": "1.12.0",
"@qdrant/js-client-rest": "^1.14.0",
"@qdrant/js-client-rest": "^1.17.0",
"@roo-code/cloud": "workspace:^",
"@roo-code/core": "workspace:^",
"@roo-code/ipc": "workspace:^",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ describe("QdrantVectorStore", () => {
https: false,
port: 6333,
apiKey: mockApiKey,
checkCompatibility: false,
headers: {
"User-Agent": "Roo-Code",
},
Expand All @@ -97,6 +98,7 @@ describe("QdrantVectorStore", () => {
https: false,
port: 6333,
apiKey: undefined,
checkCompatibility: false,
headers: {
"User-Agent": "Roo-Code",
},
Expand All @@ -111,6 +113,7 @@ describe("QdrantVectorStore", () => {
https: false,
port: 6333,
apiKey: undefined,
checkCompatibility: false,
headers: {
"User-Agent": "Roo-Code",
},
Expand All @@ -131,6 +134,7 @@ describe("QdrantVectorStore", () => {
port: 443,
prefix: undefined, // No prefix for root path
apiKey: undefined,
checkCompatibility: false,
headers: {
"User-Agent": "Roo-Code",
},
Expand All @@ -146,6 +150,7 @@ describe("QdrantVectorStore", () => {
port: 9000,
prefix: undefined, // No prefix for root path
apiKey: undefined,
checkCompatibility: false,
headers: {
"User-Agent": "Roo-Code",
},
Expand All @@ -165,6 +170,7 @@ describe("QdrantVectorStore", () => {
port: 443,
prefix: "/api/v1", // Should have prefix
apiKey: undefined,
checkCompatibility: false,
headers: {
"User-Agent": "Roo-Code",
},
Expand All @@ -182,6 +188,7 @@ describe("QdrantVectorStore", () => {
port: 80,
prefix: undefined, // No prefix for root path
apiKey: undefined,
checkCompatibility: false,
headers: {
"User-Agent": "Roo-Code",
},
Expand All @@ -197,6 +204,7 @@ describe("QdrantVectorStore", () => {
port: 8080,
prefix: undefined, // No prefix for root path
apiKey: undefined,
checkCompatibility: false,
headers: {
"User-Agent": "Roo-Code",
},
Expand All @@ -216,6 +224,7 @@ describe("QdrantVectorStore", () => {
port: 80,
prefix: "/api/v1", // Should have prefix
apiKey: undefined,
checkCompatibility: false,
headers: {
"User-Agent": "Roo-Code",
},
Expand All @@ -232,6 +241,7 @@ describe("QdrantVectorStore", () => {
https: false,
port: 80,
apiKey: undefined,
checkCompatibility: false,
headers: {
"User-Agent": "Roo-Code",
},
Expand All @@ -246,6 +256,7 @@ describe("QdrantVectorStore", () => {
https: false,
port: 6333,
apiKey: undefined,
checkCompatibility: false,
headers: {
"User-Agent": "Roo-Code",
},
Expand All @@ -260,6 +271,7 @@ describe("QdrantVectorStore", () => {
https: false,
port: 9000,
apiKey: undefined,
checkCompatibility: false,
headers: {
"User-Agent": "Roo-Code",
},
Expand All @@ -276,6 +288,7 @@ describe("QdrantVectorStore", () => {
https: false,
port: 80,
apiKey: undefined,
checkCompatibility: false,
headers: {
"User-Agent": "Roo-Code",
},
Expand All @@ -290,6 +303,7 @@ describe("QdrantVectorStore", () => {
https: false,
port: 6333,
apiKey: undefined,
checkCompatibility: false,
headers: {
"User-Agent": "Roo-Code",
},
Expand All @@ -306,6 +320,7 @@ describe("QdrantVectorStore", () => {
https: false,
port: 6333,
apiKey: undefined,
checkCompatibility: false,
headers: {
"User-Agent": "Roo-Code",
},
Expand All @@ -320,6 +335,7 @@ describe("QdrantVectorStore", () => {
https: false,
port: 6333,
apiKey: undefined,
checkCompatibility: false,
headers: {
"User-Agent": "Roo-Code",
},
Expand All @@ -334,6 +350,7 @@ describe("QdrantVectorStore", () => {
https: false,
port: 6333,
apiKey: undefined,
checkCompatibility: false,
headers: {
"User-Agent": "Roo-Code",
},
Expand All @@ -350,6 +367,7 @@ describe("QdrantVectorStore", () => {
https: false,
port: 80,
apiKey: undefined,
checkCompatibility: false,
headers: {
"User-Agent": "Roo-Code",
},
Expand All @@ -372,6 +390,7 @@ describe("QdrantVectorStore", () => {
port: 6333,
prefix: "/some/path",
apiKey: undefined,
checkCompatibility: false,
headers: {
"User-Agent": "Roo-Code",
},
Expand All @@ -391,6 +410,7 @@ describe("QdrantVectorStore", () => {
port: 6333,
prefix: undefined,
apiKey: undefined,
checkCompatibility: false,
headers: {
"User-Agent": "Roo-Code",
},
Expand All @@ -410,6 +430,7 @@ describe("QdrantVectorStore", () => {
port: 443,
prefix: "/api",
apiKey: undefined,
checkCompatibility: false,
headers: {
"User-Agent": "Roo-Code",
},
Expand All @@ -429,6 +450,7 @@ describe("QdrantVectorStore", () => {
port: 6333,
prefix: "/api", // Trailing slash should be removed
apiKey: undefined,
checkCompatibility: false,
headers: {
"User-Agent": "Roo-Code",
},
Expand All @@ -448,6 +470,7 @@ describe("QdrantVectorStore", () => {
port: 6333,
prefix: "/api", // All trailing slashes should be removed
apiKey: undefined,
checkCompatibility: false,
headers: {
"User-Agent": "Roo-Code",
},
Expand All @@ -467,6 +490,7 @@ describe("QdrantVectorStore", () => {
port: 6333,
prefix: "/api/v1/qdrant",
apiKey: undefined,
checkCompatibility: false,
headers: {
"User-Agent": "Roo-Code",
},
Expand All @@ -483,6 +507,7 @@ describe("QdrantVectorStore", () => {
port: 443,
prefix: "/ollama/api/v1", // Trailing slash removed, query/fragment ignored
apiKey: undefined,
checkCompatibility: false,
headers: {
"User-Agent": "Roo-Code",
},
Expand All @@ -502,6 +527,7 @@ describe("QdrantVectorStore", () => {
port: 6333,
prefix: "/api/path", // Query params and fragment should be ignored
apiKey: undefined,
checkCompatibility: false,
headers: {
"User-Agent": "Roo-Code",
},
Expand Down
2 changes: 2 additions & 0 deletions src/services/code-index/vector-store/qdrant-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ export class QdrantVectorStore implements IVectorStore {
port: port,
prefix: urlObj.pathname === "/" ? undefined : urlObj.pathname.replace(/\/+$/, ""),
apiKey,
checkCompatibility: false,
headers: {
"User-Agent": "Roo-Code",
},
Expand All @@ -71,6 +72,7 @@ export class QdrantVectorStore implements IVectorStore {
this.client = new QdrantClient({
url: parsedUrl,
apiKey,
checkCompatibility: false,
headers: {
"User-Agent": "Roo-Code",
},
Expand Down
Loading