Merge branch 'adil/add_in_path_support' into adil/update_getting_started_guide

This commit is contained in:
Adil Hafeez 2024-12-05 14:57:18 -08:00
commit 1a352166d8
7 changed files with 150 additions and 4 deletions

View file

@ -92,6 +92,8 @@ properties:
type: array
items:
type: string
in_path:
type: boolean
additionalProperties: false
required:
- name
@ -108,6 +110,11 @@ properties:
required:
- name
- path
http_method:
type: string
enum:
- GET
- POST
system_prompt:
type: string
additionalProperties: false

View file

@ -49,7 +49,9 @@ def validate_and_render_schema():
if "prompt_targets" in config_yaml:
for prompt_target in config_yaml["prompt_targets"]:
name = prompt_target.get("endpoint", {}).get("name", "")
name = prompt_target.get("endpoint", {}).get("name", None)
if not name:
continue
if name not in inferred_clusters:
inferred_clusters[name] = {
"name": name,