Skip to content

Commit

Permalink
Merge pull request #109 from MagnivOrg/updated-missing-input-variable…
Browse files Browse the repository at this point in the history
…s-warning

Updated missing input variables warning
  • Loading branch information
M-Naveed-Ashraf authored Nov 11, 2024
2 parents e3dd123 + a38ec1f commit 6426ef6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "promptlayer",
"license": "MIT",
"version": "1.0.16",
"version": "1.0.17",
"main": "dist/index.js",
"module": "dist/index.esm.js",
"types": "dist/index.d.ts",
Expand Down
3 changes: 3 additions & 0 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,9 @@ export const runWorkflowRequest = async ({
}

const result = await response.json();
if (result.warning) {
console.warn(`WARNING: ${result.warning}`);
}
const execution_id = result.workflow_version_execution_id;
if (!execution_id) {
console.log("No execution ID returned from workflow run");
Expand Down

0 comments on commit 6426ef6

Please sign in to comment.