Skip to content

Commit

Permalink
Merge pull request #14 from RelevanceAI/feature/update-param-metadata…
Browse files Browse the repository at this point in the history
…-types
  • Loading branch information
soorria committed Jul 6, 2023
2 parents 088c92e + 83e6ffa commit ef7321e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
8 changes: 5 additions & 3 deletions scripts/update-codegen.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/env bash

set -x

# exit if gh command not installed
if ! command -v gh &> /dev/null
then
Expand Down Expand Up @@ -34,7 +36,7 @@ if [ -z "$types_diff" ]; then
exit 1
fi

npm run test && npm run typecheck
npm run test --watch=false && npm run typecheck --watch=false

if [ $? -ne 0 ]; then
echo "Tests or typecheck failed, exiting"
Expand All @@ -47,6 +49,6 @@ git commit -m "chore: update generated files"
npx bumpp patch -y

echo "pick latest version here"
gh release create -d --generate-notes
gh release create -d --generate-notes

echo "go to url above and publish release to publish to npm"
echo "go to url above and publish release to publish to npm"
9 changes: 7 additions & 2 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,16 @@ export type SchemaMetadata = {
| "long_text"
| "short_text"
| "file_url"
| "code"
| "llm_prompt"
| "speech"
| "code"
| "dataset_id"
| "markdown"
| "chain";
| "chain_id"
| "chain_params"
| "file_to_text"
| "memory"
| "memory_optimizer";
min?: number;
max?: number;
accepted_file_types?: string[];
Expand Down

0 comments on commit ef7321e

Please sign in to comment.