-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Codebase improvements #4584
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
Codebase improvements #4584
Changes from 5 commits
3733d0d
af36d82
71f0f0f
4b227f1
a31f0d6
cfc99b7
ec092ca
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 |
---|---|---|
|
@@ -75,6 +75,7 @@ class ContinueProxy extends OpenAI { | |
query, | ||
documents: chunks.map((chunk) => chunk.content), | ||
model: this.model, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. extrabodyproperties might conflict with using custom fetch added in this pr? |
||
...this.extraBodyProperties(), | ||
}), | ||
}); | ||
const data: any = await resp.json(); | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,10 @@ import * as URI from "uri-js"; | |
|
||
// Converts a local path to a file:/// URI | ||
export function localPathToUri(path: string) { | ||
if (path.startsWith("file://")) { | ||
console.warn("localPathToUri: path already starts with file://"); | ||
return path; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Might not be best place to catch this |
||
} | ||
const url = pathToFileURL(path); | ||
return URI.normalize(url.toString()); | ||
} | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this will fail for non-file schema paths