Skip to content

Commit bc0644d

Browse files
authored
Merge pull request #34 from yml-org/refactor/change_sdk_name
Change project name to ychat
2 parents 9a23021 + e682b87 commit bc0644d

File tree

77 files changed

+404
-448
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+404
-448
lines changed

.github/workflows/main-ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ jobs:
2222
run: ./gradlew checkSwiftPackageVersion
2323
## Step 4
2424
- name: Run Detekt
25-
run: ./gradlew :chat-gpt:detektMetadataMain
25+
run: ./gradlew :ychat:detektMetadataMain
2626
## Step 5
2727
- name: Run Ktlint
28-
run: ./gradlew :chat-gpt:ktlintCheck
28+
run: ./gradlew :ychat:ktlintCheck
2929

3030
code-coverage:
3131
name: Code Coverage
@@ -52,7 +52,7 @@ jobs:
5252
path: "**/build/reports/tests/testDebugUnitTest"
5353
## Step 5
5454
- name: Run Kover Report
55-
run: ./gradlew :chat-gpt:koverXmlReport
55+
run: ./gradlew :ychat:koverXmlReport
5656
## Step 6
5757
- name: Upload coverage reports
5858
uses: codecov/codecov-action@v3

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- name: Grant execute permission for gradlew
2020
run: chmod +x gradlew
2121
- name: Publish to Repository
22-
run: ./gradlew :chat-gpt:clean publishReleasePublicationToYChatGPTRepository
22+
run: ./gradlew :ychat:clean publishReleasePublicationToYChatRepository
2323

2424
env:
2525
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}

Package.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,20 @@
22
import PackageDescription
33

44
let package = Package(
5-
name: "YChatGPT",
5+
name: "YChat",
66
platforms: [
77
.iOS(.v13)
88
],
99
products: [
1010
.library(
11-
name: "YChatGPT",
12-
targets: ["YChatGPT"]
11+
name: "YChat",
12+
targets: ["YChat"]
1313
),
1414
],
1515
targets: [
1616
.binaryTarget(
17-
name: "YChatGPT",
18-
path: "./YChatGPT.xcframework"
17+
name: "YChat",
18+
path: "./YChat.xcframework"
1919
),
2020
]
2121
)

README.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,34 @@
1-
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/co.yml/ychatgpt/badge.svg)](https://maven-badges.herokuapp.com/maven-central/co.yml/ychatgpt/)
1+
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/co.yml/ychat/badge.svg)](https://maven-badges.herokuapp.com/maven-central/co.yml/ychat/)
22
![Apache-2.0](https://img.shields.io/badge/license-Apache-blue)
3-
![Build Status](https://github.com/yml-org/ychatgpt-sdk/actions/workflows/test.yml/badge.svg?branch=main)
4-
![Y-ChatGPT SDK](https://github.com/yml-org/ychatgpt-sdk/raw/main/art/logo.png)
3+
![Build Status](https://github.com/yml-org/ychat/actions/workflows/test.yml/badge.svg?branch=main)
4+
![Y-Chat](https://github.com/yml-org/ychat/raw/main/art/logo.png)
55

6-
# YChatGPT
6+
# YChat
77

8-
YChatGPT is a Kotlin Multiplatform (KMP) project that provides a simple API for integrating the powerful ChatGPT language model developed by OpenAI into mobile applications running on both iOS and Android. The goal of this project is to abstract all the API call logic from ChatGPT, allowing developers to easily leverage the capabilities of the language model in their mobile applications.
8+
YChat is a Kotlin Multiplatform (KMP) project that provides a simple API for integrating the powerful ChatGPT language model developed by OpenAI into mobile applications running on both iOS and Android. The goal of this project is to abstract all the API call logic from ChatGPT, allowing developers to easily leverage the capabilities of the language model in their mobile applications.
99

10-
The repository contains the source code for the YChatGPT library, along with examples and documentation for getting started with the library. The YChatGPT library provides a consistent interface for interacting with ChatGPT, regardless of the platform, and makes it easy to generate human-like text based on a given prompt or context.
10+
The repository contains the source code for the YChat library, along with examples and documentation for getting started with the library. The YChat library provides a consistent interface for interacting with ChatGPT, regardless of the platform, and makes it easy to generate human-like text based on a given prompt or context.
1111

12-
The library uses Kotlin Multiplatform to generate artifacts for both iOS and Android, allowing developers to write code once and use it on both platforms. The project is open source and actively maintained, with contributions from the community encouraged. Overall, YChatGPT provides a convenient and powerful way for mobile developers to incorporate the advanced natural language processing capabilities of ChatGPT into their applications.
12+
The library uses Kotlin Multiplatform to generate artifacts for both iOS and Android, allowing developers to write code once and use it on both platforms. The project is open source and actively maintained, with contributions from the community encouraged. Overall, YChat provides a convenient and powerful way for mobile developers to incorporate the advanced natural language processing capabilities of ChatGPT into their applications.
1313

1414

1515
## iOS setup
1616

1717
- Go to your project’s file settings and click "Add Package":
1818

19-
![Y-ChatGPT iOS first screenshot](https://github.com/yml-org/ychatgpt-sdk/raw/main/art/ios-1.png)
19+
![Y-ChatGPT iOS first screenshot](https://github.com/yml-org/ychat/raw/main/art/ios-1.png)
2020

21-
- To add a new package, search for https://github.com/yml-org/ychatgpt-sdk.git in the top right corner:
21+
- To add a new package, search for https://github.com/yml-org/ychat.git in the top right corner:
2222

23-
![Y-ChatGPT iOS second screenshot](https://github.com/yml-org/ychatgpt-sdk/raw/main/art/ios-2.png)
23+
![Y-ChatGPT iOS second screenshot](https://github.com/yml-org/ychat/raw/main/art/ios-2.png)
2424

2525
Once you have found the package click the "Add Package" button to add it to your project. Now you can start using the SDK in your iOS project!
2626

2727
See the code snippet below on how to initialize and use it:
2828

2929
```swift
30-
var yChatGpt: YChatGpt {
31-
YChatGptCompanion.shared.create(apiKey: "your-api-key")
30+
var yChat: YChat {
31+
YChatCompanion.shared.create(apiKey: "your-api-key")
3232
}
3333

3434
do {
@@ -58,19 +58,19 @@ repositories {
5858
Then, simply import the dependency to your common source-set dependencies:
5959

6060
```kotlin
61-
implementation("co.yml:ychatgpt:1.0.0")
61+
implementation("co.yml:ychat:1.0.0")
6262
```
6363

6464
In the snippet below, you can see how to initialize the object and perform a first search:
6565

6666

6767
```kotlin
68-
val yChatGpt by lazy {
69-
YChatGpt.create("your-api-key")
68+
val yChat by lazy {
69+
YChat.create("your-api-key")
7070
}
7171

7272
try {
73-
val result = yChatGpt.completion()
73+
val result = yChat.completion()
7474
.setInput("Say this is a test.")
7575
.saveHistory(false)
7676
.setMaxTokens(1024)
@@ -84,7 +84,7 @@ try {
8484

8585
## 🤝 Contributions
8686

87-
Feel free to make a suggestion or if you find any error in this project, please open an issue. Make sure to read our [contribution guidelines](https://github.com/yml-org/ychatgpt-sdk/blob/main/CONTRIBUTING.md) before.
87+
Feel free to make a suggestion or if you find any error in this project, please open an issue. Make sure to read our [contribution guidelines](https://github.com/yml-org/ychat/blob/main/CONTRIBUTING.md) before.
8888

8989
## License
9090

YChat-1.0.0.zip

8.17 MB
Binary file not shown.

YChatGPT.xcframework/Info.plist renamed to YChat.xcframework/Info.plist

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,10 @@
55
<key>AvailableLibraries</key>
66
<array>
77
<dict>
8-
<key>DebugSymbolsPath</key>
9-
<string>dSYMs</string>
108
<key>LibraryIdentifier</key>
119
<string>ios-arm64</string>
1210
<key>LibraryPath</key>
13-
<string>YChatGPT.framework</string>
11+
<string>YChat.framework</string>
1412
<key>SupportedArchitectures</key>
1513
<array>
1614
<string>arm64</string>
@@ -19,12 +17,10 @@
1917
<string>ios</string>
2018
</dict>
2119
<dict>
22-
<key>DebugSymbolsPath</key>
23-
<string>dSYMs</string>
2420
<key>LibraryIdentifier</key>
2521
<string>ios-x86_64-simulator</string>
2622
<key>LibraryPath</key>
27-
<string>YChatGPT.framework</string>
23+
<string>YChat.framework</string>
2824
<key>SupportedArchitectures</key>
2925
<array>
3026
<string>x86_64</string>

0 commit comments

Comments
 (0)