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

feat: Update the Gemini API call method and add embedding-001 model supported #1042

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

devojony
Copy link

close #868

我已确认该 PR 已自测通过,相关截图如下:
image

image

curl --location --request POST 'http://localhost:3000/v1/embeddings' \
--header 'User-Agent: Apifox/1.0.0 (https://apifox.com)' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer sk-XXXXXXX' \
--header 'Accept: */*' \
--header 'Host: localhost:3000' \
--header 'Connection: keep-alive' \
--data-raw '{
    "input": "The food was delicious and the waiter...",
    "model": "embedding-001",
    "encoding_format": "float"
  }'

@devojony
Copy link
Author

devojony commented Mar 27, 2024

在这个PR上,我还需要做什么?@songquanpeng

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

增加对gemini-pro向量模型models/embedding-001的支持
3 participants