-
Notifications
You must be signed in to change notification settings - Fork 3.5k
v0.6.20: oauth default credential name, models pages, new models #3894
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 9 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
42fb434
fix(encryption): specify authTagLength on all AES-GCM cipher/decipher…
waleedlatif1 2ede12a
fix(cost): worker crash incremenental case (#3885)
icecrasher321 df6ceb6
fix(envvar): remove dead env var
icecrasher321 076c835
improvement(credentials): consolidate OAuth modals and auto-fill cred…
waleedlatif1 8527ae5
feat(providers): server-side credential hiding for Azure and Bedrock …
waleedlatif1 ac831b8
chore(bun): update bunfig.toml (#3889)
waleedlatif1 2c174ca
feat(landing): added models pages (#3888)
waleedlatif1 27a11a2
improvement(workflow): seed start block on server side (#3890)
icecrasher321 4c94f3c
improvement(providers): audit and update all provider model definitio…
waleedlatif1 c016537
fix(blog): Fix blog not loading (#3895)
TheodoreSpeaks bbc704f
feat(credentials) Add google service account support (#3828)
TheodoreSpeaks fc6fe19
fix(credential) fix credential migration (#3896)
TheodoreSpeaks 080a0a6
feat(rippling): expand Rippling integration from to 86 tools, landing…
waleedlatif1 a78f3f9
fix(credential): fix service_account migration to avoid unsafe enum u…
waleedlatif1 225d5d5
improvement(models): update default to claude-sonnet-4-6 and reorgani…
waleedlatif1 45f053a
feat(rootly): add Rootly incident management integration with 14 tool…
waleedlatif1 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,63 @@ | ||
| 'use client' | ||
|
|
||
| import { useState } from 'react' | ||
| import { ChevronDown } from '@/components/emcn' | ||
| import { cn } from '@/lib/core/utils/cn' | ||
|
|
||
| export interface LandingFAQItem { | ||
| question: string | ||
| answer: string | ||
| } | ||
|
|
||
| interface LandingFAQProps { | ||
| faqs: LandingFAQItem[] | ||
| } | ||
|
|
||
| export function LandingFAQ({ faqs }: LandingFAQProps) { | ||
| const [openIndex, setOpenIndex] = useState<number | null>(0) | ||
|
|
||
| return ( | ||
| <div className='divide-y divide-[var(--landing-border)]'> | ||
| {faqs.map(({ question, answer }, index) => { | ||
| const isOpen = openIndex === index | ||
|
|
||
| return ( | ||
| <div key={question}> | ||
| <button | ||
| type='button' | ||
| onClick={() => setOpenIndex(isOpen ? null : index)} | ||
| className='flex w-full items-start justify-between gap-4 py-5 text-left' | ||
| aria-expanded={isOpen} | ||
| > | ||
| <span | ||
| className={cn( | ||
| 'font-[500] text-[15px] leading-snug transition-colors', | ||
| isOpen | ||
| ? 'text-[var(--landing-text)]' | ||
| : 'text-[var(--landing-text-muted)] hover:text-[var(--landing-text)]' | ||
| )} | ||
| > | ||
| {question} | ||
| </span> | ||
| <ChevronDown | ||
| className={cn( | ||
| 'mt-0.5 h-4 w-4 shrink-0 text-[#555] transition-transform duration-200', | ||
| isOpen ? 'rotate-180' : 'rotate-0' | ||
| )} | ||
| aria-hidden='true' | ||
| /> | ||
| </button> | ||
|
|
||
| {isOpen && ( | ||
| <div className='pb-5'> | ||
| <p className='text-[14px] text-[var(--landing-text-muted)] leading-[1.75]'> | ||
| {answer} | ||
| </p> | ||
| </div> | ||
| )} | ||
| </div> | ||
| ) | ||
| })} | ||
| </div> | ||
| ) | ||
| } |
52 changes: 2 additions & 50 deletions
52
apps/sim/app/(landing)/integrations/[slug]/components/integration-faq.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,58 +1,10 @@ | ||
| 'use client' | ||
|
|
||
| import { useState } from 'react' | ||
| import { ChevronDown } from '@/components/emcn' | ||
| import { cn } from '@/lib/core/utils/cn' | ||
| import { LandingFAQ } from '@/app/(landing)/components/landing-faq' | ||
| import type { FAQItem } from '@/app/(landing)/integrations/data/types' | ||
|
|
||
| interface IntegrationFAQProps { | ||
| faqs: FAQItem[] | ||
| } | ||
|
|
||
| export function IntegrationFAQ({ faqs }: IntegrationFAQProps) { | ||
| const [openIndex, setOpenIndex] = useState<number | null>(0) | ||
|
|
||
| return ( | ||
| <div className='divide-y divide-[var(--landing-border)]'> | ||
| {faqs.map(({ question, answer }, index) => { | ||
| const isOpen = openIndex === index | ||
| return ( | ||
| <div key={question}> | ||
| <button | ||
| type='button' | ||
| onClick={() => setOpenIndex(isOpen ? null : index)} | ||
| className='flex w-full items-start justify-between gap-4 py-5 text-left' | ||
| aria-expanded={isOpen} | ||
| > | ||
| <span | ||
| className={cn( | ||
| 'font-[500] text-[15px] leading-snug transition-colors', | ||
| isOpen | ||
| ? 'text-[var(--landing-text)]' | ||
| : 'text-[var(--landing-text-muted)] hover:text-[var(--landing-text)]' | ||
| )} | ||
| > | ||
| {question} | ||
| </span> | ||
| <ChevronDown | ||
| className={cn( | ||
| 'mt-0.5 h-4 w-4 shrink-0 text-[#555] transition-transform duration-200', | ||
| isOpen ? 'rotate-180' : 'rotate-0' | ||
| )} | ||
| aria-hidden='true' | ||
| /> | ||
| </button> | ||
|
|
||
| {isOpen && ( | ||
| <div className='pb-5'> | ||
| <p className='text-[14px] text-[var(--landing-text-muted)] leading-[1.75]'> | ||
| {answer} | ||
| </p> | ||
| </div> | ||
| )} | ||
| </div> | ||
| ) | ||
| })} | ||
| </div> | ||
| ) | ||
| return <LandingFAQ faqs={faqs} /> | ||
| } |
42 changes: 42 additions & 0 deletions
42
apps/sim/app/(landing)/models/[provider]/[model]/opengraph-image.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,42 @@ | ||
| import { notFound } from 'next/navigation' | ||
| import { createModelsOgImage } from '@/app/(landing)/models/og-utils' | ||
| import { | ||
| formatPrice, | ||
| formatTokenCount, | ||
| getModelBySlug, | ||
| getProviderBySlug, | ||
| } from '@/app/(landing)/models/utils' | ||
|
|
||
| export const runtime = 'edge' | ||
| export const contentType = 'image/png' | ||
| export const size = { | ||
| width: 1200, | ||
| height: 630, | ||
| } | ||
|
|
||
| export default async function Image({ | ||
| params, | ||
| }: { | ||
| params: Promise<{ provider: string; model: string }> | ||
| }) { | ||
| const { provider: providerSlug, model: modelSlug } = await params | ||
| const provider = getProviderBySlug(providerSlug) | ||
| const model = getModelBySlug(providerSlug, modelSlug) | ||
|
|
||
| if (!provider || !model) { | ||
| notFound() | ||
| } | ||
|
|
||
| return createModelsOgImage({ | ||
| eyebrow: `${provider.name} model`, | ||
| title: model.displayName, | ||
| subtitle: `${provider.name} pricing, context window, and feature support generated from Sim's model registry.`, | ||
| pills: [ | ||
| `Input ${formatPrice(model.pricing.input)}/1M`, | ||
| `Output ${formatPrice(model.pricing.output)}/1M`, | ||
| model.contextWindow ? `${formatTokenCount(model.contextWindow)} context` : 'Unknown context', | ||
| model.capabilityTags[0] ?? 'Capabilities tracked', | ||
| ], | ||
| domainLabel: `sim.ai${model.href}`, | ||
| }) | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.