Skip to content

Commit

Permalink
add baseten
Browse files Browse the repository at this point in the history
  • Loading branch information
dphuang2 committed Mar 10, 2024
1 parent 43973c5 commit 7903e37
Show file tree
Hide file tree
Showing 18 changed files with 1,174 additions and 5 deletions.
2 changes: 2 additions & 0 deletions generator/konfig-docs/redirects.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
"/sdk/ably/platform/": "/sdk/ably/platform/typescript/",
"/sdk/flickr": "/sdk/flickr/typescript/",
"/sdk/flickr/": "/sdk/flickr/typescript/",
"/sdk/baseten": "/sdk/baseten/typescript/",
"/sdk/baseten/": "/sdk/baseten/typescript/",
"/sdk/dev": "/sdk/dev/typescript/",
"/sdk/dev/": "/sdk/dev/typescript/",
"/sdk/digital-ocean": "/sdk/digital-ocean/typescript/",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
REST API for management of Baseten resources
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 generator/konfig-docs/src/pages/sdk/baseten/typescript/index.tsx
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"
/>
);
}

30 changes: 30 additions & 0 deletions generator/konfig-docs/src/pages/sdk/sdk-links.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,36 @@
"favicon": "https://raw.githubusercontent.com/konfig-sdks/openapi-examples/HEAD/flickr/favicon.png",
"apiVersion": "1.0.0"
},
{
"index": "baseten/typescript",
"link": "/sdk/baseten/typescript/",
"homepage": "baseten.co",
"categories": [
"developer_tools",
"automation",
"collaboration",
"media",
"cloud",
"open_source",
"machine_learning",
"deployment",
"scalability",
"cost_efficiency",
"llm",
"stable_diffusion",
"tts",
"text_to_audio",
"text_to_speech",
"text_to_image",
"image_to_video",
"image_classification",
"text_embeddings",
"audio_to_text",
"image_to_text"
],
"favicon": "https://raw.githubusercontent.com/konfig-sdks/openapi-examples/HEAD/baseten/favicon.png",
"apiVersion": "1.0.0"
},
{
"index": "dev/typescript",
"link": "/sdk/dev/typescript/",
Expand Down
3 changes: 2 additions & 1 deletion sdks/db/custom-request-last-fetched.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"spotify.com_1.0.0": "2024-03-10T03:00:30.735Z",
"elevenlabs.com": "2024-03-10T03:00:30.735Z",
"digitalocean.com": "2024-03-10T03:00:30.735Z",
"dev.to": "2024-03-10T03:00:30.735Z"
"dev.to": "2024-03-10T03:00:30.735Z",
"baseten.co": "2024-03-10T03:37:50.389Z"
}
}
Loading

0 comments on commit 7903e37

Please sign in to comment.