LlamaEdge / search-api-server

An extended version of the LlamaEdge API Server with web search. In development.
3 stars 0 forks source link

`{"detail":{"error":"API Key is missing."}}` | What kind of API key do I need to apply for? #4

Open alabulei1 opened 2 months ago

alabulei1 commented 2 months ago

The command to run the serach-api-server.wasm .

wasmedge --dir .:.  --env LLAMA_LOG="info" \
  --nn-preload default:GGML:AUTO:Meta-Llama-3.1-8B-Instruct-Q5_K_M.gguf  \
  search-api-server.wasm \
  --ctx-size 4096,384 \
  --prompt-template llama-3-chat \
  --model-name Llama-3-8b

Error message:


[2024-09-06 23:30:19.143] [wasi_logging_stdout] [info] insert_search_results: search_api_server::search in src/search/mod.rs:32: performing search
{"detail":{"error":"API Key is missing."}}
[2024-09-06 23:30:21.971] [wasi_logging_stdout] [error] search_server: search_api_server::search::tavily_search in src/search/tavily_search.rs:25: google_parser: No results returned from server
[2024-09-06 23:30:21.972] [wasi_logging_stdout] [error] stdout: llama_core::search in /Users/sam/.cargo/registry/src/index.crates.io-6f17d22bba15001f/llama-core-0.16.1/src/search.rs:253: perform_search: No results returned from server
[2024-09-06 23:30:21.972] [wasi_logging_stdout] [error] insert_search_results: search_api_server::search in src/search/mod.rs:96: Failed to perform search on SEACH_CONFIG: When calling parse_into_results: No results returned from server
[2024-09-06 23:30:21.972] [wasi_logging_stdout] [error] response: search_api_server::error in src/error.rs:25: 500 Internal Server Error: Failed to perform search on SEACH_CONFIG: When calling parse_into_results: No results returned from server
[2024-09-06 23:30:21.972] [wasi_logging_stdout] [error] stdout: search_api_server in src/main.rs:557: version: HTTP/1.1, body_size: 133, status: 500, is_informational: false, is_success: false, is_redirection: false, is_client_error: false, is_server_error: true
``
alabulei1 commented 2 months ago

@suryyyansh Please take a look. Thank you.

suryyyansh commented 2 months ago

@alabulei1 Please supply your Tavily API key. That's the default search API used by the search API server.

alabulei1 commented 2 months ago

Got it. Could you add an instruction about the Tavily API?

suryyyansh commented 2 months ago

@alabulei1 will do.