googlecodelabs / feedback

Provide feedback to our codelabs by filing an issue here
18 stars 22 forks source link

[gemini-function-calling]: Unexpected response from given prompt #1375

Open xprilion opened 8 months ago

xprilion commented 8 months ago

The prompt provided in Step 8. Generate a function call might at times provide responses which ask for when the exchange was made. For instance:

Screenshot 2024-03-16 at 12 25 46 AM

^ Using "gemini-1.0-pro-001"

The better way to frame this prompt would be:

prompt = """What is the latest exchange rate from Australian dollars to Swedish krona?
How much is 500 Australian dollars worth in Swedish krona?"""

this accurately invokes the expected function calling.

koverholt commented 5 months ago

Hi @xprilion, apologies that we missed this feedback. And thank you for reporting this behavior!