diff --git a/__pycache__/config_manager.cpython-310.pyc b/__pycache__/config_manager.cpython-310.pyc deleted file mode 100644 index 575cf01..0000000 Binary files a/__pycache__/config_manager.cpython-310.pyc and /dev/null differ diff --git a/__pycache__/consistency_checker.cpython-310.pyc b/__pycache__/consistency_checker.cpython-310.pyc deleted file mode 100644 index 792d4c9..0000000 Binary files a/__pycache__/consistency_checker.cpython-310.pyc and /dev/null differ diff --git a/__pycache__/novel_generator.cpython-310.pyc b/__pycache__/novel_generator.cpython-310.pyc deleted file mode 100644 index 0c40b7e..0000000 Binary files a/__pycache__/novel_generator.cpython-310.pyc and /dev/null differ diff --git a/__pycache__/prompt_definitions.cpython-310.pyc b/__pycache__/prompt_definitions.cpython-310.pyc deleted file mode 100644 index 44af9b9..0000000 Binary files a/__pycache__/prompt_definitions.cpython-310.pyc and /dev/null differ diff --git a/__pycache__/ui.cpython-310.pyc b/__pycache__/ui.cpython-310.pyc deleted file mode 100644 index af2051e..0000000 Binary files a/__pycache__/ui.cpython-310.pyc and /dev/null differ diff --git a/__pycache__/utils.cpython-310.pyc b/__pycache__/utils.cpython-310.pyc deleted file mode 100644 index 1304809..0000000 Binary files a/__pycache__/utils.cpython-310.pyc and /dev/null differ diff --git a/ui.py b/ui.py index 785610d..715266e 100644 --- a/ui.py +++ b/ui.py @@ -300,10 +300,13 @@ class NovelGeneratorGUI: def on_interface_format_changed(new_value): if new_value == "Ollama": self.base_url_var.set("http://localhost:11434/v1") + self.embedding_url_var.set("http://localhost:11434/api") elif new_value == "ML Studio": - self.base_url_var.set("http://localhost:1234") + self.base_url_var.set("http://localhost:1234/v1") + self.embedding_url_var.set("http://localhost:1234/api") elif new_value == "OpenAI": - self.base_url_var.set("https://api.agicto.cn") + self.base_url_var.set("https://api.openai.com/v1") + self.embedding_url_var.set("https://api.openai.com/v1") for i in range(5): self.ai_config_tab.grid_rowconfigure(i, weight=0)