-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Claude-March-Updated #97
Comments
@KiRyuWen It didn't work for me or maybe I didn't do it right, could you upload the entire file? |
Sorry for late replying to you, @Luisrepi and replace the send_message function as follows.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In claude_api.py => send_message(self, prompt, conversation_id, attachment=None, timeout=500):
1.
original:
payload = json.dumps({
"completion": {
"prompt": f"{prompt}",
"timezone": "Asia/Kolkata",
"model": "claude-3-opus-20240229"
},
"organization_uuid": f"{self.organization_id}",
"conversation_uuid": f"{conversation_id}",
"text": f"{prompt}",
"attachments": attachments
})
change to
payload = json.dumps({
"prompt": f"{prompt}",
"timezone": "Asia/Kolkata",
"model": "claude-3-haiku-20240307",
"attachments": attachments,
"files":[]
})
change original loop data_strings to following loop
for data_string in data_strings:
if data_string.find('data:')==-1 or data_string == "event: completion" or data_string == "event: stop" or data_string == "ping":
continue
json_str = data_string[6:].strip()
data = json.loads(json_str)
Feel free to let me know if you have any questions.
If it works for you, please give me a blessing for upcoming interviews!
The text was updated successfully, but these errors were encountered: