n/chit-chatu/rckadw · 1 个月前
注册 登录
n/chit-chat · 1 个月前 · 242 次浏览
u/rckadw青铜

gpt网页版在电脑登上一直显示 Model not found

gpt网页版在电脑登上一直显示 Model not found但是其他手机,换台电脑就没有问题,有没有大佬知道这是怎么回事

3
10
登录后参与讨论。

10 条回复

排序
  1. qianli 青铜 1 个月前
    1
  2. mantue 黄金 3 YEARS 1 个月前

    触发风控了应该是

    0
  3. rckadw 青铜 楼主 1 个月前

    其他功能都可以使用codex也能使用,就是网页版gpt不能用,但是换个设备,gpt又可以访问了,就是我这台电脑不能访问

    0
  4. mantue 黄金 3 YEARS 1 个月前

    如果开个无痕模式呢?

    0
  5. doubao 黄金 3 YEARS 1 个月前

    我刚刚也遇到这个情况了,ds好了oa崩了

    0
  6. mrgg 白银 1 个月前

    啊啊,我也是这样。我以为是我的节点不干净,换了几个节点也是这样。deepseek说应该是风控了。

    0
  7. rckadw 青铜 楼主 1 个月前

    但是我换设备就没有这个情况了,就这台设备有问题

    0
  8. rckadw 青铜 楼主 1 个月前

    还是同样的代理

    0
  9. junmoxiao 青铜 1 个月前

    same!only one computer has problem(web),another computer and my phone are working normolly.

    0
  10. doubao 黄金 3 YEARS 1 个月前

    隔壁的油猴脚本,很好用> [!note]

    // ==UserScript==
    // @name ChatGPT - Dynamic IP Timezone Spoofer
    // @name:zh-CN ChatGPT 动态 IP 时区模拟 (防检测加固版)
    // @namespace https://chatgpt.com/
    // @version 2.0.0
    // @description Automatically detect current IP timezone and spoof Date & Intl on chatgpt.com with full DST & anti-detection support.
    // @match https://chatgpt.com/*
    // @run-at document-start
    // @grant GM_xmlhttpRequest
    // @grant GM_getValue
    // @grant GM_setValue
    // @grant unsafeWindow
    // @connect ipwho.is
    // @connect ipapi.co
    // @connect freeipapi.com
    // ==/UserScript==

    (() => {
    'use strict';

    // 获取页面真实全局对象(兼容带有 GM_* 权限的沙箱环境)
    const pageWindow = typeof unsafeWindow !== 'undefined' ? unsafeWindow : window;
    const NativeDate = pageWindow.Date;
    const NativeDTF = pageWindow.Intl.DateTimeFormat;
    const NativeFunction = pageWindow.Function;

    const dateProto = NativeDate.prototype;
    const nativeGetTime = dateProto.getTime;
    const nativeSetTime = dateProto.setTime;
    const nativeGetUTCDay = dateProto.getUTCDay;
    const nativeParse = NativeDate.parse;

    const DAYS = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'];
    const MONTHS = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun',
    'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
    const pad = n => String(n).padStart(2, '0');

    // ============================================================================
    // 1. 动态 IP 时区状态与格式化器管理
    // ============================================================================
    const CACHE_KEY = 'chatgpt_ip_tz_cache';
    const CACHE_TTL = 10 * 60 * 1000; // 缓存有效期 10 分钟,后台仍会每次静默校验
    const FALLBACK_TZ = 'America/Los_Angeles';

    let currentTZ = FALLBACK_TZ;
    let partsFormatter;
    let zoneNameFormatter;
    let lastTimestamp;
    let lastParts;

    // 校验时区字符串是否为合法的 IANA 时区
    function isValidTimeZone(tz) {
    if (!tz || typeof tz !== 'string') return false;
    try {
    new NativeDTF('en-US', { timeZone: tz });
    return true;
    } catch {
    return false;
    }
    }

    // 应用/热更新时区格式化器
    function applyTimeZone(tz, saveCache = false) {
    if (!isValidTimeZone(tz)) return false;
    if (tz === currentTZ && partsFormatter) return true;

    currentTZ = tz;
    lastTimestamp = undefined;
    lastParts = undefined;
    
    partsFormatter = new NativeDTF('en-US-u-ca-gregory-nu-latn', {
      timeZone: currentTZ, year: 'numeric', month: '2-digit', day: '2-digit',
      hour: '2-digit', minute: '2-digit', second: '2-digit', hourCycle: 'h23'
    });
    zoneNameFormatter = new NativeDTF('en-US', {
      timeZone: currentTZ, timeZoneName: 'long'
    });
    
    if (saveCache) {
      const payload = JSON.stringify({ tz: currentTZ, time: NativeDate.now() });
      try {
        if (typeof GM_setValue === 'function') GM_setValue(CACHE_KEY, payload);
        localStorage.setItem(CACHE_KEY, payload);
      } catch {}
    }
    console.info(`[TZ-Spoofer] Active Timezone -> ${currentTZ}`);
    return true;
    

    }

    // 读取缓存的 IP 时区
    function loadCachedTimeZone() {
    try {
    const raw = (typeof GM_getValue === 'function' ? GM_getValue(CACHE_KEY) : null)
    || localStorage.getItem(CACHE_KEY);
    if (!raw) return null;
    const data = JSON.parse(raw);
    if (data && isValidTimeZone(data.tz)) {
    return data;
    }
    } catch {}
    return null;
    }

    // 同步探测 IP 时区(仅在无有效缓存时首次加载触发,确保在页面脚本运行前完成)
    function detectTimeZoneSync() {
    const endpoints = [
    { url: 'https://ipwho.is/', parse: d => d?.timezone?.id },
    { url: 'https://freeipapi.com/api/json', parse: d => d?.timeZones?.[0] },
    { url: 'https://ipapi.co/json/', parse: d => d?.timezone }
    ];

    for (const ep of endpoints) {
      try {
        const xhr = new XMLHttpRequest();
        xhr.open('GET', ep.url, false); // 同步请求,阻塞页面后续脚本直到拿到 IP
        xhr.send(null);
        if (xhr.status === 200) {
          const tz = ep.parse(JSON.parse(xhr.responseText));
          if (applyTimeZone(tz, true)) return;
        }
      } catch {
        // 若被浏览器策略拦截,继续尝试下一个或交由下方 GM 异步通道处理
      }
    }
    

    }

    // 异步特权探测(绕过 ChatGPT 的 CSP 限制,实时校准代理切换)
    function refreshTimeZoneAsync() {
    const endpoints = [
    { url: 'https://ipwho.is/', parse: d => d?.timezone?.id },
    { url: 'https://freeipapi.com/api/json', parse: d => d?.timeZones?.[0] },
    { url: 'https://ipapi.co/json/', parse: d => d?.timezone }
    ];

    let resolved = false;
    for (const ep of endpoints) {
      if (typeof GM_xmlhttpRequest === 'function') {
        GM_xmlhttpRequest({
          method: 'GET',
          url: ep.url,
          timeout: 4000,
          onload(res) {
            if (resolved || res.status !== 200) return;
            try {
              const tz = ep.parse(JSON.parse(res.responseText));
              if (applyTimeZone(tz, true)) resolved = true;
            } catch {}
          }
        });
      } else {
        fetch(ep.url).then(r => r.json()).then(data => {
          if (resolved) return;
          const tz = ep.parse(data);
          if (applyTimeZone(tz, true)) resolved = true;
        }).catch(() => {});
      }
    }
    

    }

    // 初始化时区:1. 读缓存 -> 2. 缓存缺失或超期则同步拉取 -> 3. 后台异步校准
    const cached = loadCachedTimeZone();
    if (cached) {
    applyTimeZone(cached.tz, false);
    if (NativeDate.now() - cached.time > CACHE_TTL) {
    detectTimeZoneSync();
    }
    } else {
    applyTimeZone(FALLBACK_TZ, false);
    detectTimeZoneSync();
    }
    refreshTimeZoneAsync();

    // ============================================================================
    // 2. 防检测伪装层 (Function.prototype.toString 保护)
    // ============================================================================
    const fnToString = NativeFunction.prototype.toString;
    const maskedFns = new WeakMap();
    const maskFunction = (fn, name) => {
    maskedFns.set(fn, function ${name}() { [native code] });
    return fn;
    };

    NativeFunction.prototype.toString = new Proxy(fnToString, {
    apply(target, thisArg, args) {
    if (maskedFns.has(thisArg)) return maskedFns.get(thisArg);
    return Reflect.apply(target, thisArg, args);
    }
    });
    maskFunction(NativeFunction.prototype.toString, 'toString');

    // ============================================================================
    // 3. 核心时区换算与 DST 逆推引擎
    // ============================================================================
    function utcMs(y, month, day, h, min, s, ms) {
    const d = new NativeDate(0);
    d.setUTCFullYear(y, month - 1, day);
    d.setUTCHours(h, min, s, ms);
    return nativeGetTime.call(d);
    }

    function zoned(ts) {
    if (!Number.isFinite(ts)) return null;
    if (ts === lastTimestamp) return lastParts;

    const p = {};
    for (const item of partsFormatter.formatToParts(new NativeDate(ts))) {
      if (['year', 'month', 'day', 'hour', 'minute', 'second'].includes(item.type)) {
        p[item.type] = +item.value;
      }
    }
    if (p.hour === 24) p.hour = 0; // 修复部分 V8 引擎在 h23 午夜返回 24 的历史 Bug
    
    p.ms = ((Math.trunc(ts) % 1000) + 1000) % 1000;
    p.wall = utcMs(p.year, p.month, p.day, p.hour, p.minute, p.second, p.ms);
    p.offset = Math.round((ts - p.wall) / 60000);
    p.weekday = nativeGetUTCDay.call(new NativeDate(utcMs(p.year, p.month, p.day, 0, 0, 0, 0)));
    
    lastTimestamp = ts;
    lastParts = p;
    return p;
    

    }

    // 将目标时区的墙上时间逆推为真实 UTC 时间戳(自动处理任意时区的夏令时跳空与重叠)
    function zonedTimestamp(y, month, day, h = 0, min = 0, s = 0, ms = 0) {
    y = +y; month = +month; day = +day; h = +h;
    min = +min; s = +s; ms = +ms;

    const wall = utcMs(y, month, day, h, min, s, ms);
    if (!Number.isFinite(wall)) return NaN;
    
    const offsets = new Set([
      zoned(wall - 172800000)?.offset,
      zoned(wall)?.offset,
      zoned(wall + 172800000)?.offset
    ]);
    
    const candidates = [...offsets].filter(Number.isFinite).map(offset => {
      const instant = wall + offset * 60000;
      return { instant, wall: zoned(instant)?.wall };
    }).filter(c => Number.isFinite(c.wall));
    
    const exact = candidates.filter(c => c.wall === wall)
      .sort((a, b) => a.instant - b.instant);
    if (exact.length) return exact[0].instant;
    
    const ahead = candidates.filter(c => c.wall > wall)
      .sort((a, b) => a.wall - b.wall);
    if (ahead.length) return ahead[0].instant;
    
    return candidates[0]?.instant ?? NaN;
    

    }

    function withTZ(options) {
    const original = options == null ? {} : Object(options);
    if (original.timeZone !== undefined) return options;
    return Object.assign(Object.create(original), { timeZone: currentTZ });
    }

    // ============================================================================
    // 4. 劫持 Intl.DateTimeFormat 与 Date 原型链
    // ============================================================================
    pageWindow.Intl.DateTimeFormat = new Proxy(NativeDTF, {
    apply(target, thisArg, args) {
    return Reflect.apply(target, thisArg, [args[0], withTZ(args[1])]);
    },
    construct(target, args, newTarget) {
    return Reflect.construct(target, [args[0], withTZ(args[1])], newTarget);
    }
    });
    maskFunction(pageWindow.Intl.DateTimeFormat, 'DateTimeFormat');

    const getters = {
    getFullYear: p => p.year,
    getMonth: p => p.month - 1,
    getDate: p => p.day,
    getDay: p => p.weekday,
    getHours: p => p.hour,
    getMinutes: p => p.minute,
    getSeconds: p => p.second,
    getMilliseconds: p => p.ms,
    getTimezoneOffset: p => p.offset,
    getYear: p => p.year - 1900
    };

    for (const [method, get] of Object.entries(getters)) {
    dateProto[method] = maskFunction(function () {
    const p = zoned(nativeGetTime.call(this));
    return p ? get(p) : NaN;
    }, method);
    }

    function dateString(d) {
    const p = zoned(nativeGetTime.call(d));
    if (!p) return 'Invalid Date';
    return ${DAYS[p.weekday]} ${MONTHS[p.month - 1]} ${pad(p.day)} ${p.year};
    }

    function timeString(d) {
    const ts = nativeGetTime.call(d);
    const p = zoned(ts);
    if (!p) return 'Invalid Date';

    const sign = p.offset > 0 ? '-' : '+';
    const abs = Math.abs(p.offset);
    const offset = `GMT${sign}${pad(Math.floor(abs / 60))}${pad(abs % 60)}`;
    
    const name = zoneNameFormatter.formatToParts(new NativeDate(ts))
      .find(part => part.type === 'timeZoneName')?.value || currentTZ;
    
    return `${pad(p.hour)}:${pad(p.minute)}:${pad(p.second)} ${offset} (${name})`;
    

    }

    dateProto.toDateString = maskFunction(function () {
    return dateString(this);
    }, 'toDateString');

    dateProto.toTimeString = maskFunction(function () {
    return timeString(this);
    }, 'toTimeString');

    dateProto.toString = maskFunction(function () {
    const date = dateString(this);
    return date === 'Invalid Date' ? date : ${date} ${timeString(this)};
    }, 'toString');

    for (const method of ['toLocaleString', 'toLocaleDateString', 'toLocaleTimeString']) {
    const original = dateProto[method];
    dateProto[method] = maskFunction(function (locales, options) {
    return original.call(this, locales, withTZ(options));
    }, method);
    }

    // 修复无参调用(如 d.setHours())未按规范返回 NaN 的漏洞
    const setters = [
    'setFullYear', 'setMonth', 'setDate', 'setHours',
    'setMinutes', 'setSeconds', 'setMilliseconds', 'setYear'
    ];

    for (const method of setters) {
    const original = dateProto[method];
    dateProto[method] = maskFunction(function (...args) {
    if (args.length === 0) return nativeSetTime.call(this, NaN);

      const p = zoned(nativeGetTime.call(this));
      if (!p && method !== 'setFullYear' && method !== 'setYear') {
        return original.apply(this, args);
      }
    
      let [y, mo, day, h, min, s, ms] = p
        ? [p.year, p.month, p.day, p.hour, p.minute, p.second, p.ms]
        : [1970, 1, 1, 0, 0, 0, 0];
    
      switch (method) {
        case 'setFullYear':
          y = +args[0];
          if (args.length > 1) mo = +args[1] + 1;
          if (args.length > 2) day = +args[2];
          break;
        case 'setMonth':
          mo = +args[0] + 1;
          if (args.length > 1) day = +args[1];
          break;
        case 'setDate':
          day = +args[0];
          break;
        case 'setHours':
          h = +args[0];
          if (args.length > 1) min = +args[1];
          if (args.length > 2) s = +args[2];
          if (args.length > 3) ms = +args[3];
          break;
        case 'setMinutes':
          min = +args[0];
          if (args.length > 1) s = +args[1];
          if (args.length > 2) ms = +args[2];
          break;
        case 'setSeconds':
          s = +args[0];
          if (args.length > 1) ms = +args[1];
          break;
        case 'setMilliseconds':
          ms = +args[0];
          break;
        case 'setYear':
          y = +args[0];
          if (y >= 0 && y <= 99) y = Math.trunc(y) + 1900;
          break;
      }
    
      return nativeSetTime.call(this, zonedTimestamp(y, mo, day, h, min, s, ms));
    }, method);
    

    }

    // ============================================================================
    // 5. 本地日期字符串解析与全局 Date 构造器代理
    // ============================================================================
    const ISO_LOCAL = /^(\d{4})-(\d\d)-(\d\d)T :(\d\d)(?::(\d\d)(?:.(\d+))?)?$/;
    const HAS_TZ = /(?:Z|[+-]\d{2}:?\d{2}|GMT|UTC|([a-zA-Z\s]+))$/i;
    const ISO_DATE_ONLY = /^\d{4}-\d{2}-\d{2}$/;

    function parseLocal(value) {
    if (typeof value !== 'string') return null;
    const str = value.trim();

    // 1. 精确匹配不带时区的 ISO 本地时间格式
    const m = ISO_LOCAL.exec(str);
    if (m) {
      const milliseconds = m[7] ? +(m[7] + '000').slice(0, 3) : 0;
      return zonedTimestamp(+m[1], +m[2], +m[3], +m[4], +m[5], +(m[6] || 0), milliseconds);
    }
    
    // 2. 若自带时区或为纯日期(ES规范中 YYYY-MM-DD 按 UTC 解析),交由原生处理
    if (HAS_TZ.test(str) || ISO_DATE_ONLY.test(str)) return null;
    
    // 3. 拦截其他非标准本地时间字符串(如 "2026/10/15 12:00:00" 或 "Oct 15, 2026 12:00")
    const utcTry = nativeParse.call(NativeDate, `${str} GMT`);
    if (!Number.isNaN(utcTry)) {
      const tmp = new NativeDate(utcTry);
      return zonedTimestamp(
        tmp.getUTCFullYear(), tmp.getUTCMonth() + 1, tmp.getUTCDate(),
        tmp.getUTCHours(), tmp.getUTCMinutes(), tmp.getUTCSeconds(), tmp.getUTCMilliseconds()
      );
    }
    return null;
    

    }

    const FakeDate = new Proxy(NativeDate, {
    apply() {
    return dateProto.toString.call(new NativeDate());
    },
    construct(target, args, newTarget) {
    if (args.length >= 2) {
    let year = +args[0];
    if (year >= 0 && year <= 99) year = Math.trunc(year) + 1900;

        const val = i => args.length > i ? +args[i] : (i === 2 ? 1 : 0);
        const ts = zonedTimestamp(
          year, +args[1] + 1,
          val(2), val(3), val(4), val(5), val(6)
        );
    
        return Reflect.construct(target, [ts], newTarget);
      }
    
      if (args.length === 1 && typeof args[0] === 'string') {
        const ts = parseLocal(args[0]);
        if (ts !== null) return Reflect.construct(target, [ts], newTarget);
      }
    
      return Reflect.construct(target, args, newTarget);
    }
    

    });

    FakeDate.parse = maskFunction(function (value) {
    const ts = parseLocal(value);
    return ts === null ? nativeParse.call(NativeDate, value) : ts;
    }, 'parse');

    maskFunction(FakeDate, 'Date');
    pageWindow.Date = FakeDate;
    })();

    0