Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
alabulei1 opened this issue Sep 6, 2024 · 4 comments

Comments

@alabulei1
Copy link

alabulei1 commented Sep 6, 2024

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
Copy link
Author

@suryyyansh Please take a look. Thank you.

@suryyyansh
Copy link
Collaborator

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

@alabulei1
Copy link
Author

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

@suryyyansh
Copy link
Collaborator

@alabulei1 will do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants