Commit 9104635
authored
fix(evals): select query endpoint from edgeUrl vs url (#275)
## Summary
- select eval baseline query endpoint deterministically based on config
- when `eval.edgeUrl` is set, use `/v1/query/_apl` on edge
- when `eval.edgeUrl` is not set, use `/v1/datasets/_apl` on API URL
- remove runtime fallback chaining between endpoints
## Verification
- `pnpm build` (packages/ai)
- `npm run eval -- support-agent-e2e-tool-use` (examples/kitchen-sink)
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> **Medium Risk**
> Changes how eval case data is queried by switching base URL and API
path depending on whether `config.eval.edgeUrl` is explicitly set, which
could affect eval retrieval if deployments rely on the previous endpoint
behavior.
>
> **Overview**
> `findEvaluationCases` now selects the Axiom query endpoint
deterministically: if `config.eval.edgeUrl` is explicitly set it uses
the edge query route (`/v1/query/_apl`), otherwise it queries via the
standard API URL (`/v1/datasets/_apl`).
>
> The error handling for failed queries is also hardened to tolerate
missing `payload.message`/`resp.statusText` and emit a fallback message.
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
70a594b. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->1 parent c2c4efe commit 9104635
1 file changed
+13
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
96 | | - | |
| 96 | + | |
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
106 | | - | |
107 | | - | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
108 | 115 | | |
109 | 116 | | |
110 | 117 | | |
111 | 118 | | |
112 | 119 | | |
113 | 120 | | |
114 | 121 | | |
115 | | - | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
116 | 125 | | |
117 | 126 | | |
118 | 127 | | |
| |||
0 commit comments