fix: oauth token

This commit is contained in:
Timothy Jaeryang Baek
2025-09-19 00:10:48 -05:00
parent a89ffccd7e
commit e4c4ba0979
4 changed files with 15 additions and 13 deletions
+1 -1
View File
@@ -239,7 +239,7 @@ async def generate_function_chat_completion(
oauth_token = None
try:
if request.cookies.get("oauth_session_id", None):
oauth_token = request.app.state.oauth_manager.get_oauth_token(
oauth_token = await request.app.state.oauth_manager.get_oauth_token(
user.id,
request.cookies.get("oauth_session_id", None),
)