Skip to content

Commit

Permalink
fix: update AI OpenAPI spec location
Browse files Browse the repository at this point in the history
This commit ensures the renamed OpenAPI spec is used.
  • Loading branch information
rickstaa committed Aug 21, 2024
1 parent 141b45a commit 5225b51
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .devcontainer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ The speakeasy CLI allows you to generate more usage snippets. Here's how:
- To generate a sample for a specific operation by providing an operation ID, use:

```
speakeasy generate usage -s https://raw.githubusercontent.com/livepeer/ai-worker/main/runner/openapi.gateway.json -l typescript -i {INPUT_OPERATION_ID} -o ./samples
speakeasy generate usage -s https://raw.githubusercontent.com/livepeer/ai-worker/main/runner/gateway.openapi.json -l typescript -i {INPUT_OPERATION_ID} -o ./samples
```

- To generate samples for an entire namespace (like a tag or group name), use:

```
speakeasy generate usage -s https://raw.githubusercontent.com/livepeer/ai-worker/main/runner/openapi.gateway.json -l typescript -n {INPUT_TAG_NAME} -o ./samples
speakeasy generate usage -s https://raw.githubusercontent.com/livepeer/ai-worker/main/runner/gateway.openapi.json -l typescript -n {INPUT_TAG_NAME} -o ./samples
```
2 changes: 1 addition & 1 deletion .devcontainer/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ EOL
echo "$TS_CONFIG_CONTENT" > samples/tsconfig.json

# Generate starter usage sample with speakeasy
speakeasy generate usage -s https://raw.githubusercontent.com/livepeer/ai-worker/main/runner/openapi.gateway.json -l typescript -o samples/root.ts
speakeasy generate usage -s https://raw.githubusercontent.com/livepeer/ai-worker/main/runner/gateway.openapi.json -l typescript -o samples/root.ts
2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ configVersion: 2.0.0
generation:
devContainers:
enabled: true
schemaPath: https://raw.githubusercontent.com/livepeer/ai-worker/main/runner/openapi.gateway.json
schemaPath: https://raw.githubusercontent.com/livepeer/ai-worker/main/runner/gateway.openapi.json
sdkClassName: LivepeerAi
maintainOpenAPIOrder: true
usageSnippets:
Expand Down
2 changes: 1 addition & 1 deletion .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ workflow:
sources:
livepeer-ai-OAS:
inputs:
- location: https://raw.githubusercontent.com/livepeer/ai-worker/main/runner/openapi.gateway.json
- location: https://raw.githubusercontent.com/livepeer/ai-worker/main/runner/gateway.openapi.json
registry:
location: registry.speakeasyapi.dev/livepeer-8mq/livepeer-ai/livepeer-ai-oas
targets:
Expand Down
2 changes: 1 addition & 1 deletion .speakeasy/workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ speakeasyVersion: latest
sources:
livepeer-ai-OAS:
inputs:
- location: https://raw.githubusercontent.com/livepeer/ai-worker/main/runner/openapi.gateway.json
- location: https://raw.githubusercontent.com/livepeer/ai-worker/main/runner/gateway.openapi.json
registry:
location: registry.speakeasyapi.dev/livepeer-8mq/livepeer-ai/livepeer-ai-oas
targets:
Expand Down

0 comments on commit 5225b51

Please sign in to comment.