Comments: refs are served ids, with no protocol-2 or own-connection cases left
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2 files changed
+4
-7
No files matched your search
+2
-4
@@ -647,10 +647,8 @@ export class AcpAgent {
|
|||||||
return Boolean(connection && this.instanceConnection && connection === this.instanceConnection)
|
return Boolean(connection && this.instanceConnection && connection === this.instanceConnection)
|
||||||
}
|
}
|
||||||
|
|
||||||
/** A model the instance names, as a ref on its connection here; undefined when there is none.
|
/** A model the instance names, as a ref on its connection here (`<login>/<served>`, which resolves
|
||||||
* `<login>/<served>` resolves to the served model under its ref now (`deepseek/x` for the
|
* to the served id, provider/refs.ts); undefined when this link has no instance. */
|
||||||
* served `deepseek/x`; the instance's `<login>/<served>` where a connection of the user's own
|
|
||||||
* has the provider's name), and to the same model for a bare id from an instance that does not speak protocol 2. */
|
|
||||||
private refFor(served: unknown): string | undefined {
|
private refFor(served: unknown): string | undefined {
|
||||||
if (typeof served !== "string" || !served.trim() || !this.instanceConnection) return undefined
|
if (typeof served !== "string" || !served.trim() || !this.instanceConnection) return undefined
|
||||||
return `${this.instanceConnection}/${served.trim()}`
|
return `${this.instanceConnection}/${served.trim()}`
|
||||||
|
|||||||
+2
-3
@@ -281,9 +281,8 @@ function currentModel(): string | undefined {
|
|||||||
return typeof value === "string" && value ? value : undefined
|
return typeof value === "string" && value ? value : undefined
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Each served model's ref once this login is in place (by provider, `deepseek/x`; an
|
/** Each served model's ref once this login is in place: its served id (`deepseek/x`). Read from
|
||||||
* instance that does not speak protocol 2, or a provider a connection of the user's own is named after, keeps
|
* the configuration as it now is. */
|
||||||
* `<connection>/<id>`). Read from the configuration as it now is. */
|
|
||||||
async function refsOf(connection: string): Promise<Record<string, string>> {
|
async function refsOf(connection: string): Promise<Record<string, string>> {
|
||||||
try {
|
try {
|
||||||
const { loadConfig } = await import("../config/load.ts")
|
const { loadConfig } = await import("../config/load.ts")
|
||||||
|
|||||||
Reference in new issue
Block a user