Skip to content

Commit

Permalink
feat(api): OpenAPI spec update via Stainless API (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed Jul 17, 2024
1 parent 0db1232 commit b142e08
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
pull_request:
branches:
- main
- next

jobs:
lint:
Expand Down
4 changes: 2 additions & 2 deletions inferencepipelinedata.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func NewInferencePipelineDataService(opts ...option.RequestOption) (r *Inference
return
}

// Stream production data to an inference pipeline.
// Create an inference data point in an inference pipeline.
func (r *InferencePipelineDataService) Stream(ctx context.Context, inferencePipelineID string, body InferencePipelineDataStreamParams, opts ...option.RequestOption) (res *InferencePipelineDataStreamResponse, err error) {
opts = append(r.Options[:], opts...)
if inferencePipelineID == "" {
Expand Down Expand Up @@ -84,7 +84,7 @@ type InferencePipelineDataStreamParams struct {
// Configuration for the data stream. Depends on your **Openlayer project task
// type**.
Config param.Field[InferencePipelineDataStreamParamsConfigUnion] `json:"config,required"`
// A list of entries that represent rows of a csv file
// A list of inference data points with inputs and outputs
Rows param.Field[[]map[string]interface{}] `json:"rows,required"`
}

Expand Down
2 changes: 1 addition & 1 deletion project_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func TestProjectListWithOptionalParams(t *testing.T) {
option.WithAPIKey("My API Key"),
)
_, err := client.Projects.List(context.TODO(), openlayer.ProjectListParams{
Name: openlayer.F("string"),
Name: openlayer.F("name"),
Page: openlayer.F(int64(1)),
PerPage: openlayer.F(int64(1)),
TaskType: openlayer.F(openlayer.ProjectListParamsTaskTypeLlmBase),
Expand Down
2 changes: 1 addition & 1 deletion projectinferencepipeline_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func TestProjectInferencePipelineListWithOptionalParams(t *testing.T) {
context.TODO(),
"182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
openlayer.ProjectInferencePipelineListParams{
Name: openlayer.F("string"),
Name: openlayer.F("name"),
Page: openlayer.F(int64(1)),
PerPage: openlayer.F(int64(1)),
},
Expand Down

0 comments on commit b142e08

Please sign in to comment.