Skip to content

Cant use perplexica API (Error: is empty) #1080

@whyaloe

Description

@whyaloe

Fresh install:
docker run -d -p 3004:3000 -v vane-data:/home/vane/data --name vane itzcrazykns1337/vane:latest

provider is set (openrouter):
http://192.168.1.45:3004/api/providers

{
"providers": [
{
"id": "842ef658-523e-49b7-900d-2a24759fd9f6",
"name": "Transformers",
"chatModels": [],
"embeddingModels": [
{
"name": "all-MiniLM-L6-v2",
"key": "Xenova/all-MiniLM-L6-v2"
},
{
"name": "mxbai-embed-large-v1",
"key": "mixedbread-ai/mxbai-embed-large-v1"
},
{
"name": "nomic-embed-text-v1",
"key": "Xenova/nomic-embed-text-v1"
}
]
},
{
"id": "2d5672aa-43f0-4f58-9b4e-455b764f3121",
"name": "openrouter",
"chatModels": [
{
"name": "gpt-4o-mini",
"key": "openai/gpt-4o-mini"
}
],
"embeddingModels": []
}
]
}

Web search is ok

API call is no successful (no answer)

curl -X POST "http://192.168.1.45:3004/api/search"   -H "Content-Type: application/json"   -d '{
  "chatModel": {
    "providerId": "2d5672aa-43f0-4f58-9b4e-455b764f3121",
    "key": "openai/gpt-4o-mini"
  },
 "embeddingModel": {
    "providerId": "842ef658-523e-49b7-900d-2a24759fd9f6",
    "key": "Xenova/all-MiniLM-L6-v2"
  },
  "optimizationMode": "balanced",
  "query": "Is there a first move for White that would result in a win?",
  "stream": false,
   "sources": ["web","academic","discussions"]
  }'

container logs:

Error:  is empty
    at i (.next/server/chunks/607.js:27:62091)
    at <unknown> (.next/server/chunks/136.js:1:3346)
    at Array.map (<anonymous>)
    at q.streamText (.next/server/chunks/136.js:1:3233)
    at async i.research (.next/server/chunks/641.js:541:227)
    at async k.searchAsync (.next/server/app/api/search/route.js:1:1439)
 ⨯ unhandledRejection:  Error:  is empty
    at i (.next/server/chunks/607.js:27:62091)
    at <unknown> (.next/server/chunks/136.js:1:3346)
    at Array.map (<anonymous>)
    at q.streamText (.next/server/chunks/136.js:1:3233)
    at async i.research (.next/server/chunks/641.js:541:227)
    at async k.searchAsync (.next/server/app/api/search/route.js:1:1439)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions