Skip to content

Commit

Permalink
change schema
Browse files Browse the repository at this point in the history
  • Loading branch information
eg9y committed May 29, 2023
1 parent ea0d169 commit 8973a01
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
9 changes: 3 additions & 6 deletions packages/shared/src/types/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,19 +97,19 @@ export interface Database {
id: number
nonce: string | null
open_ai_key: string | null
user_id: string | null
user_id: string
}
Insert: {
id?: number
nonce?: string | null
open_ai_key?: string | null
user_id?: string | null
user_id: string
}
Update: {
id?: number
nonce?: string | null
open_ai_key?: string | null
user_id?: string | null
user_id?: string
}
}
workflows: {
Expand All @@ -123,7 +123,6 @@ export interface Database {
nodes: Json | null
updated_at: string
usages: number
use_user_api_key: boolean
user_id: string
}
Insert: {
Expand All @@ -136,7 +135,6 @@ export interface Database {
nodes?: Json | null
updated_at?: string
usages?: number
use_user_api_key?: boolean
user_id: string
}
Update: {
Expand All @@ -149,7 +147,6 @@ export interface Database {
nodes?: Json | null
updated_at?: string
usages?: number
use_user_api_key?: boolean
user_id?: string
}
}
Expand Down
4 changes: 2 additions & 2 deletions packages/web/src/nodes/templates/NodeTemplate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,12 +127,12 @@ const NodeTemplate: FC<
{(data as DefaultNodeDataType & OpenAIAPIRequest).model && (
<div className="flex gap-2">
<p className="text-slate-600">
credits:{' '}
{(data as DefaultNodeDataType & OpenAIAPIRequest).model.startsWith(
'gpt-4',
)
? '10'
: '1'}
: '1'}{' '}
credit
</p>
</div>
)}
Expand Down

1 comment on commit 8973a01

@vercel
Copy link

@vercel vercel bot commented on 8973a01 May 29, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.