Skip to content

Commit 22332e5

Browse files
committed
fix(plugins/anthropic): resolver
1 parent 8d4d50f commit 22332e5

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

plugins/anthropic/src/index.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,12 @@ export const anthropic = (options?: PluginOptions) => {
108108
},
109109
resolve: (actionType: ActionType, name: string) => {
110110
if (actionType === 'model') {
111-
return cachedActions.find((action) => action.name === name);
111+
return claudeModel(
112+
name,
113+
client
114+
);
112115
}
116+
return undefined;
113117
},
114118
list: () => {
115119
return cachedActions.map((action) => ({

0 commit comments

Comments
 (0)