File size: 1,314 Bytes
2992997 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | phrase analysis failed Error [HubApiError]: Failed to fetch inference provider mapping for model google/gemma-4-31B-it: OAuth token has expired: "exp" claim timestamp check failed
at async analyzePhrase (lib\hf\phrases.ts:117:15)
at async POST (app\api\phrases\route.ts:24:20)
115 | - Do not include markdown.${japaneseRules}`;
116 |
> 117 | const res = await hf.chatCompletion({
| ^
118 | provider: "novita",
119 | model: MODEL,
120 | messages: [ {
httpRequest: {
url: 'https://huggingface.co/api/models/google/gemma-4-31B-it?expand[]=inferenceProviderMapping',
method: 'GET'
},
httpResponse: {
requestId: 'Root=1-6a0bfbf5-37c864fa0a491ff63e27507e',
status: 401,
body: {
error: 'OAuth token has expired: "exp" claim timestamp check failed'
}
}
}
⨯ TypeError: Cannot read properties of null (reading 'targetLangs')
at PhrasesPage (app\(app)\phrases\page.tsx:8:31)
6 | export default async function PhrasesPage() {
7 | const session = (await getSession())!;
> 8 | const targetLangs = session.targetLangs ?? (session.targetLang ? [session.targetLang] : ...
| ^
9 |
10 | return (
11 | <section className="space-y-8 max-w-6xl mx-auto"> {
digest: '4152600846'
}
|