Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
HelgeSverre committed Dec 19, 2023
1 parent 48fac80 commit 9c7d5b0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/services/api.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import axios, { AxiosInstance, AxiosResponse } from 'axios'
import { ref } from 'vue'
import { baseUrl } from './appConfig.ts'

export type GenerateCompletionRequest = {
model: string
Expand Down Expand Up @@ -117,7 +118,7 @@ const API_BASE_URL = 'http://localhost:11434/api'

// Create an Axios instance
const apiClient: AxiosInstance = axios.create({
baseURL: API_BASE_URL,
baseURL: baseUrl.value ?? API_BASE_URL,
headers: {
'Content-Type': 'application/json',
},
Expand Down

0 comments on commit 9c7d5b0

Please sign in to comment.