Skip to content

Commit

Permalink
NO-JIRA: Upgrade Fern to latest versions (#719)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrescrz authored Nov 25, 2024
1 parent 34cd845 commit 44a353a
Show file tree
Hide file tree
Showing 124 changed files with 4,289 additions and 4,297 deletions.
104 changes: 76 additions & 28 deletions apps/opik-documentation/documentation/rest_api/opik.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@ tags:
description: Experiment resources
- name: Feedback-definitions
description: Feedback definitions related resources
- name: Feedback-scores
description: Feedback scores related resources
- name: Projects
description: Project related resources
- name: Prompts
Expand Down Expand Up @@ -541,6 +539,30 @@ paths:
responses:
"204":
description: No content
/v1/private/experiments/feedback-scores/names:
get:
tags:
- Experiments
summary: Find Feedback Score names
description: Find Feedback Score names
operationId: findFeedbackScoreNames
parameters:
- name: experiment_ids
in: query
schema:
type: array
items:
type: string
format: uuid
responses:
"200":
description: Feedback Scores resource
content:
application/json:
schema:
type: array
items:
type: string
/v1/private/experiments/{id}:
get:
tags:
Expand Down Expand Up @@ -739,32 +761,6 @@ paths:
responses:
"204":
description: No Content
/v1/private/feedback-scores/names:
get:
tags:
- Feedback-scores
summary: Find Feedback Score names
description: Find Feedback Score names
operationId: findFeedbackScoreNames
parameters:
- name: project_id
in: query
schema:
type: string
format: uuid
- name: with_experiments_only
in: query
schema:
type: boolean
responses:
"200":
description: Feedback Scores resource
content:
application/json:
schema:
type: array
items:
type: string
/v1/private/projects:
get:
tags:
Expand Down Expand Up @@ -1490,6 +1486,36 @@ paths:
responses:
"204":
description: No Content
/v1/private/spans/feedback-scores/names:
get:
tags:
- Spans
summary: Find Feedback Score names
description: Find Feedback Score names
operationId: findFeedbackScoreNames_1
parameters:
- name: project_id
in: query
schema:
type: string
format: uuid
- name: type
in: query
schema:
type: string
enum:
- general
- tool
- llm
responses:
"200":
description: Feedback Scores resource
content:
application/json:
schema:
type: array
items:
type: string
/v1/private/spans/feedback-scores:
put:
tags:
Expand Down Expand Up @@ -1704,6 +1730,28 @@ paths:
responses:
"204":
description: No Content
/v1/private/traces/feedback-scores/names:
get:
tags:
- Traces
summary: Find Feedback Score names
description: Find Feedback Score names
operationId: findFeedbackScoreNames_2
parameters:
- name: project_id
in: query
schema:
type: string
format: uuid
responses:
"200":
description: Feedback Scores resource
content:
application/json:
schema:
type: array
items:
type: string
/v1/private/traces/feedback-scores:
put:
tags:
Expand Down
1 change: 1 addition & 0 deletions sdks/python/.pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ repos:
- id: ruff
args: [ --fix ]
files: ^sdks/python
exclude: '(sdks/python/src/opik/rest_api/)'
- id: ruff-format
files: ^sdks/python

Expand Down
2 changes: 1 addition & 1 deletion sdks/python/code_generation/fern/fern.config.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"organization": "Opik",
"version": "0.31.9"
"version": "0.45.0"
}
4 changes: 3 additions & 1 deletion sdks/python/code_generation/fern/generators.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
api:
path: openapi/openapi.yaml
default-group: local
groups:
local:
generators:
- name: fernapi/fern-python-sdk
version: 2.14.1
version: 4.3.8
output:
location: local-file-system
path: ../../src/opik/rest_api
104 changes: 76 additions & 28 deletions sdks/python/code_generation/fern/openapi/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@ tags:
description: Experiment resources
- name: Feedback-definitions
description: Feedback definitions related resources
- name: Feedback-scores
description: Feedback scores related resources
- name: Projects
description: Project related resources
- name: Prompts
Expand Down Expand Up @@ -541,6 +539,30 @@ paths:
responses:
"204":
description: No content
/v1/private/experiments/feedback-scores/names:
get:
tags:
- Experiments
summary: Find Feedback Score names
description: Find Feedback Score names
operationId: findFeedbackScoreNames
parameters:
- name: experiment_ids
in: query
schema:
type: array
items:
type: string
format: uuid
responses:
"200":
description: Feedback Scores resource
content:
application/json:
schema:
type: array
items:
type: string
/v1/private/experiments/{id}:
get:
tags:
Expand Down Expand Up @@ -739,32 +761,6 @@ paths:
responses:
"204":
description: No Content
/v1/private/feedback-scores/names:
get:
tags:
- Feedback-scores
summary: Find Feedback Score names
description: Find Feedback Score names
operationId: findFeedbackScoreNames
parameters:
- name: project_id
in: query
schema:
type: string
format: uuid
- name: with_experiments_only
in: query
schema:
type: boolean
responses:
"200":
description: Feedback Scores resource
content:
application/json:
schema:
type: array
items:
type: string
/v1/private/projects:
get:
tags:
Expand Down Expand Up @@ -1490,6 +1486,36 @@ paths:
responses:
"204":
description: No Content
/v1/private/spans/feedback-scores/names:
get:
tags:
- Spans
summary: Find Feedback Score names
description: Find Feedback Score names
operationId: findFeedbackScoreNames_1
parameters:
- name: project_id
in: query
schema:
type: string
format: uuid
- name: type
in: query
schema:
type: string
enum:
- general
- tool
- llm
responses:
"200":
description: Feedback Scores resource
content:
application/json:
schema:
type: array
items:
type: string
/v1/private/spans/feedback-scores:
put:
tags:
Expand Down Expand Up @@ -1704,6 +1730,28 @@ paths:
responses:
"204":
description: No Content
/v1/private/traces/feedback-scores/names:
get:
tags:
- Traces
summary: Find Feedback Score names
description: Find Feedback Score names
operationId: findFeedbackScoreNames_2
parameters:
- name: project_id
in: query
schema:
type: string
format: uuid
responses:
"200":
description: Feedback Scores resource
content:
application/json:
schema:
type: array
items:
type: string
/v1/private/traces/feedback-scores:
put:
tags:
Expand Down
8 changes: 5 additions & 3 deletions sdks/python/src/opik/rest_api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,22 +126,23 @@
datasets,
experiments,
feedback_definitions,
feedback_scores,
projects,
prompts,
spans,
system_usage,
traces,
)
from .client import AsyncOpikApi, OpikApi
from .environment import OpikApiEnvironment
from .feedback_definitions import FindFeedbackDefinitionsRequestType
from .projects import (
ProjectMetricRequestPublicInterval,
ProjectMetricRequestPublicMetricType,
)
from .spans import GetSpansByProjectRequestType
from .spans import FindFeedbackScoreNames1RequestType, GetSpansByProjectRequestType

__all__ = [
"AsyncOpikApi",
"BadRequestError",
"BiInformation",
"BiInformationResponse",
Expand Down Expand Up @@ -213,6 +214,7 @@
"Feedback_Categorical",
"Feedback_Numerical",
"FindFeedbackDefinitionsRequestType",
"FindFeedbackScoreNames1RequestType",
"GetSpansByProjectRequestType",
"JsonNode",
"JsonNodeCompare",
Expand All @@ -228,6 +230,7 @@
"NumericalFeedbackDetailCreate",
"NumericalFeedbackDetailPublic",
"NumericalFeedbackDetailUpdate",
"OpikApi",
"OpikApiEnvironment",
"Project",
"ProjectMetricRequestPublicInterval",
Expand Down Expand Up @@ -268,7 +271,6 @@
"datasets",
"experiments",
"feedback_definitions",
"feedback_scores",
"projects",
"prompts",
"spans",
Expand Down
Loading

0 comments on commit 44a353a

Please sign in to comment.