-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #226 from griptape-ai/update/add_default_url
Update/add_default_url
- Loading branch information
Showing
6 changed files
with
128 additions
and
59 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
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 |
---|---|---|
@@ -0,0 +1,54 @@ | ||
import { keys_organized } from "./griptape_api_keys.js"; | ||
|
||
export function createSettings(app) { | ||
// Create the settings | ||
app.ui.settings.addSetting({ | ||
id: `Griptape.default_config`, | ||
category: ["Griptape", "!Griptape", "default_config"], | ||
name: "default_config", | ||
type: "dict", | ||
defaultValue: "", | ||
tooltip: "To set this, use the Griptape: Set Default Agent node.", | ||
}); | ||
app.ui.settings.addSetting({ | ||
id: `Griptape.ollama_default_url`, | ||
category: ["Griptape", "Ollama", "ollama_default_url"], | ||
name: "default_url", | ||
type: "text", | ||
defaultValue: "http://127.0.0.1" | ||
}); | ||
app.ui.settings.addSetting({ | ||
id: `Griptape.allow_code_execution_dangerous`, | ||
category: ["Griptape", "!Griptape", "code_execution_dangerous"], | ||
name: "Enable Insecure Griptape Code: Run Python [DANGER]", | ||
type: "boolean", | ||
tooltip: "When enabled, the Griptape Code: Run Python node will not check for dangerous code.\n\n[WARNING] This setting is dangerous and should only be enabled if you know what you are doing.", | ||
defaultValue: false, | ||
onChange: (newVal, oldVal) => { if (newVal == true) { console.warn("Griptape Code: Dangerous Code Execution enabled: ", newVal)} }, | ||
}); | ||
app.ui.settings.addSetting({ | ||
id: `Griptape.allow_code_execution`, | ||
category: ["Griptape", "!Griptape", "code_execution"], | ||
name: "Enable Griptape Code: Run Python Nodes", | ||
type: "boolean", | ||
tooltip: "When enabled, the `Griptape Code: Run Python` node will be available for use.", | ||
defaultValue: false, | ||
// onChange: (newVal, oldVal) => { console.log("Setting got changed!", newVal) }, | ||
}); | ||
|
||
Object.entries(keys_organized).forEach(([category, keys]) => { | ||
keys.forEach((key) => { | ||
app.ui.settings.addSetting({ | ||
id: `Griptape.${key}`, | ||
category: ["Griptape", category, key], | ||
name: key, | ||
type: "text", | ||
defaultValue: "", | ||
/* To listen for changes, add an onChange parameter | ||
onChange: (newVal, oldVal) => { console.log("Setting got changed!") }, | ||
*/ | ||
}); | ||
}); | ||
}); | ||
|
||
} |
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
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,6 +1,6 @@ | ||
[tool.poetry] | ||
name = "comfyui-griptape" | ||
version = "2.1.08" | ||
version = "2.1.09" | ||
description = "Griptape LLM(Large Language Model) Nodes for ComfyUI." | ||
authors = ["Jason Schleifer <[email protected]>"] | ||
readme = "README.md" | ||
|
@@ -9,7 +9,7 @@ readme = "README.md" | |
[project] | ||
name = "comfyui-griptape" | ||
description = "Griptape LLM(Large Language Model) Nodes for ComfyUI." | ||
version = "2.1.08" | ||
version = "2.1.09" | ||
license = {file = "LICENSE"} | ||
dependencies = ["attrs>=24.3.0,<25.0.0", "openai>=1.58.1,<2.0.0", "griptape[all]>=1.1.0", "python-dotenv", "poetry==1.8.5", "griptape-black-forest @ git+https://github.com/griptape-ai/griptape-black-forest.git"] | ||
|
||
|