修改Ollama接口调用方式

在调用本地Ollama接口时,将api_key默认值设置为“ollama”。
This commit is contained in:
Karasukaigan
2025-02-19 14:42:37 +08:00
parent 0a24217eb5
commit fd7f97b0e8
3 changed files with 3 additions and 18 deletions
-3
View File
@@ -187,9 +187,6 @@ class NovelGeneratorGUI:
max_tokens = self.max_tokens_var.get()
timeout = self.timeout_var.get()
if interface_format == 'Ollama' and api_key == '':
api_key = 'ollama'
test_llm_config(
interface_format=interface_format,
api_key=api_key,