diff --git a/demos/spotify_demo/arch_config.yaml b/demos/spotify_demo/arch_config.yaml index d02b54c6..281ef6c3 100644 --- a/demos/spotify_demo/arch_config.yaml +++ b/demos/spotify_demo/arch_config.yaml @@ -10,7 +10,13 @@ endpoints: protocol: https system_prompt: | - You are a music assistant. Extract critical details from the JSON response from Spotify like album images, artist name and artist image and display in a neat HTML-friendly way. Only include artist album cover in the response. + You are a music assistant. Extract critical details from the JSON response from the spotify API. Write markdown with following details of each item, + - album art, scaled down to 25%, use tag + - title + - release date only for albums + - link to spotify + + Make sure each item is separated by
, there are no markdown bullet points and remove any descriptive labels from data. llm_providers: - name: OpenAI @@ -20,7 +26,7 @@ llm_providers: default: true prompt_targets: - - name: browse_new_releases + - name: browse_new_album_releases parameters: - name: country description: the country to select @@ -32,4 +38,18 @@ prompt_targets: path: /v1/browse/new-releases?country={country}&limit=5 http_headers: Authorization: "Bearer $SPOTIFY_CLIENT_KEY" - description: browse new album releases in spotify + description: browse new album releases + + - name: get_podcasts + parameters: + - name: query + description: query for podcast + required: true + type: str + in_path: true + endpoint: + name: spotify + path: /v1/search?q={query}&type=show&limit=5&market=US + http_headers: + Authorization: "Bearer $SPOTIFY_CLIENT_KEY" + description: get podcasts