Error #797
Error
#797
Replies: 1 comment 2 replies
-
Hello, I assume you're trying to use Cohere as the LLM for your Guard - if that's the case, you can find detailed instructions on how to do that here, and maybe compare what your code does to the example given. Can you provide a code snippet showing what you're trying to do with BaseCohere.chat? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Please help me to solve below error
PromptCallableException: The callable
fn
passed toGuard(fn, ...)
failed with the following error:BaseCohere.chat() takes 1 positional argument but 2 positional arguments (and 2 keyword-only arguments) were given
. Make sure thatfn
can be called as a function that takes in a single prompt string and returns a string.Beta Was this translation helpful? Give feedback.
All reactions