GithubHelp home page GithubHelp logo

cyclenerd / google-cloud-gcp-openai-api Goto Github PK

View Code? Open in Web Editor NEW
81.0 3.0 16.0 2.83 MB

🌴 Drop-in replacement REST API for Vertex AI (PaLM 2, Codey, Gemini) that is compatible with the OpenAI API specifications

License: Apache License 2.0

Dockerfile 5.83% Shell 16.01% Python 32.27% Jupyter Notebook 45.89%
chatbot google google-cloud google-cloud-platform openai openai-api openai-chatgpt bard-api chatgpt chatgpt-api

google-cloud-gcp-openai-api's Introduction

Hey everyone, Nils here! πŸ‘‹

I'm primarily an Ops guy with a toolbox of Bash scripts and Perl utilities, hoping they might be useful for your projects too. Pull requests are always welcome!

You can also find me on LinkedIn if you want to connect.


LinkedIn Terraform Docker GitHub Mastodon

google-cloud-gcp-openai-api's People

Contributors

cyclenerd avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

google-cloud-gcp-openai-api's Issues

(Allow unauthenticated invocations) cannot be set.

After May 3rd, deploying this container as a public API (allowing unauthenticated calls) in Google Cloud Run will be disabled by default. Changing this setting requires an email address with domain management permissions, which I do not have. Is it possible to achieve public, unauthenticated access using methods like intranet penetration?

[Translation text]

Feature request: Please Update Documentation with the following for Windows Users

While deploying your program locally. I was simply converting the exports

by changing export to set.
Completely forgetting (despite a lot of years), to remove the double-quotes.
once I did that it worked like a charm.
linux:
export DEBUG="True"
export OPENAI_API_KEY="sk-XYZ"
export MODEL_NAME="gemini-pro"

Win:
set DEBUG=True
set OPENAI_API_KEY=sk-XYZ
set MODEL_NAME=gemini-pro

I do want to thank you, this will be solving an issue with using autogen, that I was tired of messing with, and I am so grateful you wrote this api! Thank you!

Error "404 - /v1/models was not found on this server." after Colab deployment

I deployed this via the Colab feature:

  • created a project in Google Cloud Console
  • set domain restricted sharing to "allow" (in this order)
  • clicked "open in colab"
  • deployed all steps using the play button, my openAI key was in the form sk-123-only13letters
  • went to the frontend URL, in my case https://chatbot-ui-XXX-ew.a.run.app/
  • only a wheel is spinning there, sometime I see the message "Error fetching models.
    Make sure your OpenAI API key is set in the bottom left of the sidebar.
    If you completed this step, OpenAI may be experiencing issues. Error 500"
  • in the Cloud Run logs, I find an Error message "POST500666 B135 msChrome 121 https://chatbot-ui-35XXXa-ew.a.run.app/api/models "
  • when I expand this, I find
{
httpRequest: {
latency: "0.135149560s"
protocol: "HTTP/1.1"
referer: "https://chatbot-ui-35XXX-ew.a.run.app/"
remoteIp: "2a02:3100:5867:8701:a596:638d:4670:c449"
requestMethod: "POST"
requestSize: "862"
requestUrl: "https://chatbot-ui-35XXX.a.run.app/api/models"
responseSize: "666"
serverIp: "2001:4860:4802:36::35"
status: 500
userAgent: "Mozilla/5.0 (X11; CrOS x86_64 14541.0.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36"
}
insertId: "65a158cd0006fcb5d44be846"
labels: {
instanceId: "0087599d427185aebb313689bb408e0c88da7eaf33934605a2ff3204ad1649412c336d290dadc8458e2f8ef07655d8a216fa860c3d3d88a53cd44f259ff3202f6a9c"
}
logName: "projects/thorstenstaerk-nils2/logs/run.googleapis.com%2Frequests"
receiveTimestamp: "2024-01-12T15:20:45.618651319Z"
resource: {
labels: {
service_name: "chatbot-ui"
project_id: "thorstenstaerk-nils2"
revision_name: "chatbot-ui-00001-gfs"
configuration_name: "chatbot-ui"
location: "europe-west1"
}
type: "cloud_run_revision"
}
severity: "ERROR"
spanId: "13873342680540356080"
timestamp: "2024-01-12T15:20:45.320472Z"
trace: "projects/thorstenstaerk-nils2/traces/b4419a8dd29302b4eb53be48e42bac76"
}

When I look at the next messages in the log, they are not marked as Error messages, but I find one that I regard as relevant:

The requested URL /v1/models was not found on this server. That’s all we know.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.