GoogleCloudPlatform / firebase-extensions

Apache License 2.0
74 stars 36 forks source link

(firestore-genai-chatbot) Consistently erroring with 400 Bad Request #476

Open joehan opened 5 months ago

joehan commented 5 months ago

[REQUIRED] Step 2: Describe your configuration

[REQUIRED] Step 3: Describe the problem

Duplicate of internal bug b/330838846, more details provided there

Customer installed the Firebase extension "Chatbot with Gemini", and it initially functioned correctly, but after a while, it stopped working entirely ,and all function calls failed with the error message: "ClientError: [VertexAI.ClientError]: got status: 400 Bad Request." [1].

Questions:

cabljac commented 5 months ago

do we have access to their config, and any details on the input?

Context can either be provided in the config, or (if overrides are configured on) in the parent doc of the chat collection (needs to be a subcollection in this case)

e.g if you put "act like a pirate" in the config parameter context and your collection path was chats/{cid}/messages

then you put "don't act like a pirate" in the context field of the document chats/123, in theory it shouldn't respond like a pirate