-
Notifications
You must be signed in to change notification settings - Fork 2.6k
fix(qdrant): add URL prefix handling for QdrantClient initialization #5033
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
9b09f08
6450215
32ffeb4
e522eb3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -57,13 +57,15 @@ export class QdrantVectorStore implements IVectorStore { | |
| host: urlObj.hostname, | ||
| https: useHttps, | ||
| port: port, | ||
| prefix: urlObj.pathname === "/" ? undefined : urlObj.pathname, | ||
|
||
| apiKey, | ||
| headers: { | ||
| "User-Agent": "Roo-Code", | ||
| }, | ||
| }) | ||
| } catch (urlError) { | ||
| // If URL parsing fails, fall back to URL-based config | ||
| // Note: This fallback won't correctly handle prefixes, but it's a last resort for malformed URLs. | ||
| this.client = new QdrantClient({ | ||
| url: parsedUrl, | ||
| apiKey, | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.