Skip to content

Commit

Permalink
🌿 add base servers
Browse files Browse the repository at this point in the history
  • Loading branch information
armandobelardo committed Mar 7, 2024
1 parent 93d6faa commit d9fb826
Show file tree
Hide file tree
Showing 5 changed files with 56 additions and 8 deletions.
13 changes: 5 additions & 8 deletions fern/apis/api/definition/api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,9 @@ auth-schemes:
env: OCTOAI_TOKEN

default-environment: Production
# environments:
# Production:
# urls:
# Default: https://api.octoai.cloud
# ImageGen: https://image.octoai.cloud
# TextGen: https://text.octoai.cloud
environments:
Production: https://api.octoai.cloud

Production:
urls:
Default: https://api.octoai.cloud
ImageGen: https://image.octoai.cloud
TextGen: https://text.octoai.cloud
15 changes: 15 additions & 0 deletions fern/apis/asset-lake/openapi/openapi-overrides.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,32 @@ paths:
/v1/assets:
get:
x-fern-sdk-method-name: list
servers:
- url: https://api.octoai.cloud
x-name: Default
post:
x-fern-sdk-method-name: create
servers:
- url: https://api.octoai.cloud
x-name: Default
/v1/assets/{asset_id}:
delete:
x-fern-sdk-method-name: delete
servers:
- url: https://api.octoai.cloud
x-name: Default
/v1/assets/{asset_id}/complete-upload:
post:
x-fern-sdk-method-name: completeUpload
servers:
- url: https://api.octoai.cloud
x-name: Default
/v1/assets/{asset_owner_and_name_or_id}:
get:
x-fern-sdk-method-name: get
servers:
- url: https://api.octoai.cloud
x-name: Default
components:
schemas:
Asset:
Expand Down
15 changes: 15 additions & 0 deletions fern/apis/fine-tuning/openapi/openapi-overrides.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,32 @@ paths:
/v1/tune:
post:
x-fern-sdk-method-name: create
servers:
- url: https://api.octoai.cloud
x-name: Default
/v1/tune/{tune_id}:
get:
x-fern-sdk-method-name: get
servers:
- url: https://api.octoai.cloud
x-name: Default
delete:
x-fern-sdk-method-name: delete
servers:
- url: https://api.octoai.cloud
x-name: Default
/v1/tune/{tune_id}/cancel:
post:
x-fern-sdk-method-name: cancel
servers:
- url: https://api.octoai.cloud
x-name: Default
/v1/tunes:
get:
x-fern-sdk-method-name: list
servers:
- url: https://api.octoai.cloud
x-name: Default
components:
schemas:
BaseEngine:
Expand Down
15 changes: 15 additions & 0 deletions fern/apis/image-gen/openapi/openapi-overrides.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,33 @@ paths:
/generate/ssd:
post:
x-fern-sdk-method-name: generateSsd
servers:
- url: https://image.octoai.cloud
x-name: ImageGen
/generate/controlnet-sdxl:
post:
x-fern-sdk-method-name: generateControlnetSdxl
servers:
- url: https://image.octoai.cloud
x-name: ImageGen
/generate/controlnet-sd15:
post:
x-fern-sdk-method-name: generateControlnetSd15
servers:
- url: https://image.octoai.cloud
x-name: ImageGen
/generate/sdxl:
post:
x-fern-sdk-method-name: generateSdxl
servers:
- url: https://image.octoai.cloud
x-name: ImageGen
/generate/sd:
post:
x-fern-sdk-method-name: generateSd
servers:
- url: https://image.octoai.cloud
x-name: ImageGen
# Hide healthcheck
/healthcheck:
get:
Expand Down
6 changes: 6 additions & 0 deletions fern/apis/text-gen/openapi/openapi-overrides.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,15 @@ paths:
/v1/chat/completions:
post:
x-fern-sdk-method-name: createChatCompletion
servers:
- url: https://text.octoai.cloud
x-name: TextGen
/v1/completions:
post:
x-fern-sdk-method-name: createCompletion
servers:
- url: https://text.octoai.cloud
x-name: TextGen
components:
schemas:
ChatCompletionChoice:
Expand Down

0 comments on commit d9fb826

Please sign in to comment.