Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: DIA-1579: Seeded Sample Project and Prompts for Trials #38

Merged
merged 3 commits into from
Nov 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 32 additions & 2 deletions fern/openapi/overrides.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -144,13 +144,40 @@ paths:
- public

/api/model-provider-connections/:
get:
$ref: "./resources/prompts.yaml#/paths/~1api~1model-provider-connections/get"
x-fern-sdk-group-name: model_providers
x-fern-sdk-method-name: list
x-fern-audiences:
- public

post:
$ref: "./resources/prompts.yaml#/paths/~1api~1model-provider-connections/post"
x-fern-sdk-group-name: model_providers
x-fern-sdk-method-name: create
x-fern-audiences:
- public

/api/model-provider-connections/{pk}:
get:
$ref: "./resources/prompts.yaml#/paths/~1api~1model-provider-connections~1{pk}/get"
x-fern-sdk-group-name: model_providers
x-fern-sdk-method-name: get
x-fern-audiences:
- public
patch:
$ref: "./resources/prompts.yaml#/paths/~1api~1model-provider-connections~1{pk}/patch"
x-fern-sdk-group-name: model_providers
x-fern-sdk-method-name: update
x-fern-audiences:
- public
delete:
$ref: "./resources/prompts.yaml#/paths/~1api~1model-provider-connections~1{pk}/delete"
x-fern-sdk-group-name: model_providers
x-fern-sdk-method-name: delete
x-fern-audiences:
- public

/api/model-run/batch-predictions:
post:
$ref: "./resources/prompts.yaml#/paths/~1api~1model-run~1batch-predictions/post"
Expand Down Expand Up @@ -2436,8 +2463,11 @@ components:
comment_authors:
type: array
items:
type: integer
description: List of comment authors' IDs for this task
oneOf:
- type: integer
- type: object
additionalProperties: true
description: List of comment authors for this task
Workspace:
type: object
properties:
Expand Down
70 changes: 70 additions & 0 deletions fern/openapi/resources/prompts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,19 @@ paths:
$ref: "./dashboards.yaml#/components/schemas/KeyIndicatorValue"

/api/model-provider-connections:
get:
summary: Get model provider connections
description: >
Get all model provider connections created by the user in the current organization.
responses:
"200":
description: ""
content:
application/json:
schema:
type: array
items:
$ref: "#/components/schemas/ModelProviderConnection"
post:
summary: Create model provider connection
description: >
Expand All @@ -446,6 +459,63 @@ paths:
application/json:
schema:
$ref: "#/components/schemas/ModelProviderConnection"

/api/model-provider-connections/{pk}:
get:
summary: Get model provider connection
description: >
Get a model provider connection by ID.
parameters:
- name: pk
in: path
description: Model Provider Connection ID
required: true
schema:
type: integer
responses:
"200":
description: ""
content:
application/json:
schema:
$ref: "#/components/schemas/ModelProviderConnection"
patch:
summary: Update model provider connection
description: >
Update a model provider connection by ID.
parameters:
- name: pk
in: path
description: Model Provider Connection ID
required: true
schema:
type: integer
requestBody:
content:
application/json:
schema:
$ref: "#/components/schemas/ModelProviderConnection"
responses:
"200":
description: ""
content:
application/json:
schema:
$ref: "#/components/schemas/ModelProviderConnection"
delete:
summary: Delete model provider connection
description: >
Delete a model provider connection by ID.
parameters:
- name: pk
in: path
description: Model Provider Connection ID
required: true
schema:
type: integer
responses:
"204":
description: ""

/api/model-run/batch-predictions:
post:
Expand Down