Documentation Issue on Embedding Models

Noticed that the embedding example code with OpenAI python library is wrong:

client = openai.OpenAI(
    base_url="https://api.sambanova.ai/v1/embeddings",
    api_key="<your-api-key>",
)

The code returns 404 error.

The base_url should just be: base_url="https://api.sambanova.ai/v1/.

Please kindly test it and correct. Thanks.

1 Like

Hello @hxy9243,
Thank you for bringing this to our attention. We will look into the issue and ensure the necessary updates are made. In the meantime, if you have any questions, please feel free to reach out.
Thanks

Best regards,
Rohit

@hxy9243

A doc bug has been filed and it should be corrected shortly.

-Coby