[PR #7089] [MERGED] docs: await promise function convertToModelMessages #23968

Closed
opened 2026-04-15 22:05:34 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/7089
Author: @bytaesu
Created: 1/1/2026
Status: Merged
Merged: 1/2/2026
Merged by: @himself65

Base: canaryHead: 2026-01-02/docs/await-chat-route


📝 Commits (1)

  • 4579107 docs: await promise function convertToModelMessages

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 docs/app/api/chat/route.ts (+1 -1)

📄 Description


Summary by cubic

Await convertToModelMessages in the chat API route so messages are resolved before sending to the model. This prevents passing a Promise and ensures tool call handling works as expected.

Written for commit 4579107847. Summary will update on new commits.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/better-auth/better-auth/pull/7089 **Author:** [@bytaesu](https://github.com/bytaesu) **Created:** 1/1/2026 **Status:** ✅ Merged **Merged:** 1/2/2026 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `canary` ← **Head:** `2026-01-02/docs/await-chat-route` --- ### 📝 Commits (1) - [`4579107`](https://github.com/better-auth/better-auth/commit/45791078471e0bdea725b6944d805f666ef1d341) docs: await promise function convertToModelMessages ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `docs/app/api/chat/route.ts` (+1 -1) </details> ### 📄 Description - Closes https://github.com/better-auth/better-auth/issues/7088 <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Await convertToModelMessages in the chat API route so messages are resolved before sending to the model. This prevents passing a Promise and ensures tool call handling works as expected. <sup>Written for commit 45791078471e0bdea725b6944d805f666ef1d341. Summary will update on new commits.</sup> <!-- End of auto-generated description by cubic. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-15 22:05:35 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#23968