Skip to content

Commit 09e05e6

Browse files
committed
remove comment
1 parent 25f0452 commit 09e05e6

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

docs/resources/inference_custom_model.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ resource "scaleway_inference_deployment" "main" {
5151

5252
## Attributes Reference
5353

54+
In addition to all arguments above, the following attributes are exported:
55+
5456
- `id` - The unique identifier of the custom model.
5557
- `tags` - Tags associated with the model.
5658
- `status` - The current status of the model (e.g., ready, error, etc.).

internal/services/inference/custom_model.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,8 +193,8 @@ func ResourceCustomModelRead(ctx context.Context, d *schema.ResourceData, m inte
193193
return diag.FromErr(err)
194194
}
195195

196-
_ = d.Set("parameter_size_bits", model.ParameterSizeBits)
197-
_ = d.Set("size_bits", model.SizeBytes)
196+
_ = d.Set("parameter_size_bits", int32(model.ParameterSizeBits))
197+
_ = d.Set("size_bits", int64(model.SizeBytes))
198198
_ = d.Set("name", model.Name)
199199
_ = d.Set("status", model.Status)
200200
_ = d.Set("description", model.Description)

internal/services/inference/waiter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ func waitForModel(ctx context.Context, inferenceAPI *inference.API, region scw.R
3131
retryInterval = *transport.DefaultWaitRetryInterval
3232
}
3333

34-
model, err := inferenceAPI.WaitForCustomModel(inference.WaitForCustomModelRequest{ //TODO add pointer
34+
model, err := inferenceAPI.WaitForCustomModel(inference.WaitForCustomModelRequest{
3535
ModelID: id,
3636
Region: region,
3737
RetryInterval: &retryInterval,

0 commit comments

Comments
 (0)