-
Notifications
You must be signed in to change notification settings - Fork 388
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
dphuang2
committed
Mar 10, 2024
1 parent
43973c5
commit 7903e37
Showing
18 changed files
with
1,174 additions
and
5 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
1 change: 1 addition & 0 deletions
1
generator/konfig-docs/src/pages/sdk/baseten/typescript/_description.mdx
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 @@ | ||
REST API for management of Baseten resources |
7 changes: 7 additions & 0 deletions
7
generator/konfig-docs/src/pages/sdk/baseten/typescript/_getting-started.mdx
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,7 @@ | ||
```typescript index.ts | ||
import { Baseten } from 'baseten-typescript-sdk'; | ||
|
||
const baseten = new Baseten({ | ||
// You must use the specify the scheme 'Api-Key' in the Authorization header. For example, `Authorization: Api-Key <Your_Api_Key>` | ||
apiKeyAuth: "AUTHORIZATION", | ||
}) |
130 changes: 130 additions & 0 deletions
130
generator/konfig-docs/src/pages/sdk/baseten/typescript/index.tsx
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,130 @@ | ||
import React from "react"; | ||
import { HttpMethodsEnum } from "konfig-lib/dist/forEachOperation"; | ||
// @ts-ignore | ||
import Description from "./_description.mdx"; | ||
// @ts-ignore | ||
import GettingStarted from "./_getting-started.mdx"; | ||
import { Sdk } from "@site/src/components/Sdk"; | ||
|
||
export default function BasetenTypeScriptSdk() { | ||
return ( | ||
<Sdk | ||
sdkName="baseten-typescript-sdk" | ||
metaDescription="At Baseten we provide all the infrastructure you need to deploy and serve ML models performantly, scalably, and cost-efficiently.Get started in minutes, and avoid getting tangled in complex deployment processes. You can deploy best-in-class open-source models and take advantage of optimized serving for your own models.We also utilize horizontally scalable services that take you from prototype to production, with light-speed inference on infra that autoscales with your traffic.Best in class doesn't mean breaking the bank. Run your models on the best infrastructure without running up costs by taking advantage of our scaled-to-zero feature." | ||
company="Baseten" | ||
// Missing serviceName | ||
logo="https://raw.githubusercontent.com/konfig-sdks/openapi-examples/HEAD/baseten/logo.png" | ||
clientNameCamelCase="baseten" | ||
homepage="baseten.co" | ||
lastUpdated={new Date("2024-03-10T03:44:41.210Z")} | ||
faviconUrl="https://raw.githubusercontent.com/konfig-sdks/openapi-examples/HEAD/baseten/favicon.png" | ||
// Missing contactUrl | ||
// Missing contactEmail | ||
previewLinkImage="https://raw.githubusercontent.com/konfig-sdks/openapi-examples/HEAD/baseten/imagePreview.png" | ||
GettingStarted={GettingStarted} | ||
Description={Description} | ||
methods={[ | ||
{ | ||
"url": "/v1/secrets", | ||
"method": "getAllSecrets", | ||
"httpMethod": HttpMethodsEnum.GET, | ||
"tag": "Secret", | ||
"typeScriptTag": "secret", | ||
"description": "Gets all secrets", | ||
"parameters": [], | ||
"responses": [ | ||
{ | ||
"statusCode": "200", | ||
"description": "A list of Baseten secrets." | ||
} | ||
] | ||
}, | ||
{ | ||
"url": "/v1/secrets", | ||
"method": "upsertNewSecret", | ||
"httpMethod": HttpMethodsEnum.POST, | ||
"tag": "Secret", | ||
"typeScriptTag": "secret", | ||
"description": "Upserts a secret", | ||
"parameters": [ | ||
{ | ||
"name": "name", | ||
"schema": "string", | ||
"required": true, | ||
"description": "" | ||
}, | ||
{ | ||
"name": "value", | ||
"schema": "string", | ||
"required": true, | ||
"description": "" | ||
} | ||
], | ||
"responses": [ | ||
{ | ||
"statusCode": "200", | ||
"description": "A Baseten secret. Note that we do not support retrieving secret values." | ||
} | ||
] | ||
}, | ||
{ | ||
"url": "/v1/models/{model_id}/deployments/development", | ||
"method": "getDevelopmentDetails", | ||
"httpMethod": HttpMethodsEnum.GET, | ||
"tag": "Deployment", | ||
"typeScriptTag": "deployment", | ||
"description": "Gets a model's development deployment", | ||
"parameters": [], | ||
"responses": [ | ||
{ | ||
"statusCode": "200", | ||
"description": "A deployment of a model." | ||
} | ||
] | ||
}, | ||
{ | ||
"url": "/v1/models/{model_id}/deployments/production", | ||
"method": "getProductionDetails", | ||
"httpMethod": HttpMethodsEnum.GET, | ||
"tag": "Deployment", | ||
"typeScriptTag": "deployment", | ||
"description": "Gets a model's production deployment", | ||
"parameters": [], | ||
"responses": [ | ||
{ | ||
"statusCode": "200", | ||
"description": "A deployment of a model." | ||
} | ||
] | ||
}, | ||
{ | ||
"url": "/v1/models/{model_id}/deployments/{deployment_id}", | ||
"method": "detailsGet", | ||
"httpMethod": HttpMethodsEnum.GET, | ||
"tag": "Deployment", | ||
"typeScriptTag": "deployment", | ||
"description": "Gets a model's deployment by id", | ||
"parameters": [], | ||
"responses": [ | ||
{ | ||
"statusCode": "200", | ||
"description": "A deployment of a model." | ||
} | ||
] | ||
} | ||
] | ||
} | ||
language="TypeScript" | ||
apiTitle="Baseten management API" | ||
apiBaseUrl="https://api.baseten.co" | ||
apiVersion="1.0.0" | ||
endpoints={4} | ||
sdkMethods={8} | ||
schemas={6} | ||
parameters={2} | ||
difficulty="Very Easy" | ||
openApiRaw="https://raw.githubusercontent.com/konfig-sdks/openapi-examples/HEAD/baseten/openapi.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
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
Oops, something went wrong.