@pulumiverse/scaleway
Version:
A Pulumi package for creating and managing Scaleway cloud resources.
60 lines • 2.08 kB
JavaScript
;
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.getModelOutput = exports.getModel = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* The `scaleway.inference.Model` data source allows you to retrieve information about an inference model available in the Scaleway Inference API, either by providing the model's `name` or its `modelId`.
*
* ## Example Usage
*
* ### Basic
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scaleway from "@pulumi/scaleway";
*
* const myModel = scaleway.inference.getModel({
* name: "meta/llama-3.1-8b-instruct:fp8",
* });
* ```
*/
function getModel(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("scaleway:inference/getModel:getModel", {
"modelId": args.modelId,
"name": args.name,
"url": args.url,
}, opts);
}
exports.getModel = getModel;
/**
* The `scaleway.inference.Model` data source allows you to retrieve information about an inference model available in the Scaleway Inference API, either by providing the model's `name` or its `modelId`.
*
* ## Example Usage
*
* ### Basic
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scaleway from "@pulumi/scaleway";
*
* const myModel = scaleway.inference.getModel({
* name: "meta/llama-3.1-8b-instruct:fp8",
* });
* ```
*/
function getModelOutput(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("scaleway:inference/getModel:getModel", {
"modelId": args.modelId,
"name": args.name,
"url": args.url,
}, opts);
}
exports.getModelOutput = getModelOutput;
//# sourceMappingURL=getModel.js.map