Skip to content

Commit

Permalink
SpeziLLMOpenAI: openapi-generator infrastructure
Browse files Browse the repository at this point in the history
  • Loading branch information
paulhdk committed Dec 16, 2024
1 parent fd9f1ca commit 0cfbf29
Show file tree
Hide file tree
Showing 6 changed files with 28,639 additions and 5 deletions.
17 changes: 12 additions & 5 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,14 @@

//
// This source file is part of the Stanford Spezi open source project
//
//
// SPDX-FileCopyrightText: 2022 Stanford University and the project authors (see CONTRIBUTORS.md)
//
//
// SPDX-License-Identifier: MIT
//

import PackageDescription


let package = Package(
name: "SpeziLLM",
defaultLocalization: "en",
Expand All @@ -36,7 +35,10 @@ let package = Package(
.package(url: "https://github.com/StanfordSpezi/SpeziStorage", from: "1.0.2"),
.package(url: "https://github.com/StanfordSpezi/SpeziOnboarding", from: "1.1.1"),
.package(url: "https://github.com/StanfordSpezi/SpeziChat", .upToNextMinor(from: "0.2.1")),
.package(url: "https://github.com/StanfordSpezi/SpeziViews", from: "1.3.1")
.package(url: "https://github.com/StanfordSpezi/SpeziViews", from: "1.3.1"),
.package(url: "https://github.com/apple/swift-openapi-generator", from: "1.0.0"),
.package(url: "https://github.com/apple/swift-openapi-runtime", from: "1.0.0"),
.package(url: "https://github.com/apple/swift-openapi-urlsession", from: "1.0.0")
],
targets: [
.target(
Expand Down Expand Up @@ -80,7 +82,12 @@ let package = Package(
.product(name: "Spezi", package: "Spezi"),
.product(name: "SpeziChat", package: "SpeziChat"),
.product(name: "SpeziSecureStorage", package: "SpeziStorage"),
.product(name: "SpeziOnboarding", package: "SpeziOnboarding")
.product(name: "SpeziOnboarding", package: "SpeziOnboarding"),
.product(name: "OpenAPIRuntime", package: "swift-openapi-runtime"),
.product(name: "OpenAPIURLSession", package: "swift-openapi-urlsession")
],
plugins: [
.plugin(name: "OpenAPIGenerator", package: "swift-openapi-generator")
]
),
.target(
Expand Down
3 changes: 3 additions & 0 deletions Sources/SpeziLLMOpenAI/openapi-generator-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
generate:
- types
- client
Loading

0 comments on commit 0cfbf29

Please sign in to comment.