You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ERROR: Exception in ASGI application
Traceback (most recent call last):
File "/Users/gustavollermalylarrain/Documents/proyectos/labs/test-cohere/backend-python/.venv/lib/python3.11/site-packages/guardrails/llm_providers.py", line 542, in call
result = await self.invoke_llm(
^^^^^^^^^^^^^^^^^^^^^^
File "/Users/gustavollermalylarrain/Documents/proyectos/labs/test-cohere/backend-python/.venv/lib/python3.11/site-packages/guardrails/llm_providers.py", line 709, in invoke_llm
return LLMResponse(
^^^^^^^^^^^^
File "/Users/gustavollermalylarrain/Documents/proyectos/labs/test-cohere/backend-python/.venv/lib/python3.11/site-packages/pydantic/main.py", line 164, in init pydantic_self.pydantic_validator.validate_python(data, self_instance=pydantic_self)
pydantic_core._pydantic_core.ValidationError: 1 validation error for LLMResponse
output
Input should be a valid string [type=string_type, input_value=[cohere.Generation {
id:...ken_likelihoods: None
}], input_type=Generations]
For further information visit https://errors.pydantic.dev/2.4/v/string_type
Hi , what's the best way to run Guard using cohere async mode?
I tried this with no luck:
This was the error I had:
I tried doing this:
And works, but I wonder if I'm doing it the right way
Thanks
The text was updated successfully, but these errors were encountered: