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 #351

Merged
merged 5 commits into from
Nov 8, 2024
Merged
Show file tree
Hide file tree
Changes from 3 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
11 changes: 9 additions & 2 deletions .mock/definition/__package__.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2023,6 +2023,13 @@ types:
- map<string, unknown>
source:
openapi: openapi/openapi.yaml
TaskCommentAuthorsItem:
discriminated: false
union:
- integer
- map<string, unknown>
source:
openapi: openapi/openapi.yaml
Task:
properties:
id:
Expand Down Expand Up @@ -2101,8 +2108,8 @@ types:
type: optional<integer>
docs: Project ID for this task
comment_authors:
type: optional<list<integer>>
docs: List of comment authors' IDs for this task
type: optional<list<TaskCommentAuthorsItem>>
docs: List of comment authors for this task
source:
openapi: openapi/openapi.yaml
Workspace:
Expand Down
105 changes: 105 additions & 0 deletions .mock/definition/model_providers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,31 @@ service:
auth: false
base-path: ''
endpoints:
list:
path: /api/model-provider-connections/
method: GET
auth: true
docs: >
Get all model provider connections created by the user in the current
organization.
display-name: Get model provider connections
response:
docs: ''
type: list<root.ModelProviderConnection>
examples:
- response:
body:
- provider: OpenAI
api_key: api_key
deployment_name: deployment_name
endpoint: endpoint
scope: Organization
organization: 1
created_by: 1
created_at: '2024-01-15T09:30:00Z'
updated_at: '2024-01-15T09:30:00Z'
audiences:
- public
create:
path: /api/model-provider-connections/
method: POST
Expand Down Expand Up @@ -32,5 +57,85 @@ service:
updated_at: '2024-01-15T09:30:00Z'
audiences:
- public
get:
path: /api/model-provider-connections/{pk}
method: GET
auth: true
docs: |
Get a model provider connection by ID.
path-parameters:
pk:
type: integer
docs: Model Provider Connection ID
display-name: Get model provider connection
response:
docs: ''
type: root.ModelProviderConnection
examples:
- path-parameters:
pk: 1
response:
body:
provider: OpenAI
api_key: api_key
deployment_name: deployment_name
endpoint: endpoint
scope: Organization
organization: 1
created_by: 1
created_at: '2024-01-15T09:30:00Z'
updated_at: '2024-01-15T09:30:00Z'
audiences:
- public
delete:
path: /api/model-provider-connections/{pk}
method: DELETE
auth: true
docs: |
Delete a model provider connection by ID.
path-parameters:
pk:
type: integer
docs: Model Provider Connection ID
display-name: Delete model provider connection
examples:
- path-parameters:
pk: 1
audiences:
- public
update:
path: /api/model-provider-connections/{pk}
method: PATCH
auth: true
docs: |
Update a model provider connection by ID.
path-parameters:
pk:
type: integer
docs: Model Provider Connection ID
display-name: Update model provider connection
request:
body: root.ModelProviderConnection
response:
docs: ''
type: root.ModelProviderConnection
examples:
- path-parameters:
pk: 1
request:
provider: OpenAI
response:
body:
provider: OpenAI
api_key: api_key
deployment_name: deployment_name
endpoint: endpoint
scope: Organization
organization: 1
created_by: 1
created_at: '2024-01-15T09:30:00Z'
updated_at: '2024-01-15T09:30:00Z'
audiences:
- public
source:
openapi: openapi/openapi.yaml
208 changes: 104 additions & 104 deletions poetry.lock

Large diffs are not rendered by default.

Loading