Skip to content

Commit 5b693d1

Browse files
committed
Uses this.heroku instead of a new APIClient instance
1 parent 3432396 commit 5b693d1

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/commands/ai/models/info.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import {flags} from '@heroku-cli/command'
33
import {Args, ux} from '@oclif/core'
44
import Command from '../../../lib/base'
55
import type {ModelResource} from '@heroku/ai'
6-
import {APIClient} from '@heroku-cli/command'
6+
77
import * as Heroku from '@heroku-cli/schema'
88

99
export default class Info extends Command {
@@ -74,8 +74,7 @@ export default class Info extends Command {
7474
} else {
7575
const provisionedModelsInfo: Record<string, string | undefined>[] = []
7676
const inferenceRegex = /inference/
77-
const herokuClient = new APIClient(this.config)
78-
const {body: addonsResponse} = await herokuClient.get<Heroku.AddOn>(`/apps/${app}/addons`, {
77+
const {body: addonsResponse} = await this.heroku.get<Heroku.AddOn>(`/apps/${app}/addons`, {
7978
headers: {'Accept-Expansion': 'plan'},
8079
})
8180

0 commit comments

Comments
 (0)