Skip to content

Breaking change: modelRegistry.getApiKey renamed in pi SDK ≥0.63 #3

@rfgamaral

Description

@rfgamaral

ctx.modelRegistry.getApiKey() was renamed to getApiKeyAndHeaders() in pi SDK 0.63+. pi-reflect calls the old method in two places:

  • extensions/index.ts:110
  • extensions/reflect.ts:1044

This causes a runtime error when running /reflect:

Extension "command:reflect" error: ctx.modelRegistry.getApiKey is not a function

Versions:

  • pi SDK: 0.63.2
  • pi-reflect: 1.1.0 (latest main, commit 2213624)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions