修改Ollama接口调用方式
在调用本地Ollama接口时,将api_key默认值设置为“ollama”。
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user