Agnes 2.0-flash是推理模型,推理token占大量预算。 800仍不够→JSON截断(parse error: unexpected end of JSON input)。 1200确保推理+正文都够用。
7 lines
153 B
JavaScript
7 lines
153 B
JavaScript
'use strict';
|
|
|
|
export default function parseProtocol(url) {
|
|
const match = /^([-+\w]{1,25}):(?:\/\/)?/.exec(url);
|
|
return (match && match[1]) || '';
|
|
}
|