ChatGPT-Next-Web/app/client
DirkSchlossmacher 94ea750137
Update openai.ts
// add max_tokens to vision model
    if (visionModel) {
      Object.defineProperty(requestPayload, "max_tokens", {
        enumerable: true,
        configurable: true,
        writable: true,
        value: 4096,
      });
    }

    // value: modelConfig.max_tokens,
2024-04-16 22:01:55 +02:00
..
platforms Update openai.ts 2024-04-16 22:01:55 +02:00
api.ts chore: adjust for ollama support (#4129) 2024-02-26 17:18:46 +08:00
controller.ts feat: #920 migrate id to nanoid 2023-07-09 19:37:42 +08:00