Skip to content

Commit

Permalink
fix backend type
Browse files Browse the repository at this point in the history
  • Loading branch information
marikaner committed Aug 30, 2024
1 parent 458cf24 commit 287ed87
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/gen-ai-hub/src/utils/deployment-resolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,10 @@ async function getAllDeployments(
* @internal
*/
export function extractModel(
// TODO: this type does not seem to be correct (backend_details => backendDetails), check why
deployment: AiDeployment
): FoundationModel | undefined {
const model = deployment.details?.resources?.backendDetails?.model;
const model = deployment.details?.resources?.backend_details?.model;
if (isFoundationModel(model)) {
return model;
}
Expand Down

0 comments on commit 287ed87

Please sign in to comment.