Skip to content

Commit

Permalink
Update deps (#34)
Browse files Browse the repository at this point in the history
Signed-off-by: Matteo Collina <[email protected]>
  • Loading branch information
mcollina authored May 8, 2024
1 parent 6b39c51 commit 8216840
Show file tree
Hide file tree
Showing 6 changed files with 245 additions and 241 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,6 @@ tags
# clinicjs
.clinic/

ai-warp-app/
ai-warp-app/

*.gguf
6 changes: 5 additions & 1 deletion config.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,11 @@ export interface AiWarpConfig {
port?: number | string;
hostname?: string;
endpoint?: string;
server?: "own" | "parent";
server?: "own" | "parent" | "hide";
defaultMetrics?: {
enabled: boolean;
};
prefix?: string;
auth?: {
username: string;
password: string;
Expand Down
14 changes: 2 additions & 12 deletions lib/generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ interface PackageJson {
class AiWarpGenerator extends ServiceGenerator {
private _packageJson: PackageJson | null = null

getDefaultConfig (): BaseGenerator.JSONValue {
getDefaultConfig (): { [x: string]: BaseGenerator.JSONValue } {
const defaultBaseConfig = super.getDefaultConfig()
const defaultConfig = {
aiProvider: 'openai',
Expand Down Expand Up @@ -50,7 +50,7 @@ class AiWarpGenerator extends ServiceGenerator {
]
}

async _getConfigFileContents (): Promise<BaseGenerator.JSONValue> {
async _getConfigFileContents (): Promise<{ [x: string]: BaseGenerator.JSONValue }> {
const baseConfig = await super._getConfigFileContents()
const packageJson = await this.getStackablePackageJson()
const config = {
Expand Down Expand Up @@ -112,16 +112,6 @@ class AiWarpGenerator extends ServiceGenerator {
}
}

if (this.config.plugin !== undefined && this.config.plugin) {
Object.assign(config, {
plugins: {
paths: [
{ path: './plugins', encapsulate: false }
]
}
})
}

return Object.assign({}, baseConfig, config)
}

Expand Down
Loading

0 comments on commit 8216840

Please sign in to comment.