Skip to content

Commit

Permalink
Merge pull request #13 from snowflakedb/pupr
Browse files Browse the repository at this point in the history
Release Pupr Spec for server 8.35
  • Loading branch information
sfc-gh-zli authored Sep 9, 2024
2 parents 04311b9 + 767d18b commit f9a3497
Show file tree
Hide file tree
Showing 37 changed files with 22,359 additions and 2,578 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
{
"info": {
"_postman_id": "8c7639b8-0913-41ab-8291-5c350558eac3",
"_postman_id": "d5d32182-94a9-46bb-8290-4d46af3d59b9",
"name": "Cortex Inference API",
"description": "OpenAPI 3.0 specification for the Cortex REST API\n\nContact Support:\n Name: Snowflake, Inc.\n Email: [email protected]",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
"_exporter_id": "28868798",
"_collection_link": "https://snowflake.postman.co/workspace/SnowApi-PuPr~785f3044-d2f3-4a33-8fea-8707898185ed/collection/28868798-8c7639b8-0913-41ab-8291-5c350558eac3?action=share&source=collection_link&creator=28868798"
"_exporter_id": "30608011"
},
"item": [
{
Expand All @@ -31,12 +30,12 @@
},
{
"key": "Accept",
"value": "application/json"
"value": "text/event-stream"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"model\": \"<string>\",\n \"messages\": [\n {\n \"content\": \"<string>\"\n }\n ],\n \"stream\": false,\n \"temperature\": 0,\n \"top_p\": 1,\n \"max_tokens\": 4096\n}",
"raw": "{\n \"model\": \"<string>\",\n \"messages\": [\n {\n \"content\": \"<string>\"\n }\n ],\n \"temperature\": 0,\n \"top_p\": 1,\n \"max_tokens\": 4096\n}",
"options": {
"raw": {
"headerFamily": "json",
Expand Down Expand Up @@ -70,12 +69,17 @@
},
{
"key": "Accept",
"value": "application/json"
"value": "text/event-stream"
},
{
"key": "Authorization",
"value": "Bearer <token>",
"description": "Added as a part of security scheme: bearer"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"model\": \"<string>\",\n \"messages\": [\n {\n \"content\": \"<string>\"\n }\n ],\n \"stream\": false,\n \"temperature\": 0,\n \"top_p\": 1,\n \"max_tokens\": 4096\n}",
"raw": "{\n \"model\": \"<string>\",\n \"messages\": [\n {\n \"content\": \"<string>\"\n }\n ],\n \"temperature\": 0,\n \"top_p\": 1,\n \"max_tokens\": 4096\n}",
"options": {
"raw": {
"headerFamily": "json",
Expand All @@ -98,15 +102,15 @@
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"_postman_previewlanguage": "text",
"header": [
{
"key": "Content-Type",
"value": "application/json"
"value": "text/event-stream"
}
],
"cookie": [],
"body": "{\n \"choices\": [\n {\n \"message\": {\n \"content\": \"<string>\"\n }\n },\n {\n \"message\": {\n \"content\": \"<string>\"\n }\n }\n ],\n \"usage\": {\n \"prompt_tokens\": \"<integer>\",\n \"completion_tokens\": \"<integer>\",\n \"total_tokens\": \"<integer>\"\n }\n}"
"body": "{}"
},
{
"name": "Bad Request. The request payload is invalid or malformed. This happens if the application didn't send the correct request payload. The response body may include the error code and message indicating the actual cause. The application must reconstruct the r",
Expand All @@ -120,11 +124,16 @@
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer <token>",
"description": "Added as a part of security scheme: bearer"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"model\": \"<string>\",\n \"messages\": [\n {\n \"content\": \"<string>\"\n }\n ],\n \"stream\": false,\n \"temperature\": 0,\n \"top_p\": 1,\n \"max_tokens\": 4096\n}",
"raw": "{\n \"model\": \"<string>\",\n \"messages\": [\n {\n \"content\": \"<string>\"\n }\n ],\n \"temperature\": 0,\n \"top_p\": 1,\n \"max_tokens\": 4096\n}",
"options": {
"raw": {
"headerFamily": "json",
Expand Down Expand Up @@ -177,11 +186,16 @@
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer <token>",
"description": "Added as a part of security scheme: bearer"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"model\": \"<string>\",\n \"messages\": [\n {\n \"content\": \"<string>\"\n }\n ],\n \"stream\": false,\n \"temperature\": 0,\n \"top_p\": 1,\n \"max_tokens\": 4096\n}",
"raw": "{\n \"model\": \"<string>\",\n \"messages\": [\n {\n \"content\": \"<string>\"\n }\n ],\n \"temperature\": 0,\n \"top_p\": 1,\n \"max_tokens\": 4096\n}",
"options": {
"raw": {
"headerFamily": "json",
Expand Down Expand Up @@ -234,11 +248,16 @@
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer <token>",
"description": "Added as a part of security scheme: bearer"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"model\": \"<string>\",\n \"messages\": [\n {\n \"content\": \"<string>\"\n }\n ],\n \"stream\": false,\n \"temperature\": 0,\n \"top_p\": 1,\n \"max_tokens\": 4096\n}",
"raw": "{\n \"model\": \"<string>\",\n \"messages\": [\n {\n \"content\": \"<string>\"\n }\n ],\n \"temperature\": 0,\n \"top_p\": 1,\n \"max_tokens\": 4096\n}",
"options": {
"raw": {
"headerFamily": "json",
Expand Down Expand Up @@ -291,11 +310,16 @@
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer <token>",
"description": "Added as a part of security scheme: bearer"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"model\": \"<string>\",\n \"messages\": [\n {\n \"content\": \"<string>\"\n }\n ],\n \"stream\": false,\n \"temperature\": 0,\n \"top_p\": 1,\n \"max_tokens\": 4096\n}",
"raw": "{\n \"model\": \"<string>\",\n \"messages\": [\n {\n \"content\": \"<string>\"\n }\n ],\n \"temperature\": 0,\n \"top_p\": 1,\n \"max_tokens\": 4096\n}",
"options": {
"raw": {
"headerFamily": "json",
Expand Down Expand Up @@ -348,11 +372,16 @@
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer <token>",
"description": "Added as a part of security scheme: bearer"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"model\": \"<string>\",\n \"messages\": [\n {\n \"content\": \"<string>\"\n }\n ],\n \"stream\": false,\n \"temperature\": 0,\n \"top_p\": 1,\n \"max_tokens\": 4096\n}",
"raw": "{\n \"model\": \"<string>\",\n \"messages\": [\n {\n \"content\": \"<string>\"\n }\n ],\n \"temperature\": 0,\n \"top_p\": 1,\n \"max_tokens\": 4096\n}",
"options": {
"raw": {
"headerFamily": "json",
Expand Down Expand Up @@ -405,11 +434,16 @@
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer <token>",
"description": "Added as a part of security scheme: bearer"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"model\": \"<string>\",\n \"messages\": [\n {\n \"content\": \"<string>\"\n }\n ],\n \"stream\": false,\n \"temperature\": 0,\n \"top_p\": 1,\n \"max_tokens\": 4096\n}",
"raw": "{\n \"model\": \"<string>\",\n \"messages\": [\n {\n \"content\": \"<string>\"\n }\n ],\n \"temperature\": 0,\n \"top_p\": 1,\n \"max_tokens\": 4096\n}",
"options": {
"raw": {
"headerFamily": "json",
Expand Down Expand Up @@ -462,11 +496,16 @@
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer <token>",
"description": "Added as a part of security scheme: bearer"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"model\": \"<string>\",\n \"messages\": [\n {\n \"content\": \"<string>\"\n }\n ],\n \"stream\": false,\n \"temperature\": 0,\n \"top_p\": 1,\n \"max_tokens\": 4096\n}",
"raw": "{\n \"model\": \"<string>\",\n \"messages\": [\n {\n \"content\": \"<string>\"\n }\n ],\n \"temperature\": 0,\n \"top_p\": 1,\n \"max_tokens\": 4096\n}",
"options": {
"raw": {
"headerFamily": "json",
Expand Down Expand Up @@ -519,11 +558,16 @@
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer <token>",
"description": "Added as a part of security scheme: bearer"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"model\": \"<string>\",\n \"messages\": [\n {\n \"content\": \"<string>\"\n }\n ],\n \"stream\": false,\n \"temperature\": 0,\n \"top_p\": 1,\n \"max_tokens\": 4096\n}",
"raw": "{\n \"model\": \"<string>\",\n \"messages\": [\n {\n \"content\": \"<string>\"\n }\n ],\n \"temperature\": 0,\n \"top_p\": 1,\n \"max_tokens\": 4096\n}",
"options": {
"raw": {
"headerFamily": "json",
Expand Down Expand Up @@ -575,6 +619,16 @@
]
}
],
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{bearerToken}}",
"type": "string"
}
]
},
"variable": [
{
"key": "baseUrl",
Expand Down
Loading

0 comments on commit f9a3497

Please sign in to comment.