-
Notifications
You must be signed in to change notification settings - Fork 152
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
199 additions
and
3,187 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2,846 changes: 9 additions & 2,837 deletions
2,846
...inference/v1beta1/testdata/test-deployment-create-deployment-with-wait-flag.cassette.yaml
Large diffs are not rendered by default.
Oops, something went wrong.
51 changes: 11 additions & 40 deletions
51
...spaces/inference/v1beta1/testdata/test-deployment-create-deployment-with-wait-flag.golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,14 @@ | ||
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲 | ||
🟩🟩🟩 STDOUT️ 🟩🟩🟩️ | ||
ID 8625d6ae-7e86-4ffc-99b8-f3cedd2a53a2 | ||
Name cli-llm-laughing-wescoff | ||
ProjectID 894cc948-1194-4357-9320-57cefcb7b0e5 | ||
Status ready | ||
NodeType L4 | ||
Size 1 | ||
MinSize 1 | ||
MaxSize 1 | ||
ModelName meta/llama-2-7b-chat:fp16 | ||
CreatedAt few seconds ago | ||
UpdatedAt few seconds ago | ||
Region fr-srr | ||
🎲🎲🎲 EXIT CODE: 1 🎲🎲🎲 | ||
🟥🟥🟥 STDERR️️ 🟥🟥🟥️ | ||
Resource out of stock 'L4' | ||
|
||
Endpoints: | ||
ID URL DISABLE AUTH | ||
49609c7e-e93e-4fc4-b800-0b7a2204f7ac https://8625d6ae-7e86-4ffc-99b8-f3cedd2a53a2.ifr.fr-srr.scw.cloud false | ||
🟩🟩🟩 JSON STDOUT 🟩🟩🟩 | ||
Hint: | ||
Try again later :-) | ||
🟥🟥🟥 JSON STDERR 🟥🟥🟥 | ||
{ | ||
"id": "8625d6ae-7e86-4ffc-99b8-f3cedd2a53a2", | ||
"name": "cli-llm-laughing-wescoff", | ||
"project_id": "894cc948-1194-4357-9320-57cefcb7b0e5", | ||
"status": "ready", | ||
"tags": [], | ||
"node_type": "L4", | ||
"endpoints": [ | ||
{ | ||
"id": "49609c7e-e93e-4fc4-b800-0b7a2204f7ac", | ||
"url": "https://8625d6ae-7e86-4ffc-99b8-f3cedd2a53a2.ifr.fr-srr.scw.cloud", | ||
"public_access": {}, | ||
"disable_auth": false | ||
} | ||
], | ||
"size": 1, | ||
"min_size": 1, | ||
"max_size": 1, | ||
"error_message": null, | ||
"model_name": "meta/llama-2-7b-chat:fp16", | ||
"created_at": "1970-01-01T00:00:00.0Z", | ||
"updated_at": "1970-01-01T00:00:00.0Z", | ||
"region": "fr-srr" | ||
"message": "resource out of stock 'L4'", | ||
"error": { | ||
"resource": "L4" | ||
}, | ||
"hint": "Try again later :-)" | ||
} |
69 changes: 69 additions & 0 deletions
69
...espaces/inference/v1beta1/testdata/test-deployment-create-simple-deployment.cassette.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
--- | ||
version: 1 | ||
interactions: | ||
- request: | ||
body: '{"id":"d76467d6-ab64-4a28-be5e-5e4c7c72c826","name":"cli-llm-gallant-euler","project_id":"d3520a52-2c75-4ba0-bda8-82dd087f07f2","status":"creating","tags":[],"node_type":"L4","endpoints":[{"id":"c1e652a2-349e-4be0-86c1-2835f2a8f4bc","url":"https://d76467d6-ab64-4a28-be5e-5e4c7c72c826.ifr.fr-par.scw.cloud","public_access":{},"disable_auth":false}],"size":0,"min_size":1,"max_size":1,"error_message":null,"model_name":"meta/llama-3-8b-instruct:bf16","created_at":"2024-05-28T13:26:57.601436Z","updated_at":null,"region":"fr-par"}' | ||
form: {} | ||
headers: | ||
Content-Type: | ||
- application/json | ||
User-Agent: | ||
- scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.2; darwin; amd64) cli-e2e-test | ||
url: https://api.scaleway.com/llm-inference/v1beta1/regions/fr-par/deployments | ||
method: POST | ||
response: | ||
body: '{"id":"d76467d6-ab64-4a28-be5e-5e4c7c72c826","name":"cli-llm-gallant-euler","project_id":"d3520a52-2c75-4ba0-bda8-82dd087f07f2","status":"creating","tags":[],"node_type":"L4","endpoints":[{"id":"c1e652a2-349e-4be0-86c1-2835f2a8f4bc","url":"https://d76467d6-ab64-4a28-be5e-5e4c7c72c826.ifr.fr-par.scw.cloud","public_access":{},"disable_auth":false}],"size":0,"min_size":1,"max_size":1,"error_message":null,"model_name":"meta/llama-3-8b-instruct:bf16","created_at":"2024-05-28T13:26:57.601436Z","updated_at":null,"region":"fr-par"}' | ||
headers: | ||
Content-Length: | ||
- "529" | ||
Content-Security-Policy: | ||
- default-src 'none'; frame-ancestors 'none' | ||
Content-Type: | ||
- application/json | ||
Date: | ||
- Tue, 28 May 2024 13:26:57 GMT | ||
Server: | ||
- Scaleway API Gateway (fr-par-1;edge02) | ||
Strict-Transport-Security: | ||
- max-age=63072000 | ||
X-Content-Type-Options: | ||
- nosniff | ||
X-Frame-Options: | ||
- DENY | ||
X-Request-Id: | ||
- 07cb539e-e4ad-4252-ab5f-16245230d431 | ||
status: 200 OK | ||
code: 200 | ||
duration: "" | ||
- request: | ||
body: '{"id":"d76467d6-ab64-4a28-be5e-5e4c7c72c826","name":"cli-llm-gallant-euler","project_id":"d3520a52-2c75-4ba0-bda8-82dd087f07f2","status":"deleting","tags":[],"node_type":"L4","endpoints":[{"id":"c1e652a2-349e-4be0-86c1-2835f2a8f4bc","url":"https://d76467d6-ab64-4a28-be5e-5e4c7c72c826.ifr.fr-par.scw.cloud","public_access":{},"disable_auth":false}],"size":0,"min_size":1,"max_size":1,"error_message":null,"model_name":"meta/llama-3-8b-instruct:bf16","created_at":"2024-05-28T13:26:57.601436Z","updated_at":"2024-05-28T13:26:57.956172Z","region":"fr-par"}' | ||
form: {} | ||
headers: | ||
User-Agent: | ||
- scaleway-sdk-go/v1.0.0-beta.7+dev (go1.22.2; darwin; amd64) cli-e2e-test | ||
url: https://api.scaleway.com/llm-inference/v1beta1/regions/fr-par/deployments/d76467d6-ab64-4a28-be5e-5e4c7c72c826 | ||
method: DELETE | ||
response: | ||
body: '{"id":"d76467d6-ab64-4a28-be5e-5e4c7c72c826","name":"cli-llm-gallant-euler","project_id":"d3520a52-2c75-4ba0-bda8-82dd087f07f2","status":"deleting","tags":[],"node_type":"L4","endpoints":[{"id":"c1e652a2-349e-4be0-86c1-2835f2a8f4bc","url":"https://d76467d6-ab64-4a28-be5e-5e4c7c72c826.ifr.fr-par.scw.cloud","public_access":{},"disable_auth":false}],"size":0,"min_size":1,"max_size":1,"error_message":null,"model_name":"meta/llama-3-8b-instruct:bf16","created_at":"2024-05-28T13:26:57.601436Z","updated_at":"2024-05-28T13:26:57.956172Z","region":"fr-par"}' | ||
headers: | ||
Content-Length: | ||
- "554" | ||
Content-Security-Policy: | ||
- default-src 'none'; frame-ancestors 'none' | ||
Content-Type: | ||
- application/json | ||
Date: | ||
- Tue, 28 May 2024 13:26:57 GMT | ||
Server: | ||
- Scaleway API Gateway (fr-par-1;edge02) | ||
Strict-Transport-Security: | ||
- max-age=63072000 | ||
X-Content-Type-Options: | ||
- nosniff | ||
X-Frame-Options: | ||
- DENY | ||
X-Request-Id: | ||
- 9e7a4132-952b-442c-91ba-328397ea80ea | ||
status: 200 OK | ||
code: 200 | ||
duration: "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
93 changes: 0 additions & 93 deletions
93
...es/inference/v1beta1/testdata/test-deployment-create-single-public-endpoint.cassette.yaml
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.