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:
|
2025-12-11 15:21:57 -08:00
|
|
|
- model: openai/gpt-4o-mini
|
|
|
|
|
access_key: $OPENAI_API_KEY
|
|
|
|
|
default: true
|
|
|
|
|
|
|
|
|
|
- model: openai/gpt-4o
|
|
|
|
|
access_key: $OPENAI_API_KEY
|
|
|
|
|
routing_preferences:
|
|
|
|
|
- name: code understanding
|
|
|
|
|
description: understand and explain existing code snippets, functions, or libraries
|
2024-12-06 14:37:33 -08:00
|
|
|
|
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_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
|