CharacterAI
CharacterAI copied to clipboard
Argument of type "str" cannot be assigned
char = input("input char: ")
chat = client.chat.get_chat(char) #<< here the erorr
then how do I fix it, after I run it once it can't be run again
Can you provide more detail like the traceback, etc.
Can you provide more detail like the traceback, etc.
like this?
What version of python are u using? Or did u enable type checking in vscode? disable it, in the init of PyCAI, chat has been overwritten with itself, vsc is wrong
@Karvp No, that not the problem
@FalcoTK hover over it of you have intellisense (vs code feature), here you have "char" so put in client.chat.get_chat(char=char), did notice that its because the class isn't initiated
@KubaPro010 I did mean the class wasn't initiated. Sorry for my messed-up words.
@Karvp No, that not the problem @FalcoTK hover over it of you have intellisense (vs code feature), here you have "char" so put in
client.chat.get_chat(char=char), did notice that its because the class isn't initiated arl bro, thank you :D
done