You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit cd54e26
Browse filesBrowse the repository at this point in the historyBrowse files
fix(agent): route GPT-5+ model-service FQNs to Responses (#7358)
## Summary
Route Databricks Unity Catalog model services to OpenAI Responses when
their service name matches GPT-5 or newer. These models can reject tools
plus reasoning on Chat Completions.
Match only the service component, using the existing family-token
boundaries and a numeric major version. Catalog and schema names cannot
select the protocol. Keep neutral effort capabilities and the full model
ID unchanged; other services still use MLflow Chat Completions.
Keep the Rust and desktop resolvers in sync, add shared boundary cases
and a captured-HTTP regression for completion and summarization, and
update the documented FQN rule.
### Related issue
No duplicate found in searches for “FQN responses” PRs or “astra”
issues. Related: #6918 introduced Unity Catalog discovery.
Originating conversation:
buzz://message?channel=0b881928-a3a6-4c01-b981-8e64268f01ce&id=770949343bc96a9ed88acd90a1b37d358a0efc52c79237d0fdb491ce02b8d4ed
### Testing
No live Databricks inference test. The gateway must accept the full
model-service ID on its OpenAI Responses route; this remains the
integration risk.
The local `just ci` attempt exceeded its five-minute deadline during
`mobile-check`, so the full repository gate was not completed. All
push-hook checks passed.
Generated with Codex
Signed-off-by: Fizz <400e8babadcee6a7f420103f10a2849d84c4a9c71d5bd04f3948c814216648a3@buzz.block.builderlab.xyz>
Co-authored-by: Fizz <400e8babadcee6a7f420103f10a2849d84c4a9c71d5bd04f3948c814216648a3@buzz.block.builderlab.xyz>
| Databricks AI Gateway v2 |`databricks_v2`|`POST {host}/ai-gateway/{provider}/v1/...`| workspace endpoints and Unity Catalog model-service FQNs; UC FQNs use MLflow Chat Completions |
245
+
| Databricks AI Gateway v2 |`databricks_v2`|`POST {host}/ai-gateway/{provider}/v1/...`| workspace endpoints and Unity Catalog model-service FQNs; UC GPT-5+ services use OpenAI Responses; other UC FQNs use MLflow Chat Completions |
246
246
247
247
The optional `DATABRICKS_MODEL_FILTER` applies only to model discovery. Each comma-separated entry is trimmed and matched against the complete raw ID with case-sensitive `*` (zero or more characters) and `?` (one Unicode character) semantics; patterns are OR-ed. Unset or blank preserves the full authenticated catalog. A nonblank value containing no usable patterns is rejected. This controls picker visibility only; Databricks and Unity Catalog permissions remain the authorization boundary. A filtered-empty result is authoritative and does not restore the built-in fallback models.
Q::Vector{id:"boundary-claude-3-digit-run-anthropic-probe",provider:"anthropic",raw_model_id:"claude-35",note:Some("Probes whether the claude-3 prefix binds a longer digit run ('35').")},
725
748
Q::Vector{id:"boundary-claude-opus-4-70-anthropic-probe",provider:"anthropic",raw_model_id:"claude-opus-4-70",note:Some("Probes whether the claude-opus-4-7 prefix binds a longer digit run ('70').")},
726
749
Q::Vector{id:"boundary-gpt-5-1234-openai-probe",provider:"openai",raw_model_id:"gpt-5-1234",note:Some("Probes a 4-digit run after the gpt-5 stem.")},
750
+
Q::Section{group:"Databricks FQN GPT-5+ Responses routing",note:Some("Only the service component selects Responses; effort capabilities remain neutral.")},
Q::Section{group:"Databricks UC model-family humanization probes (#6918 follow-up)",note:Some("Exact-record and UC-FQN strip probes for the Gemini/DeepSeek/GLM/Grok/Llama/Qwen/Gemma/Inkling families surfaced by UC discovery.")},
728
770
Q::Vector{id:"dbv2-gemini-3-1-flash-image-exact-record-probe",provider:"databricks_v2",raw_model_id:"databricks-gemini-3-1-flash-image",note:Some("Probes the Gemini 3.1 Flash Image endpoint record and label.")},
729
771
Q::Vector{id:"dbv2-gemini-3-5-flash-exact-record-probe",provider:"databricks_v2",raw_model_id:"databricks-gemini-3-5-flash",note:Some("Probes the Gemini 3.5 Flash endpoint record and label.")},
@@ -844,7 +886,7 @@ mod tests {
844
886
}
845
887
846
888
#[test]
847
-
fncorpus_has_exactly_140_executable_vectors(){
889
+
fncorpus_has_exactly_158_executable_vectors(){
848
890
// Locks the vector count so a silent INPUTS edit can't quietly drop
849
891
// coverage; must equal the gate in the TS harness
850
892
// (modelCapabilitiesCorpus.test.mjs).
@@ -853,7 +895,7 @@ mod tests {
853
895
.filter(|q| matches!(q,Q::Vector{ .. }))
854
896
.count();
855
897
assert_eq!(
856
-
vectors,140,
898
+
vectors,158,
857
899
"corpus executable-vector count changed; update this gate deliberately"
Copy file name to clipboardExpand all lines: desktop/src/features/agents/AGENTS.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -306,7 +306,7 @@ with a TypeScript lookup table or an id comparison in a component.
306
306
refresh only local persona/team/managed-agent caches; they must never
307
307
invalidate the remote relay directory.
308
308
309
-
17.**Databricks model discovery has one shared catalog authority.** Desktop and ACP call the shared `buzz-agent` discovery library; Desktop passes the effective merged `DATABRICKS_MODEL_FILTER` explicitly, and the library applies it to raw workspace endpoint IDs and Unity Catalog model-service FQNs after the additive union. A successful filtered-empty catalog is authoritative: it stays empty, disables switching, and never falls through to configured or known-model fallback. UC FQNs are catalog data and always use the MLflow Chat Completions route, regardless of family-looking text in their components. Global Defaults preserves the discovered model ID as the selected value while its closed trigger renders the provider-scoped display label; do not force the raw persisted ID over that label.
309
+
17. **Databricks model discovery has one shared catalog authority.** Desktop and ACP call the shared `buzz-agent` discovery library; Desktop passes the effective merged `DATABRICKS_MODEL_FILTER` explicitly, and the library applies it to raw workspace endpoint IDs and Unity Catalog model-service FQNs after the additive union. A successful filtered-empty catalog is authoritative: it stays empty, disables switching, and never falls through to configured or known-model fallback. UC FQNs retain neutral effort capabilities. A boundary-matched GPT-5-or-newer family in the service-name component selects OpenAI Responses so tools can coexist with reasoning; other FQNs use MLflow Chat Completions. Catalog/schema components never influence routing. Keep this route-only rule identical in the Rust and TypeScript capability interpreters. Global Defaults preserves the discovered model ID as the selected value while its closed trigger renders the provider-scoped display label; do not force the raw persisted ID over that label.
0 commit comments