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-1324: Add batch-prediction prompts endpoints #17

Merged
merged 12 commits into from
Aug 20, 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
2 changes: 1 addition & 1 deletion fern/fern.config.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"organization": "humansignal-org",
"version": "0.37.6"
"version": "0.39.1"
}
8 changes: 4 additions & 4 deletions fern/generators.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ groups:
mode: push
# mode: pull-request
config:
inline_request_params: false
inline_request_params: true
package_name: label_studio_sdk
client:
class_name: LabelStudioBase
Expand All @@ -38,7 +38,7 @@ groups:
pandas: '>=0.24.0'
requests: '>=2.22.0'
Pillow: '>=10.0.1'
nltk: '^3.8.2'
nltk: '^3.8.1'
ujson: '>=5.8.0'
ijson: '>=3.2.3'
appdirs: '>=1.4.3'
Expand All @@ -54,13 +54,13 @@ groups:
- public
generators:
- name: fernapi/fern-python-sdk
version: 2.14.0-rc0
version: 3.10.3
output:
location: local-file-system
path: ../label_studio_sdk
smart-casing: true
config:
inline_request_params: false
inline_request_params: true
package_name: label_studio_sdk
client:
class_name: LabelStudioBase
Expand Down
50 changes: 50 additions & 0 deletions fern/openapi/overrides.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,54 @@
paths:
/api/prompts/:
get:
$ref: "./resources/prompts.yaml#/paths/~1api~1prompts/get"
x-fern-sdk-group-name: prompts
x-fern-sdk-method-name: list
x-fern-audiences:
- public
post:
$ref: "./resources/prompts.yaml#/paths/~1api~1prompts/post"
x-fern-sdk-group-name: prompts
x-fern-sdk-method-name: create
x-fern-audiences:
- public

/api/prompts/{id}/versions:
post:
$ref: "./resources/prompts.yaml#/paths/~1api~1prompts~1{id}~1versions/post"
x-fern-sdk-group-name:
- prompts
- versions
x-fern-sdk-method-name: create
x-fern-audiences:
- public

/api/prompts/{id}/versions/{version_id}/inference-runs:
post:
$ref: "./resources/prompts.yaml#/paths/~1api~1prompts~1{id}~1versions~1{version_id}~1inference-runs/post"
x-fern-sdk-group-name:
- prompts
- versions
x-fern-sdk-method-name: create_run
x-fern-audiences:
- public

/api/model-provider-connections/:
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-run/batch-predictions:
post:
$ref: "./resources/prompts.yaml#/paths/~1api~1model-run~1batch-predictions/post"
x-fern-sdk-group-name: prompts
x-fern-sdk-method-name: batch_predictions
x-fern-audiences:
- public

/api/comments/:
get:
$ref: "./resources/comments.yaml#/paths/~1api~1comments/get"
Expand Down
Loading