Skip to content

Commit

Permalink
feat(access): llm 抽象
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuSilence committed Dec 30, 2023
1 parent 446166e commit 92b3ec7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/api/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function parseApiKey(bearToken: string) {
};
}

export function auth(req: NextRequest, modelProvider: ModelProvider) {
export async function auth(req: NextRequest, modelProvider: ModelProvider) {
const authToken = req.headers.get("Authorization") ?? "";

// check if it is openai api key or user token
Expand Down

0 comments on commit 92b3ec7

Please sign in to comment.