Skip to content

[Bug]: Wrong Api_host definition in VertexAI examples #2964

Description

@MerzDaniel

File Name

gemini/chat-completions/intro_chat_completions_api.ipynb

What happened?

The doc incorrectly refers to the location specific api to also having a location specific subdomain. My patch fixes that

Fix:
main...MerzDaniel:generative-ai:patch-1#diff-8e57a7af06dbc565e842aedbbd36d316edf8dadfaee56a3a6ecb93905fe4a709

Relevant log output

<p><b>404.</b> <ins>That’s an error.</ins>
  <p>The requested URL <code>/v1beta1/projects/XXX/locations/eu-west3/endpoints/openapi/chat/completions</code> was not found on this server.  <ins>That’s all we know.</ins>

With correct domain (without location prefix on subdomain) the examples work

Code of Conduct

  • I agree to follow this project's Code of Conduct

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions