pass env to continueProperties
This commit is contained in:
parent
1b24a7c185
commit
6d4857bf32
3 changed files with 5 additions and 1 deletions
|
|
@ -26,9 +26,11 @@ class ContinueProxy extends OpenAI {
|
|||
// but we need to keep track of the actual values that the proxy will use
|
||||
// to call whatever LLM API is chosen
|
||||
private actualApiBase?: string;
|
||||
private env?: Record<string, any>;
|
||||
|
||||
constructor(options: LLMOptions) {
|
||||
super(options);
|
||||
this.env = options.env;
|
||||
this.actualApiBase = options.apiBase;
|
||||
this.apiKeyLocation = options.apiKeyLocation;
|
||||
this.orgScopeId = options.orgScopeId;
|
||||
|
|
@ -48,6 +50,7 @@ class ContinueProxy extends OpenAI {
|
|||
apiKeyLocation: this.apiKeyLocation,
|
||||
apiBase: this.actualApiBase,
|
||||
orgScopeId: this.orgScopeId ?? null,
|
||||
env: this.env,
|
||||
};
|
||||
return {
|
||||
continueProperties,
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@continuedev/config-yaml",
|
||||
"version": "1.0.87",
|
||||
"version": "1.0.88",
|
||||
"description": "",
|
||||
"main": "dist/index.js",
|
||||
"types": "dist/index.d.ts",
|
||||
|
|
|
|||
|
|
@ -160,6 +160,7 @@ export const continuePropertiesSchema = z.object({
|
|||
apiKeyLocation: z.string().optional(),
|
||||
apiBase: z.string().optional(),
|
||||
orgScopeId: z.string().nullable(),
|
||||
env: z.record(z.string(), z.any()).optional(),
|
||||
});
|
||||
|
||||
export type ContinueProperties = z.infer<typeof continuePropertiesSchema>;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue