Skip to content
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

Add append helper to useAssistant. #1407

Merged
merged 2 commits into from
Apr 23, 2024
Merged

Add append helper to useAssistant. #1407

merged 2 commits into from
Apr 23, 2024

Conversation

lgrammel
Copy link
Collaborator

No description provided.

@lgrammel lgrammel self-assigned this Apr 22, 2024
@lgrammel lgrammel merged commit 9c2a049 into main Apr 23, 2024
6 checks passed
@lgrammel lgrammel deleted the lg/use-assistant-append branch April 23, 2024 06:46
@AlexIsMaking
Copy link

AlexIsMaking commented Apr 23, 2024

@lgrammel thanks again but I'm afraid I've run into another issue - not 100% sure it's not me this time.

If I use:

append({
  role: "user",
  content: "hello world",
});

then the message field in input here, from my route, is an empty string

export async function POST(req) {
  const input = await req.json();
  console.log("input:", input);

like

input: {
  threadId: 'thread_abc123',
  message: ''
}

MISTYKITTY

This comment was marked as off-topic.

MISTYKITTY

This comment was marked as spam.

@lgrammel
Copy link
Collaborator Author

@AlexIsMaking #1425

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants