Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thekharche/jetchatgpt
ChatGPT in Jetpack Compose using OpenAI API
https://github.com/thekharche/jetchatgpt
Last synced: 3 months ago
JSON representation
ChatGPT in Jetpack Compose using OpenAI API
- Host: GitHub
- URL: https://github.com/thekharche/jetchatgpt
- Owner: thekharche
- License: other
- Created: 2023-05-11T22:08:41.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-05-11T22:47:34.000Z (over 1 year ago)
- Last Synced: 2024-06-15T14:33:25.520Z (5 months ago)
- Language: Kotlin
- Size: 7.4 MB
- Stars: 25
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-ChatGPT-repositories - JetChatGPT - ChatGPT in Jetpack Compose using OpenAI API (Openai)
README
# JetChatGPT
This is a fork of https://github.com/khalp/compose-samples/pull/2/files by the team at Microsoft. Read more: https://devblogs.microsoft.com/surface-duo/android-openai-chatgpt-5/
Thanks to the developers at Microsoft for their contribution to the Jetpack Compose community!
## Overview
This repo adds support for ID detection for Maestro UI testing for Jetpack Compose. Maestro is a UI testing framework for Mobile apps.
For example, search for `testTagsAsResourceId` in `ConversationFragment.kt` and for `testTag` in `UserInput.kt`.
Not sure what are those?
Check out the [Tweet](https://twitter.com/mobile__dev/status/1656399126962278401) and [Docs](https://maestro.mobile.dev/platform-support/android-jetpack-compose) for more info.
## Demo
![Demo](screenshots/jetchatgpt.png)
## How to run
After you clone and open the project in Android Studio, add your own Open AI API key in `OpenAIWrapper.kt` file:
```kotlin
private val openAIToken: String = "YOUR_OPENAI_API_KEY"
```Then, you can run the app on your device or emulator.
## How to test
```agsl
maestro test .maestro/flow.yaml
```