Linkup provides real-time web search capabilities. With Linkup integration in Friendli, you can easily enhance your AI applications with up-to-date facts, recent events, and current information that goes beyond what your model was trained on. You can use Linkup’s real-time web search through Friendli Serverless Endpoints with just a few simple steps.

How to use

For Playground Testing

  1. Create an account at https://friendli.ai.
  2. Subscribe to the free trial of the Friendli Serverless Endpoints product. (guide)
  3. Go to Serverless Endpoints from your Project and click ‘Try’ button to open the playground.
  4. In the playground, open the Tools panel and select Search the web (Linkup) to test the integration.
linkup-integrated-playground

For SDK/API Usage

  1. Go to https://app.linkup.so, and get your Linkup API key (free tier available).
  2. In Friendli Suite, open Personal settings > Integrations and add your Linkup API key.
In the following code snippet, FRIENDLI_TOKEN refers to your Personal Access Token, which you can obtain from Personal settings > Settings > Tokens (guide).
curl --request POST \
  --url https://api.friendli.ai/serverless/tools/v1/chat/completions \
  --header 'Authorization: Bearer <FRIENDLI_TOKEN>' \
  --header 'Content-Type: application/json' \
  --data '{
  "model": "meta-llama-3.1-8b-instruct",
  "messages": [
    {
      "content": "Find information on the popular movies currently showing in theaters and provide their ratings.",
      "role": "user"
    }
  ],
  "tools": [
    { "type": "linkup:search" }
  ]
}'

Notes & Caveats

  • Playground vs. SDK/API: In the playground, you can test web search functionality using a Linkup-sponsored API key. However, for SDK usage and API calls, you must provide your own Linkup API key.
  • Make sure your Linkup integration is enabled in your Friendli account before calling the API — otherwise the linkup:search tool will error.
  • Linkup and Friendli both have rate limits — handle retries/backoff accordingly.
  • Keep API keys and tokens secret (use environment variables or secret managers).