You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+27-9
Original file line number
Diff line number
Diff line change
@@ -5,14 +5,15 @@
5
5
6
6
# YChat
7
7
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.
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 multi platforms. 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.
9
9
10
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.
11
11
12
-
The library uses Kotlin Multiplatform to generate artifacts for both iOSand 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.
12
+
The library uses Kotlin Multiplatform to generate artifacts for both iOS, Android and JVM, allowing developers to write code once and use it on multiple 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.
13
13
14
+
## ⚡️ Getting Started
14
15
15
-
## iOS setup
16
+
###iOS setup
16
17
17
18
- Go to your project’s file settings and click "Add Package":
18
19
@@ -24,7 +25,7 @@ The library uses Kotlin Multiplatform to generate artifacts for both iOS and And
24
25
25
26
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!
26
27
27
-
See the code snippet below on how to initialize and use it:
28
+
See the code snippet below on how to initialize and use it one of the supported feature:
28
29
29
30
```swift
30
31
var yChat: YChat {
@@ -43,7 +44,7 @@ do {
43
44
}
44
45
```
45
46
46
-
## Android setup
47
+
###Android/JVM setup
47
48
48
49
Add the following line to import the library via Gradle. First, make sure Maven Central has been added:
49
50
@@ -55,13 +56,13 @@ repositories {
55
56
}
56
57
```
57
58
58
-
Then, simply import the dependency to your common source-set dependencies:
59
+
Then, simply import the dependency to your `build.gradle` dependencies:
59
60
60
61
```kotlin
61
-
implementation("co.yml:ychat:1.0.0")
62
+
implementation("co.yml:ychat:1.1.0")
62
63
```
63
64
64
-
In the snippet below, you can see how to initialize the object and perform a first search:
65
+
Take a look at the Kotlin code snippet below for an example of how to initialize and use one of the supported features:
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.
0 commit comments