bug: Differences between OpenAi and Gemini #900
Labels
bug
Something isn't working
status: needs triage
New issues that have not yet been reviewed or categorized.
Did you check docs and existing issues?
Python version (python --version)
3.10.15
Operating system/version
MacOs 14.6.1
NeMo-Guardrails version (if you must use a specific version and not the latest
No response
Describe the bug
Hi, thank you for you work.
I noticed that i obtain different results with the response generator ("..." in Colang v2) when i use different providers.
If I use OpenAi, I obtain the desired response, while if i use Gemini, I receive a syntax error. Simply by changing ONLY the config file.
I am testing this using two different nemo servers: action and non action one. But they work fine and locally I have the same problem.
For the config files, i used the following ones:
Using prints and logs as debug, I noticed that the error is in the line $output = ..."'{$ref_use}'"
I have tried also variation of way to send the input (for instance: $ref_use.transcript), but they did not work.
This is the error with gemini:
The input message is the following one:
'Hi! Can you do the spelling of the following name <PERSON>? Thanks'
Finally, the simpleAction makes a custom validation of the output, but it works fine.
I need to work with Gemini, is there a way to overcome this problem?
Steps To Reproduce
UPDATE: I tried also the following simplified flow, but I got the same error.
Expected Behavior
The OpenAi response is the following one:
Sure, the spelling of the name << PERSON >> is <US_ITIN>. Is there anything else I can assist you with?
Actual Behavior
This is the error with gemini:
The text was updated successfully, but these errors were encountered: