Skip to content

[Bug] GEMINI_SUMMARIZE_MODEL #4611

@QAbot-zh

Description

@QAbot-zh

Bug Description

gemini 系列模型并不都是以gemini-pro为前缀,应该修改GEMINI_SUMMARIZE_MODEL的适用条件,如:currentModel.startsWith("gemini")

function getSummarizeModel(currentModel: string) {
  // if it is using gpt-* models, force to use 3.5 to summarize
  if (currentModel.startsWith("gpt")) {
    return SUMMARIZE_MODEL;
  }
  if (currentModel.startsWith("gemini-pro")) {
    return GEMINI_SUMMARIZE_MODEL;
  }
  return currentModel;
}

Steps to Reproduce

调用 gemini-1.5-pro 模型将不会使用 GEMINI_SUMMARIZE_MODEL 进行总结

Expected Behavior

调用 gemini 系列模型都使用 GEMINI_SUMMARIZE_MODEL 进行总结

Screenshots

No response

Deployment Method

  • Docker
  • Vercel
  • Server

Desktop OS

No response

Desktop Browser

No response

Desktop Browser Version

No response

Smartphone Device

No response

Smartphone OS

No response

Smartphone Browser

No response

Smartphone Browser Version

No response

Additional Logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions