-
Notifications
You must be signed in to change notification settings - Fork 98
calls+watcher: route guardian copy and watch handlers through call-site IDs #26105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -82,7 +82,7 @@ export async function generateGuardianCopy( | |
| [userMessage(prompt)], | ||
| undefined, | ||
| undefined, | ||
| { signal, config: { modelIntent: "latency-optimized" } }, | ||
| { signal, config: { callSite: "guardianQuestionCopy" } }, | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🚩 AGENTS.md rule about modelIntent may need updating for callSite migration The AGENTS.md states: "Use Was this helpful? React with 👍 or 👎 to provide feedback. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
This migration drops the previous Useful? React with 👍 / 👎. |
||
| ); | ||
|
|
||
| const text = extractText(response); | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -164,7 +164,7 @@ async function generateCommentary(session: WatchSession): Promise<void> { | |
| systemPrompt, | ||
| { | ||
| config: { | ||
| modelIntent: "latency-optimized", | ||
| callSite: "watchCommentary", | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🔴 callSite not passed to getConfiguredProvider() for watchCommentary, causing potential provider/model mismatch Same pattern as in guardian-question-copy: Prompt for agentsWas this helpful? React with 👍 or 👎 to provide feedback. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Replacing Useful? React with 👍 / 👎. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
The request now declares a call-site ID, but watch generation still obtains its transport via Useful? React with 👍 / 👎. |
||
| max_tokens: 200, | ||
| }, | ||
| }, | ||
|
|
@@ -329,7 +329,7 @@ export async function generateSummary(session: WatchSession): Promise<void> { | |
| systemPrompt, | ||
| { | ||
| config: { | ||
| modelIntent: "quality-optimized", | ||
| callSite: "watchSummary", | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🔴 callSite not passed to getConfiguredProvider() for watchSummary, causing potential provider/model mismatch Same pattern as the other two call sites: Prompt for agentsWas this helpful? React with 👍 or 👎 to provide feedback. |
||
| max_tokens: 2000, | ||
| }, | ||
| }, | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔴 callSite not passed to resolveConfiguredProvider(), causing potential provider/model mismatch
The PR migrates
guardian-question-copy.tsfrommodelIntenttocallSitein thesendMessageconfig (line 85), but theresolveConfiguredProvider()call atassistant/src/calls/guardian-question-copy.ts:55is not updated to pass thecallSite.resolveConfiguredProvider(callSite?)uses the call-site config to select the correct provider whencallSiteis given (assistant/src/providers/provider-send-message.ts:67-68), but falls back to the legacyservices.inference.providerpath when it's omitted. If a user configuresllm.callSites.guardianQuestionCopy.provider = "openai", the code selects the default provider (e.g. Anthropic) at line 55 butRetryProvider.normalizeViaCallSiteresolves an OpenAI model from the callSite config — sending an incompatible model name to the wrong provider, causing an API error and forcing a fallback.Prompt for agents
Was this helpful? React with 👍 or 👎 to provide feedback.