-
Notifications
You must be signed in to change notification settings - Fork 20
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
Move all examples to a single Django project #77
Conversation
return assistant_cls | ||
|
||
|
||
def get_single_assistant_info( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We'll use that in another task to show the assistant proper name in the frontend: #78
raise AIUserNotAllowedError("User is not allowed to delete this message") | ||
|
||
return DjangoChatMessageHistory(thread_id=message.thread_id).remove_messages([message.id]) | ||
return DjangoChatMessageHistory(thread_id=message.thread_id).remove_messages([str(message.id)]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Type error.
path: "/htmx", | ||
element: <Redirect to="/htmx/" />, | ||
}, | ||
]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please review.
|
||
.mdMessage p { | ||
margin: 0; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks better!
path("", views.react_index, name="react_index"), | ||
# Catch all for react app: | ||
path("", views.react_index, {"resource": ""}), | ||
path("<path:resource>", views.react_index), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixes refreshes on React side.
@@ -52,4 +52,6 @@ def vcr_config(): | |||
("x-stainless-runtime-version", None), | |||
], | |||
"before_record_response": clear_response, | |||
# Request must has the same body as the recorded request: | |||
"match_on": ["method", "scheme", "host", "port", "path", "query", "body"], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This fixes the test breaking when instructions or anything else on prompt changes. cc @amandasavluchinske
Co-authored-by: Pamella Bezerra <[email protected]>
This reverts commit d80905d.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM after Pam's suggestions are addressed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Closes #67