From 96b300f100d5b2049add8af31f4807c016c7aac7 Mon Sep 17 00:00:00 2001 From: Adil Hafeez Date: Mon, 3 Feb 2025 15:03:38 -0800 Subject: [PATCH] fix more --- demos/currency_exchange/arch_config.yaml | 12 ++++++------ demos/spotify_demo/arch_config.yaml | 11 +++++------ demos/stock_exchange/arch_config.yaml | 10 ++++------ 3 files changed, 15 insertions(+), 18 deletions(-) diff --git a/demos/currency_exchange/arch_config.yaml b/demos/currency_exchange/arch_config.yaml index de1dbab8..89a9e65b 100644 --- a/demos/currency_exchange/arch_config.yaml +++ b/demos/currency_exchange/arch_config.yaml @@ -12,6 +12,11 @@ llm_providers: provider_interface: openai model: gpt-4o +endpoints: + frankfurther_api: + endpoint: api.frankfurter.dev + protocol: https + system_prompt: | You are a helpful assistant. @@ -26,7 +31,7 @@ prompt_targets: description: Get currency exchange rate from USD to other currencies parameters: - name: currency_symbol - description: Currency symbol + description: currency symbol to convert from USD required: true type: str in_path: true @@ -42,11 +47,6 @@ prompt_targets: name: frankfurther_api path: /v1/currencies -endpoints: - frankfurther_api: - endpoint: api.frankfurter.dev - protocol: https - tracing: random_sampling: 100 trace_arch_internal: true diff --git a/demos/spotify_demo/arch_config.yaml b/demos/spotify_demo/arch_config.yaml index d7f4f37b..d5b143bc 100644 --- a/demos/spotify_demo/arch_config.yaml +++ b/demos/spotify_demo/arch_config.yaml @@ -4,6 +4,11 @@ listener: port: 8080 #If you configure port 443, you'll need to update the listener with tls_certificates message_format: huggingface +endpoints: + spotify: + endpoint: api.spotify.com + 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. @@ -28,9 +33,3 @@ prompt_targets: http_headers: Authorization: "Bearer $SPOTIFY_CLIENT_KEY" description: browse new album releases in spotify - -endpoints: - spotify: - endpoint: api.spotify.com:443 - protocol: https - http_host: api.spotify.com diff --git a/demos/stock_exchange/arch_config.yaml b/demos/stock_exchange/arch_config.yaml index b0cb97e4..6d80658b 100644 --- a/demos/stock_exchange/arch_config.yaml +++ b/demos/stock_exchange/arch_config.yaml @@ -12,14 +12,13 @@ llm_providers: provider_interface: openai model: gpt-4o -system_prompt: | - You are a helpful assistant. - endpoints: twelvedata_api: - endpoint: api.twelvedata.com:443 + endpoint: api.twelvedata.com protocol: https - http_host: api.twelvedata.com + +system_prompt: | + You are a helpful assistant. prompt_guards: input_guards: @@ -65,7 +64,6 @@ prompt_targets: system_prompt: | You are a helpful stock exchange assistant. You are given stock symbol along with its historical data in json format. Your task is to parse the data and present it in a human-readable format. Keep the details to highlevel only and be concise. - tracing: random_sampling: 100 trace_arch_internal: true