mirror of
https://github.com/DayuanJiang/next-ai-draw-io.git
synced 2026-10-12 20:49:53 +08:00
Step 4c of the provider refactor plan. usesServerCredentials asks resolveEndpoint whose key the call uses, so the 'mirrors each branch of getAIModel' comment and its switch are gone. usesServerEndpoint reads the credential kind (none, optionalKey) and the sdk (bedrock) instead of three provider names. listFallbackUrl reads the credential kind and publicDefaultUrl. Before this commit the differential test agreed with the pre-refactor copies on all 30720 and 288 input classes; the copies are deleted now, and the behavior snapshot keeps both functions' answers for every recorded scenario.