askorama / orama

🌌 Fast, dependency-free, full-text and vector search engine with typo tolerance, filters, facets, stemming, and more. Works with any JavaScript runtime, browser, server, service!

Home Page:https://docs.orama.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot add OpenAI API Key

hckhanh opened this issue · comments

Describe the bug

I cannot input the OpenAI API Key on my dashboard.

image

To Reproduce

  1. Open Orama Cloud account
  2. Enter the OpenAI API Key

Expected behavior

I can add the key

Environment Info

OS: MacOS 14.3.1

Affected areas

Initialization, Data Insertion, Search

Additional context

Oram Cloud

Additionally, I want to set the restriction key, not all permission key. Which necessary permissions do I need to create the key?

Hi @hckhanh, we'll dig into that. Let me add my colleagues @allevo and @g-francesca to the conversation. Just in case, I'd recommend you to join our Slack support channel at https://orama.to/slack in case we need to ask for your email for triaging this (and keep it private)

Thank you @micheleriva.

I can add the key right now, I figured out the least permissions for the key to work

image

Hi! thanks for opening this issue.
If I understood correctly the problem is to set the correct permission for the OpenAI api key. Orama should require only read to model + embeddings. We probably omitted from the documentation, we have to fix it!

If the issue is resolved, can I close this issue?

Model: Read
Embeddings: Write

Can I set it to readonly key? @allevo

We use:

  • the /v1/models API to check if the APIKEY is correct. This is made during the insertion
  • the /v1/embeddings API to calculate the embeddings. This is made during the deployment
    So, both are required.