danny-avila / LibreChat

Enhanced ChatGPT Clone: Features Anthropic, OpenAI, Assistants API, Azure, Groq, GPT-4 Vision, Mistral, OpenRouter, Vertex AI, Gemini, AI model switching, message search, langchain, DALL-E-3, ChatGPT Plugins, OpenAI Functions, Secure Multi-User System, Presets, completely open-source for self-hosting. Actively in public development.
https://librechat.ai/
MIT License
16.84k stars 2.81k forks source link

[Bug]: Palm2: Text-Bison-001 is no longer working #666

Closed MontDawgg closed 8 months ago

MontDawgg commented 1 year ago

Contact Details

montediaz@live.com

What happened?

Text-Bison is no longer working under the Palm2 model selection. Chat Bison is working fine. Text Bison is giving "bad request" error message.

Additional Context Text Bison is interesting because it allows for the changing of safety parameters to get more or less censored outputs. It is unclear whether its specific implementation in LibreChat allows this. Clarification/implementation here would be useful.

Steps to Reproduce

  1. Select Palm2
  2. Select Text-Bison
  3. Submit a query.

What browsers are you seeing the problem on?

Microsoft Edge

Relevant log output

},
    paramsSerializer: [Function: paramsSerializer],
    body: '{"instances":[{}],"parameters":{"model":"text-bison","modelLabel":null,"temperature":0.2,"maxOutputTokens":1024,"topP":0.95,"topK":40}}',
    validateStatus: [Function: validateStatus],
    responseType: 'json'
  },
  code: 400,
  errors: [
    {
      message: 'Invalid instance: struct_value \t {\n}\n',
      domain: 'global',
      reason: 'badRequest'
    }
  ]
}

Screenshots

No response

Code of Conduct

danny-avila commented 8 months ago

Was resolved with the recent google update, just forgot to close this: https://github.com/danny-avila/LibreChat/commit/583e978a820225c4dda94d35d6058e8106efb3e8 https://github.com/danny-avila/LibreChat/pull/1316