mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-02 08:06:38 +08:00
Merge remote-tracking branch 'origin/main' into dev
This commit is contained in:
commit
bc634d96f8
4
.github/workflows/dockerToHub-dev.yml
vendored
4
.github/workflows/dockerToHub-dev.yml
vendored
@ -8,8 +8,8 @@ on:
|
||||
jobs:
|
||||
build:
|
||||
name: build test image to aly
|
||||
runs-on: thinkpad
|
||||
# runs-on: ubuntu-latest
|
||||
# runs-on: thinkpad
|
||||
runs-on: ubuntu-latest
|
||||
# runs-on: self-hosted
|
||||
steps:
|
||||
- name: Check out the repo
|
||||
|
4
.github/workflows/dockerToHub.yml
vendored
4
.github/workflows/dockerToHub.yml
vendored
@ -16,8 +16,8 @@ jobs:
|
||||
build:
|
||||
name: build image to aly
|
||||
# runs-on: "103.200"
|
||||
runs-on: thinkpad
|
||||
# runs-on: ubuntu-latest
|
||||
# runs-on: thinkpad
|
||||
runs-on: ubuntu-latest
|
||||
# runs-on: self-hosted
|
||||
steps:
|
||||
- name: Check out the repo
|
||||
|
@ -118,7 +118,7 @@ export class ChatGPTApi implements LLMApi {
|
||||
enumerable: true,
|
||||
configurable: true,
|
||||
writable: true,
|
||||
value: Math.max(modelConfig.max_tokens, 4096),
|
||||
value: modelConfig.max_tokens,
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -292,8 +292,8 @@ export function getMessageImages(message: RequestMessage): string[] {
|
||||
|
||||
export function isVisionModel(model: string) {
|
||||
return (
|
||||
model.startsWith("gpt-4-vision") ||
|
||||
model.startsWith("gemini-pro-vision") ||
|
||||
!DEFAULT_MODELS.find((m) => m.name == model)
|
||||
// model.startsWith("gpt-4-vision") ||
|
||||
// model.startsWith("gemini-pro-vision") ||
|
||||
model.includes("vision")
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user