mirror of
https://gitlab.com/ArkHost/HelixNotes.git
synced 2026-07-24 07:45:57 +02:00
Added:
- v1 completions (OpenAI compatible) and testing connection
- Add API key handling for Ollama and v1 completions if required
Co-authored-by: midhun kumar <midh0001@student.monash.edu>
Reviewed-on: https://codeberg.org/ArkHost/HelixNotes/pulls/74
This commit is contained in:
+7
-1
@@ -351,8 +351,14 @@ export async function setAiSettings(
|
||||
model: string,
|
||||
writingStyle: string | null,
|
||||
baseUrl: string | null = null,
|
||||
ollamaApiKey: string | null = null,
|
||||
openaiCompatibleBaseUrl: string | null = null,
|
||||
openaiCompatibleApiKey: string | null = null,
|
||||
): Promise<void> {
|
||||
return invoke("set_ai_settings", { provider, apiKey, model, writingStyle, baseUrl });
|
||||
return invoke("set_ai_settings", {
|
||||
provider, apiKey, model, writingStyle, baseUrl,
|
||||
ollamaApiKey, openaiCompatibleBaseUrl, openaiCompatibleApiKey,
|
||||
});
|
||||
}
|
||||
|
||||
export async function testAiConnection(): Promise<void> {
|
||||
|
||||
Reference in New Issue
Block a user