Skip to content

Commit

Permalink
Add fal.ai (#6)
Browse files Browse the repository at this point in the history
* added assets

* fixed enum

* updated identifier
  • Loading branch information
Archetapp authored Oct 7, 2024
1 parent 9708c0d commit 300e182
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,29 @@ extension Sideproject.ExternalAccountTypeDescriptors {
}
}

@HadeanIdentifier("povar-firul-milij-jopat")
public struct FalAI: Sideproject.ExternalAccountTypeDescriptor, _StaticInstance {
public var accountType: Sideproject.ExternalAccountTypeIdentifier {
"com.vmanot.falai"
}

public var credentialType: any Sideproject.ExternalAccountCredential.Type {
Sideproject.ExternalAccountCredentialTypes.APIKey.self
}

public var icon: Image? {
Image("logo/fal", bundle: .module)
}

public var title: String {
"Fal"
}

public init() {

}
}

@HadeanIdentifier("foriz-gavat-dabog-vuvuz")
public struct HuggingFace: Sideproject.ExternalAccountTypeDescriptor, _StaticInstance {
public var accountType: Sideproject.ExternalAccountTypeIdentifier {
Expand Down Expand Up @@ -395,6 +418,13 @@ extension Sideproject.ExternalAccountTypeDescriptor where Self == Sideproject.Ex
}
}

extension Sideproject.ExternalAccountTypeDescriptor where Self == Sideproject.ExternalAccountTypeDescriptors.FalAI
{
public static var fal: Self {
Self()
}
}

extension Sideproject.ExternalAccountTypeDescriptor where Self == Sideproject.ExternalAccountTypeDescriptors.Groq
{
public static var groq: Self {
Expand Down
2 changes: 2 additions & 0 deletions Sources/Sideproject/Intramodular/Sideproject.swift
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,8 @@ extension Sideproject.ExternalAccountTypeIdentifier: _MIServiceTypeIdentifierCon
switch self {
case Sideproject.ExternalAccountTypeDescriptors.Anthropic().accountType:
return ._Anthropic
case Sideproject.ExternalAccountTypeDescriptors.FalAI().accountType:
return ._Fal
case Sideproject.ExternalAccountTypeDescriptors.HuggingFace().accountType:
return ._HuggingFace
case Sideproject.ExternalAccountTypeDescriptors.Mistral().accountType:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"images" : [
{
"filename" : "Image.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 300e182

Please sign in to comment.