Merge branch 'main' into add-authentik-sso
This commit is contained in:
commit
38ad812d51
|
|
@ -27,7 +27,7 @@ const model = new ChatOpenAI({
|
|||
|
||||
const dalle = new DallEAPIWrapper({
|
||||
apiKey: process.env.OPENAI_API_KEY || 'sk-proj-',
|
||||
model: 'gpt-image-1',
|
||||
model: 'dall-e-3',
|
||||
});
|
||||
|
||||
interface WorkflowChannelsState {
|
||||
|
|
@ -75,6 +75,7 @@ const contentZod = (
|
|||
content: z.string().describe('Content for the new post'),
|
||||
website: z
|
||||
.string()
|
||||
.nullable()
|
||||
.optional()
|
||||
.describe(
|
||||
"Website for the new post if exists, If one of the post present a brand, website link must be to the root domain of the brand or don't include it, website url should contain the brand name"
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ export class OpenaiService {
|
|||
await openai.images.generate({
|
||||
prompt,
|
||||
response_format: isUrl ? 'url' : 'b64_json',
|
||||
model: 'gpt-image-1',
|
||||
model: 'dall-e-3',
|
||||
})
|
||||
).data[0];
|
||||
|
||||
|
|
|
|||
|
|
@ -75,7 +75,11 @@ export class StripeService {
|
|||
return current;
|
||||
}
|
||||
return prev;
|
||||
});
|
||||
}, {created: -100} as Stripe.PaymentMethod);
|
||||
|
||||
if (!latestMethod.id) {
|
||||
return false;
|
||||
}
|
||||
|
||||
try {
|
||||
const paymentIntent = await stripe.paymentIntents.create({
|
||||
|
|
|
|||
Loading…
Reference in New Issue