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-1748: 'Generate labels with AI' button in Project, in SC #43

Open
wants to merge 18 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 10 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
4 changes: 2 additions & 2 deletions fern/fern.config.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"organization": "humansignal-org",
"version": "0.46.8"
}
"version": "0.39.12"
}
9 changes: 5 additions & 4 deletions fern/generators.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ groups:
- public
generators:
- name: fernapi/fern-python-sdk
version: 4.3.10
version: 2.14.0-rc0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

? why 2 major releases backwards??

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch, some weird merge conflict, fixed

output:
location: pypi
package-name: label-studio-sdk
Expand All @@ -33,7 +33,7 @@ groups:
- from: _legacy
imports:
- Client
# pyproject_python_version: '^3.9'
pyproject_python_version: '>=3.9,<4'
extra_dependencies:
pandas: '>=0.24.0'
requests: '>=2.22.0'
Expand All @@ -46,16 +46,17 @@ groups:
xmljson: '0.2.1'
jsonschema: '>=4.23.0'
requests-mock: '1.12.1'
numpy: '<2.0.0'
numpy: '>=1.26.4,<2.0.0'
datamodel-code-generator: '0.26.1'
jsf: '^0.11.2'
# scikit-learn: '1.5.1'
smart-casing: true
python-sdk-local:
audiences:
- public
generators:
- name: fernapi/fern-python-sdk
version: 4.3.10
version: 3.10.3
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here, confused on version change

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

output:
location: local-file-system
path: ../label_studio_sdk
Expand Down
3 changes: 3 additions & 0 deletions fern/openapi/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8982,6 +8982,9 @@ components:
title: Organization
type: integer
nullable: true
prompt:
$ref: "#/components/schemas/Prompt"
nullable: true
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I still think we need to have a product discussion about baking in the assumption 1 project == 1 prompt so deeply, but it's fine for now, since we're all familiar enough with the codebase. Our data models can support many to many, and for testing at least it's very common ime to create many prompts for the same project, but if you didn't know that, it'd be easy to lose track of the extra prompts and introduce bugs that way.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

agree with this more generic approach: added a support multiple prompts instead a single prompt case on the API level, and by handling special case with the first prompt only in the current UI instead.

color:
title: Color
type: string
Expand Down
14 changes: 14 additions & 0 deletions fern/openapi/overrides.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,18 @@
paths:
/api/current-user/product-tour:
get:
$ref: "./resources/users.yaml#/paths/~1api~1current-user~1product-tour/get"
x-fern-sdk-group-name: users
x-fern-sdk-method-name: get_product_tour
x-fern-audiences:
- internal
patch:
$ref: "./resources/users.yaml#/paths/~1api~1current-user~1product-tour/patch"
x-fern-sdk-group-name: users
x-fern-sdk-method-name: update_product_tour
x-fern-audiences:
- internal

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TIL about x-fern-audiences, it looks like this only defines the group and doesn't do anything unless there is logic elsewhere to tell if a user is internal or not. Is that true? Setup to do this in future? Maybe leave a comment about it

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added

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