Skip to content

Commit

Permalink
Merge pull request #9 from tichise/feature/update-lib
Browse files Browse the repository at this point in the history
OpenAIを0.2.6に変更した
  • Loading branch information
tichise committed Mar 6, 2024
2 parents 294cf47 + ef764a5 commit f3ff0d7
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 7 deletions.
7 changes: 7 additions & 0 deletions .swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 23 additions & 0 deletions Package.resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"pins" : [
{
"identity" : "openai",
"kind" : "remoteSourceControl",
"location" : "https://github.com/MacPaw/OpenAI.git",
"state" : {
"revision" : "35afc9a6ee127b8f22a85a31aec2036a987478af",
"version" : "0.2.6"
}
},
{
"identity" : "tilogger",
"kind" : "remoteSourceControl",
"location" : "https://github.com/tichise/TILogger.git",
"state" : {
"revision" : "6eb4df09df95b57c00872f6d592f3a25dbb6ed5b",
"version" : "1.3.2"
}
}
],
"version" : 2
}
10 changes: 5 additions & 5 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
// swift-tools-version: 5.8
// swift-tools-version:5.8
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

let package = Package(
name: "ChatGPTUI",
platforms: [
.iOS(.v16),
],
products: [
// Products define the executables and libraries a package produces, making them visible to other packages.
.library(
name: "ChatGPTUI",
targets: ["ChatGPTUI"]),
],
dependencies: [
.package(url: "https://github.com/tichise/TILogger.git", from: "1.3.1"),
.package(url: "https://github.com/MacPaw/OpenAI.git", from: "0.2.3"),
.package(url: "https://github.com/MacPaw/OpenAI.git", from: "0.2.6"),
],
targets: [
// Targets are the basic building blocks of a package, defining a module or a test suite.
// Targets can depend on other targets in this package and products from dependencies.
.target(
name: "ChatGPTUI",
dependencies: ["TILogger", "OpenAI"]
Expand Down
4 changes: 2 additions & 2 deletions Sources/ChatGPTUI/View/DetailView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ struct DetailView: View {
@State var inputText: String = "" // 入力テキスト
@FocusState private var isFocused: Bool // フォーカス状態
@State private var showsModelSelectionSheet = false // モデル選択シート表示フラグ
@State private var selectedChatModel: Model = .gpt3_5Turbo0613 // 選択中のモデル
private let availableChatModels: [Model] = [.gpt3_5Turbo0613, .gpt4_0613] // 利用可能なモデル一覧
@State private var selectedChatModel: Model = .gpt3_5Turbo_0125 // 選択中のモデル
private let availableChatModels: [Model] = [.gpt3_5Turbo_0125, .gpt4_0613] // 利用可能なモデル一覧

let conversation: Conversation // 会話
let error: Error? // エラー
Expand Down

0 comments on commit f3ff0d7

Please sign in to comment.