varunon9 / pocket-ai

Pocket AI: OpenAI GPT-3.5 powered free chatbot android app in Flutter similar to Chat-GPT

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PlaystoreApp not same as the Code

tioannidis opened this issue · comments

Hi,
first, thanks for the Code sharing, but you should mention that your Playstore App Version is not the same as the code here!

As it looks below, your application sends the Querries to you, but i can't find this part in your query code. so it would be fair to communicate this openly.
Screenshot_20230318-193424

my2cents

Hi @tioannidis

This codebase is in sync with Playstore. All the queries to bot are sent to Firestore for analytics.
Adding the relevant code and file name here for reference-

  void saveUserMessageToFirestore(String userMessage) {
    // store user queries to Firestore for study & analytics
    String? deviceId = Globals.deviceId;
    if (deviceId != null) {
      db
          .collection(FirestoreCollectionsConst.userMessagesToBot)
          .doc(deviceId)
          .collection(FirestoreCollectionsConst.messages)
          .doc()
          .set({'message': userMessage, 'time': FieldValue.serverTimestamp()});
    }
  }

https://github.com/varunon9/pocket-ai/blob/master/lib/src/modules/chat/screens/chat_screen.dart

@varunon9 thanks for the clarification!