2025-05-31 01:11:14 -07:00
|
|
|
version: v0.1.0
|
2024-12-06 14:37:33 -08:00
|
|
|
|
2025-02-14 19:28:10 -08:00
|
|
|
listeners:
|
|
|
|
|
ingress_traffic:
|
|
|
|
|
address: 0.0.0.0
|
|
|
|
|
port: 10000
|
|
|
|
|
message_format: openai
|
|
|
|
|
timeout: 30s
|
2024-12-06 14:37:33 -08:00
|
|
|
|
|
|
|
|
llm_providers:
|
|
|
|
|
- name: gpt-4o
|
|
|
|
|
access_key: $OPENAI_API_KEY
|
2025-01-24 16:34:11 -08:00
|
|
|
provider_interface: openai
|
2024-12-06 14:37:33 -08:00
|
|
|
model: gpt-4o
|
|
|
|
|
|
2025-02-06 11:48:09 -08:00
|
|
|
endpoints:
|
|
|
|
|
frankfurther_api:
|
|
|
|
|
endpoint: api.frankfurter.dev
|
|
|
|
|
protocol: https
|
|
|
|
|
|
2024-12-06 14:37:33 -08:00
|
|
|
system_prompt: |
|
2025-03-04 12:49:13 -08:00
|
|
|
You are a helpful assistant. Only respond to queries related to currency exchange. If there are any other questions, I can't help you.
|
2024-12-06 14:37:33 -08:00
|
|
|
|
|
|
|
|
prompt_guards:
|
|
|
|
|
input_guards:
|
|
|
|
|
jailbreak:
|
|
|
|
|
on_exception:
|
|
|
|
|
message: Looks like you're curious about my abilities, but I can only provide assistance for currency exchange.
|
|
|
|
|
|
|
|
|
|
prompt_targets:
|
|
|
|
|
- name: currency_exchange
|
|
|
|
|
description: Get currency exchange rate from USD to other currencies
|
|
|
|
|
parameters:
|
|
|
|
|
- name: currency_symbol
|
2025-02-06 11:48:09 -08:00
|
|
|
description: currency symbol to convert from USD
|
2024-12-06 14:37:33 -08:00
|
|
|
required: true
|
|
|
|
|
type: str
|
|
|
|
|
in_path: true
|
|
|
|
|
endpoint:
|
|
|
|
|
name: frankfurther_api
|
|
|
|
|
path: /v1/latest?base=USD&symbols={currency_symbol}
|
|
|
|
|
system_prompt: |
|
|
|
|
|
You are a helpful assistant. Show me the currency symbol you want to convert from USD.
|
|
|
|
|
|
|
|
|
|
- name: get_supported_currencies
|
|
|
|
|
description: Get list of supported currencies for conversion
|
|
|
|
|
endpoint:
|
|
|
|
|
name: frankfurther_api
|
|
|
|
|
path: /v1/currencies
|
|
|
|
|
|
|
|
|
|
tracing:
|
|
|
|
|
random_sampling: 100
|
|
|
|
|
trace_arch_internal: true
|