Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weโ€™ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Error when using o1-preview large models #5423

Closed
1-bytes opened this issue Sep 13, 2024 · 5 comments
Closed

[Bug] Error when using o1-preview large models #5423

1-bytes opened this issue Sep 13, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@1-bytes
Copy link

1-bytes commented Sep 13, 2024

๐Ÿ“ฆ Deployment Method

Docker

๐Ÿ“Œ Version

2.15.2

๐Ÿ’ป Operating System

Windows, macOS, Ubuntu, iOS, iPad OS, Android

๐Ÿ“Œ System Version

14.6.1 (23G93)

๐ŸŒ Browser

Chrome

๐Ÿ“Œ Browser Version

128.0.6613.120๏ผˆๆญฃๅผ็‰ˆๆœฌ๏ผ‰ (arm64)

๐Ÿ› Bug Description

The following error was prompted when using the o1-preview big model:

{ "error": true, "message": "The string did not match the expected pattern." }

The docker startup command is as follows:

docker stop chatgpt

docker rm -f chatgpt

docker pull yidadaa/chatgpt-next-web

docker run -d -p 9001:3000 \
   -e HIDE_USER_API_KEY=1 \
   -e BASE_URL=https://apic.ohmygpt.com/ \
   -e OPENAI_API_KEY=sk-xxxxxxxxx \
   -e ANTHROPIC_API_KEY=sk-xxxxxxxxx \
   -e CODE=xxxxxxxxxx \
   -e CUSTOM_MODELS=-all,+o1-preview=o1-preview,+chatgpt-4o-latest,+claude-3-5-sonnet,+dall-e-3 \
   -e DEFAULT_MODEL=o1-preview \
   --name chatgpt \
   yidadaa/chatgpt-next-web

๐Ÿ“ท Recurrence Steps

No response

๐Ÿšฆ Expected Behavior

success

๐Ÿ“ Additional Information

The backend api uses the ohmygpt service: https://www.ohmygpt.com

@1-bytes 1-bytes added the bug Something isn't working label Sep 13, 2024
@Dogtiti
Copy link
Member

Dogtiti commented Sep 13, 2024

@lloydzhou docker image ่ฟ˜ๆฒกๆ›ดๆ–ฐๆŠŠ

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


@lloydzhou docker image hasnโ€™t been updated yet

@lloydzhou
Copy link
Contributor

image

@Issues-translate-bot

This comment was marked as duplicate.

@zhanghaotian2018
Copy link

zhanghaotian2018 commented Sep 14, 2024

yarn ๅฎ‰่ฃ…ๆ—ถๆŠฅ้”™

yarn run v1.22.22
node: v20.13.1
NAME="CentOS Linux" VERSION="8 (Core)"

ypeError: Failed to parse URL from ./prompts.json
at new Request (node:internal/deps/undici/undici:4855:19)
at i (/data/workspace/ChatGPT-Next-Web/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:177224)
... 2 lines matching cause stack trace ...
at async globalThis.fetch (/data/workspace/ChatGPT-Next-Web/.next/server/chunks/712.js:11:131378) {
[cause]: TypeError: Invalid URL
at new URL (node:internal/url:797:36)
at new Request (node:internal/deps/undici/undici:4853:25)
at i (/data/workspace/ChatGPT-Next-Web/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:177224)
at k (/data/workspace/ChatGPT-Next-Web/.next/server/chunks/712.js:11:134634)
at /data/workspace/ChatGPT-Next-Web/.next/server/chunks/712.js:11:136783
at async globalThis.fetch (/data/workspace/ChatGPT-Next-Web/.next/server/chunks/712.js:11:131378) {
code: 'ERR_INVALID_URL',
input: './prompts.json'
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants