forked from intel/AI-Playground
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: disable unsupported llm settings
Signed-off-by: Markus Schuettler <markus.schuettler@tngtech.com>
- Loading branch information
1 parent
291d168
commit b7306d3
Showing
4 changed files
with
26 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
import { app } from 'electron' | ||
import path from 'node:path' | ||
|
||
export const getMediaDir = () => { | ||
const externalResourcesDir = path.resolve( | ||
app.isPackaged ? process.resourcesPath : path.join(__dirname, '../../external/'), | ||
) | ||
let mediaDir: string | ||
if (process.env.USERPROFILE) { | ||
mediaDir = path.join(process.env.USERPROFILE, 'Documents', 'AI-Playground', 'media') | ||
} else if (process.env.HOME) { | ||
mediaDir = path.join(process.env.HOME, 'AI-Playground', 'media') | ||
} else { | ||
mediaDir = path.join(externalResourcesDir, 'service', 'static', 'sd_out') | ||
} | ||
return mediaDir | ||
} | ||
import { app } from 'electron' | ||
import path from 'node:path' | ||
|
||
export const getMediaDir = () => { | ||
const externalResourcesDir = path.resolve( | ||
app.isPackaged ? process.resourcesPath : path.join(__dirname, '../../external/'), | ||
) | ||
let mediaDir: string | ||
if (process.env.USERPROFILE) { | ||
mediaDir = path.join(process.env.USERPROFILE, 'Documents', 'AI-Playground', 'media') | ||
} else if (process.env.HOME) { | ||
mediaDir = path.join(process.env.HOME, 'AI-Playground', 'media') | ||
} else { | ||
mediaDir = path.join(externalResourcesDir, 'service', 'static', 'sd_out') | ||
} | ||
return mediaDir | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters