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