Skip to content

Commit

Permalink
(chore): update to github workflows and slim redundant overrides
Browse files Browse the repository at this point in the history
  • Loading branch information
dsinghvi committed Mar 8, 2024
1 parent ad188fe commit dd1d39e
Show file tree
Hide file tree
Showing 9 changed files with 83 additions and 240 deletions.
68 changes: 0 additions & 68 deletions .github/workflows/ci.yml

This file was deleted.

17 changes: 17 additions & 0 deletions .github/workflows/fern-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Fern Check

on:
push: {}

jobs:
run:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3

- name: Install Fern
run: npm install -g fern-api

- name: Check Fern API is valid
run: fern check
29 changes: 29 additions & 0 deletions .github/workflows/python-sdk.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Release Python SDK

on:
workflow_dispatch:
inputs:
version:
description: "The version of the SDK that you would like to release"
required: true
type: string

jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3

- name: Setup node
uses: actions/setup-node@v3

- name: Download Fern
run: npm install -g fern-api

- name: Release Python SDK
env:
FERN_TOKEN: ${{ secrets.FERN_TOKEN }}
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
run: |
fern generate --api api --group python-sdk --log-level debug --version ${{ inputs.version }}
29 changes: 29 additions & 0 deletions .github/workflows/ts-sdk.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Release TypeScript SDK

on:
workflow_dispatch:
inputs:
version:
description: "The version of the SDK that you would like to release"
required: true
type: string

jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3

- name: Setup node
uses: actions/setup-node@v3

- name: Download Fern
run: npm install -g fern-api

- name: Release TypeScript SDK
env:
FERN_TOKEN: ${{ secrets.FERN_TOKEN }}
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
run: |
fern generate --api api --group ts-sdk --log-level debug --version ${{ inputs.version }}
40 changes: 8 additions & 32 deletions fern/apis/api/generators.yml
Original file line number Diff line number Diff line change
@@ -1,36 +1,12 @@
default-group: local
groups:
local:
generators:
- name: fernapi/fern-python-sdk
version: 0.11.9
output:
location: local-file-system
path: ../../../python
config:
client_class_name: OctoAI
improved_imports: true
pydantic_config:
use_str_enums: true
- name: fernapi/fern-typescript-node-sdk
version: 0.12.5
output:
location: local-file-system
path: ../../../typescript
config:
namespaceExport: OctoAI
skipResponseValidation: true
allowCustomFetcher: true
includeApiReference: true
smart-casing: true
python-sdk:
generators:
- name: fernapi/fern-python-sdk
version: 0.11.9
output:
location: pypi
package-name: "octoai"
token: ${PYPI_TOKEN}
# output:
# location: pypi
# package-name: "octoai"
# token: ${PYPI_TOKEN}
github:
repository: octoml/octoai-python-sdk-fern
mode: pull-request
Expand All @@ -44,10 +20,10 @@ groups:
generators:
- name: fernapi/fern-typescript-node-sdk
version: 0.12.5
output:
location: npm
package-name: "@octoai/octoai-node-client"
token: ${NPM_TOKEN}
# output:
# location: npm
# package-name: "@octoai/octoai-node-client"
# token: ${NPM_TOKEN}
github:
repository: octoml/octoai-typescript-sdk-fern
mode: pull-request
Expand Down
56 changes: 0 additions & 56 deletions fern/apis/asset-lake/openapi/openapi-overrides.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,59 +32,3 @@ paths:
servers:
- url: https://api.octoai.cloud
x-name: Default
components:
schemas:
Asset:
x-fern-type-name: Asset
AssetType:
x-fern-type-name: AssetType
BaseEngine:
x-fern-type-name: BaseEngine
CheckpointData:
x-fern-type-name: CheckpointData
CompleteAssetUploadRequest:
x-fern-type-name: CompleteAssetUploadRequest
CompleteAssetUploadResponse:
x-fern-type-name: CompleteAssetUploadResponse
CreateAssetRequest:
x-fern-type-name: CreateAssetRequest
CreateAssetResponse:
x-fern-type-name: CreateAssetResponse
DataType:
x-fern-type-name: DataType
DeleteAssetResponse:
x-fern-type-name: DeleteAssetResponse
FileData:
x-fern-type-name: FileData
FileExtension:
x-fern-type-name: FileExtension
FileFormat:
x-fern-type-name: FileFormat
FileStructure:
x-fern-type-name: FileStructure
HTTPValidationError:
x-fern-type-name: HTTPValidationError
LatentData:
x-fern-type-name: LatentData
ListAssetsResponse:
x-fern-type-name: ListAssetsResponse
LoraData:
x-fern-type-name: LoraData
NoTransferApi:
x-fern-type-name: NoTransferApi
PresignedUrlTransferApi:
x-fern-type-name: PresignedUrlTransferApi
RetrieveAssetResponse:
x-fern-type-name: RetrieveAssetResponse
Status:
x-fern-type-name: Status
StsTransferApi:
x-fern-type-name: StsTransferApi
TextualInversionData:
x-fern-type-name: TextualInversionData
TransferApiType:
x-fern-type-name: TransferApiType
VAEData:
x-fern-type-name: VAEData
ValidationError:
x-fern-type-name: ValidationError
22 changes: 0 additions & 22 deletions fern/apis/fine-tuning/openapi/openapi-overrides.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,34 +34,12 @@ paths:
x-name: Default
components:
schemas:
BaseEngine:
x-fern-type-name: BaseEngine
CreateTuneRequest:
x-fern-type-name: CreateTuneRequest
HTTPValidationError:
x-fern-type-name: HTTPValidationError
ListTunesResponse:
x-fern-type-name: ListTunesResponse
LoraTune-Input:
x-fern-type-name: LoraTune
LoraTune-Output:
x-fern-type-name: LoraTune
LoraTuneCheckpoint:
x-fern-type-name: LoraTuneCheckpoint
LoraTuneFile:
x-fern-type-name: LoraTuneFile
TextToSpeechLatentTune:
x-fern-type-name: TextToSpeechLatentTune
Tune:
x-fern-type-name: Tune
properties:
details:
x-fern-type-name: TuneDetails
TuneResult:
x-fern-type-name: TuneResult
TuneStatus:
x-fern-type-name: TuneStatus
TuneType:
x-fern-type-name: TuneType
ValidationError:
x-fern-type-name: ValidationError
18 changes: 0 additions & 18 deletions fern/apis/image-gen/openapi/openapi-overrides.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,21 +33,3 @@ paths:
/healthcheck:
get:
x-fern-ignore: true
components:
schemas:
HTTPValidationError:
x-fern-type-name: HTTPValidationError
ImageEncoding:
x-fern-type-name: ImageEncoding
ImageGeneration:
x-fern-type-name: ImageGeneration
ImageGenerationRequest:
x-fern-type-name: ImageGenerationRequest
ImageGenerationResponse:
x-fern-type-name: ImageGenerationResponse
SDXLStyles:
x-fern-type-name: SDXLStyles
Scheduler:
x-fern-type-name: Scheduler
ValidationError:
x-fern-type-name: ValidationError
44 changes: 0 additions & 44 deletions fern/apis/text-gen/openapi/openapi-overrides.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,47 +11,3 @@ paths:
servers:
- url: https://text.octoai.cloud
x-name: TextGen
components:
schemas:
ChatCompletionChoice:
x-fern-type-name: ChatCompletionChoice
ChatCompletionChunk:
x-fern-type-name: ChatCompletionChunk
ChatCompletionChunkChoice:
x-fern-type-name: ChatCompletionChunkChoice
ChatCompletionDelta:
x-fern-type-name: ChatCompletionDelta
ChatCompletionRequestExt:
x-fern-type-name: ChatCompletionRequestExt
ChatCompletionRequestExtVLLM:
x-fern-type-name: ChatCompletionRequestExtVLLM
ChatCompletionResponse:
x-fern-type-name: ChatCompletionResponse
ChatCompletionResponseFormat:
x-fern-type-name: ChatCompletionResponseFormat
ChatFnCall:
x-fern-type-name: ChatFnCall
ChatMessage:
x-fern-type-name: ChatMessage
CompletionChoice:
x-fern-type-name: CompletionChoice
CompletionResponse:
x-fern-type-name: CompletionResponse
CreateChatCompletionRequest:
x-fern-type-name: CreateChatCompletionRequest
CreateCompletionRequest:
x-fern-type-name: CreateCompletionRequest
ErrorResponse:
x-fern-type-name: ErrorResponse
FinishReason:
x-fern-type-name: FinishReason
Function:
x-fern-type-name: Function
HTTPValidationError:
x-fern-type-name: HTTPValidationError
LogProbs:
x-fern-type-name: LogProbs
UsageStats:
x-fern-type-name: UsageStats
ValidationError:
x-fern-type-name: ValidationError

0 comments on commit dd1d39e

Please sign in to comment.