This commit is contained in:
parent
ad5fb2fa7b
commit
c62109c022
|
|
@ -184,7 +184,7 @@ export default function WorkspaceLayout({ children }: WorkspaceLayoutProps) {
|
|||
includeWorkspaceInstructions:
|
||||
workspace?.include_workspace_instructions || true,
|
||||
embeddingsProvider:
|
||||
(workspace?.embeddings_provider as "openai" | "local") || "openai"
|
||||
(workspace?.embeddings_provider as "openai" | "local" | "bge-m3") || "bge-m3"
|
||||
})
|
||||
|
||||
setLoading(false)
|
||||
|
|
|
|||
|
|
@ -54,21 +54,21 @@ export const fetchHostedModels = async (profile: Tables<"profiles">) => {
|
|||
|
||||
export const fetchOllamaModels = async () => {
|
||||
try {
|
||||
// const response = await fetch(
|
||||
// process.env.NEXT_PUBLIC_OLLAMA_URL + "/api/tags"
|
||||
// )
|
||||
|
||||
const response = await fetch(
|
||||
process.env.NEXT_PUBLIC_OLLAMA_URL + "/api/tags",
|
||||
{
|
||||
method: "GET",
|
||||
headers: {
|
||||
"Authorization": "Bearer token-abc123",
|
||||
"Content-Type": "application/json"
|
||||
}
|
||||
}
|
||||
process.env.NEXT_PUBLIC_OLLAMA_URL + "/api/tags"
|
||||
)
|
||||
|
||||
// const response = await fetch(
|
||||
// process.env.NEXT_PUBLIC_OLLAMA_URL + "/api/tags",
|
||||
// {
|
||||
// method: "GET",
|
||||
// headers: {
|
||||
// "Authorization": "Bearer token-abc123",
|
||||
// "Content-Type": "application/json"
|
||||
// }
|
||||
// }
|
||||
// )
|
||||
|
||||
if (!response.ok) {
|
||||
throw new Error(`LLM server is not responding.`)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue