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

No Logs in Cloudflare AI Gateway [BUG] #212

Open
ufulu opened this issue Mar 28, 2024 · 0 comments
Open

No Logs in Cloudflare AI Gateway [BUG] #212

ufulu opened this issue Mar 28, 2024 · 0 comments

Comments

@ufulu
Copy link

ufulu commented Mar 28, 2024

I am running unsaged via docker without problems. I love it!
I now wanted to try out the new Cloudflare Gateway and have the following in my .env.local:

OPENAI_API_KEY=sk-XXX
OPENAI_API_URL=https://gateway.ai.cloudflare.com/v1/XXX/MY_GATEWAY
OPENAI_API_TYPE=openai

My issue is that no logs appear in cloudflare.

If I issue the following from the console, it appears in the logs. What am I missing?

curl -X POST https://gateway.ai.cloudflare.com/v1/XXX/MY_GATEWAY \
  -H 'Content-Type: application/json' \
  -d '[
  {
    "provider": "openai",
    "endpoint": "chat/completions",
    "headers": {
      "authorization": "Bearer sk-XXX",
      "content-type": "application/json"
    },
    "query": {
      "model": "gpt-3.5-turbo",
      "messages": [
        {
          "role": "user",
          "content": "This is a test from the console"
        }
      ]
    }
  }
]'
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

No branches or pull requests

1 participant