mirror of
https://github.com/katanemo/plano.git
synced 2026-04-26 01:06:25 +02:00
* adding canonical tracing support via bright-staff * improved formatting for tools in the traces * removing anthropic from the currency exchange demo * using Envoy to transport traces, not calling OTEL directly * moving otel collcetor cluster outside tracing if/else * minor fixes to not write to the OTEL collector if tracing is disabled * fixed PR comments and added more trace attributes * more fixes based on PR comments * more clean up based on PR comments --------- Co-authored-by: Salman Paracha <salmanparacha@MacBook-Pro-342.local>
58 lines
1.6 KiB
YAML
58 lines
1.6 KiB
YAML
version: v0.1.0
|
|
|
|
listeners:
|
|
ingress_traffic:
|
|
address: 0.0.0.0
|
|
port: 10000
|
|
message_format: openai
|
|
timeout: 30s
|
|
|
|
llm_providers:
|
|
- 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
|
|
|
|
endpoints:
|
|
frankfurther_api:
|
|
endpoint: api.frankfurter.dev
|
|
protocol: https
|
|
|
|
system_prompt: |
|
|
You are a helpful assistant. Only respond to queries related to currency exchange. If there are any other questions, I can't help you.
|
|
|
|
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
|
|
description: currency symbol to convert from USD
|
|
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
|