Skip to content

Commit

Permalink
ok
Browse files Browse the repository at this point in the history
  • Loading branch information
hughcrt committed May 2, 2024
1 parent e9679cd commit a5987e3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion packages/backend/src/utils/playground.ts
Original file line number Diff line number Diff line change
Expand Up @@ -200,9 +200,10 @@ export async function runAImodel(
let paramsOverwrite = {}

const useAnthropic = modelObj?.provider === "anthropic"
const isAzureOpenai = process.env.AZURE_OPENAI_API_KEY

// disable streaming with anthropic, as their API is too different.
const doStream = stream && !useAnthropic
const doStream = stream && !useAnthropic && !isAzureOpenai

switch (modelObj?.provider) {
case "anthropic":
Expand Down
4 changes: 2 additions & 2 deletions packages/frontend/components/layout/Paywall.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export default function Paywall({
{feature}
</Text>
}
<span>{` is available ${isEnterpriseFeature ? "as an addon in" : ""} Lunary ${capitalize(plan)}`}</span>
<span>{` is available on ${isEnterpriseFeature ? "as an addon in" : ""} Lunary ${capitalize(plan)}`}</span>
</Title>
</Group>
{description && <Text size="lg">{description}</Text>}
Expand All @@ -133,7 +133,7 @@ export default function Paywall({
>
{isEnterpriseFeature
? "Contact Sales"
: `Upgrade to ${capitalize(plan)} &rarr`}
: `Upgrade to ${capitalize(plan)} &rarr;`}
</Button>
</Stack>
</Card>
Expand Down

0 comments on commit a5987e3

Please sign in to comment.