fix uniqueId
This commit is contained in:
parent
83bff02a15
commit
a9e97fef9a
1 changed files with 6 additions and 5 deletions
|
|
@ -13,13 +13,14 @@ class ContinueProxy extends OpenAI {
|
|||
static providerName: ModelProvider = "continue-proxy";
|
||||
static defaultOptions: Partial<LLMOptions> = {
|
||||
useLegacyCompletionsEndpoint: false,
|
||||
requestOptions: {
|
||||
headers: {
|
||||
"x-continue-unique-id": Telemetry.uniqueId,
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
protected _getHeaders() {
|
||||
const headers: any = super._getHeaders();
|
||||
headers["x-continue-unique-id"] = Telemetry.uniqueId;
|
||||
return headers;
|
||||
}
|
||||
|
||||
supportsCompletions(): boolean {
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue