support generic openai api
This commit is contained in:
@@ -56,7 +56,8 @@ Produce only the {TARGET_LANG} translation, without any additional explanations
|
||||
|
||||
export const useSettingsStore = defineStore('settings', () => {
|
||||
const isDark = useLocalStorage('is-dark', false);
|
||||
const ollamaApiAddress = useLocalStorage('ollama-api-address', 'http://localhost:11434');
|
||||
const apiBaseUrl = useLocalStorage('api-base-url', 'http://localhost:11434/v1');
|
||||
const apiKey = useLocalStorage('api-key', '');
|
||||
const modelName = useLocalStorage('model-name', 'translategemma:12b');
|
||||
const enableStreaming = useLocalStorage('enable-streaming', true);
|
||||
const systemPromptTemplate = useLocalStorage('system-prompt-template', DEFAULT_TEMPLATE);
|
||||
@@ -84,7 +85,8 @@ export const useSettingsStore = defineStore('settings', () => {
|
||||
|
||||
return {
|
||||
isDark,
|
||||
ollamaApiAddress,
|
||||
apiBaseUrl,
|
||||
apiKey,
|
||||
modelName,
|
||||
enableStreaming,
|
||||
systemPromptTemplate,
|
||||
|
||||
Reference in New Issue
Block a user