dify icon indicating copy to clipboard operation
dify copied to clipboard

feat(llm/models): add gemini-1.5-pro

Open lroolle opened this issue 1 year ago • 5 comments

Description

Add model Gemini 1.5 Pro.

Type of Change

  • [x] New feature (adds functionality)

Screenshots

Screenshot 2024-04-10 at 14 15 48

Screenshot 2024-04-10 at 14 16 05

Screenshot 2024-04-10 at 14 16 55

Screenshot 2024-04-10 at 14 36 48

How Has This Been Tested?

  • [x] Manually in local development environment.

lroolle avatar Mar 21 '24 08:03 lroolle

Hello, thanks for contributing, but for a further test, I would like to know to get an API key supports Gemini Pro 1.5, or should I change to another API endpoint? I got an error below. It seems that Gemini Pro 1.5 is not supported by this API endpoint yet.

image

Yeuoly avatar Mar 22 '24 02:03 Yeuoly

Hello, thanks for contributing, but for a further test, I would like to know to get an API key supports Gemini Pro 1.5, or should I change to another API endpoint? I got an error below. It seems that Gemini Pro 1.5 is not supported by this API endpoint yet.

API support for Gemini Pro 1.5 is currently being phased in.

image

lroolle avatar Mar 22 '24 03:03 lroolle

hello, have you successfully tested invoke the model once? if so, could you pls add my WeChat: Yeuoly

Yeuoly avatar Mar 26 '24 04:03 Yeuoly

hello, have you successfully tested invoke the model once? if so, could you pls add my WeChat: Yeuoly

Not yet, I've converted this PR to draft due to the current state of thegemini-1.5-pro API.

lroolle avatar Mar 26 '24 09:03 lroolle

@Yeuoly has been updated and tested.

lroolle avatar Apr 10 '24 06:04 lroolle