Skip to content

Conversation

@Oxyjun
Copy link
Contributor

@Oxyjun Oxyjun commented Nov 27, 2024

Summary

  1. Adding a new "OpenRouter" page under "Model Providers".

Screenshots (optional)

Documentation checklist

  • The documentation style guide has been adhered to.
  • If a larger change - such as adding a new page- an issue has been opened in relation to any incorrect or out of date information that this PR fixes.
  • Files which have changed name or location have been allocated redirects.

@github-actions github-actions bot added size/s product:ai-gateway AI Gateway: https://developers.cloudflare.com/ai-gateway/ labels Nov 27, 2024
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Nov 27, 2024

Deploying cloudflare-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 3d1a608
Status: ✅  Deploy successful!
Preview URL: https://585db1d7.cloudflare-docs-7ou.pages.dev
Branch Preview URL: https://jun-ai-gateway-open-router.cloudflare-docs-7ou.pages.dev

View logs

@github-actions
Copy link
Contributor

github-actions bot commented Nov 27, 2024

Files with changes (up to 15)

Original Link Updated Link
https://developers.cloudflare.com/ai-gateway/providers/open-router/ https://jun-ai-gateway-open-router.cloudflare-docs-7ou.pages.dev/ai-gateway/providers/open-router/
https://developers.cloudflare.com/ai-gateway/providers/grok/ https://jun-ai-gateway-open-router.cloudflare-docs-7ou.pages.dev/ai-gateway/providers/grok/
https://developers.cloudflare.com/ai-gateway/providers/openai/ https://jun-ai-gateway-open-router.cloudflare-docs-7ou.pages.dev/ai-gateway/providers/openai/
https://developers.cloudflare.com/ai-gateway/providers/perplexity/ https://jun-ai-gateway-open-router.cloudflare-docs-7ou.pages.dev/ai-gateway/providers/perplexity/
https://developers.cloudflare.com/ai-gateway/providers/anthropic/ https://jun-ai-gateway-open-router.cloudflare-docs-7ou.pages.dev/ai-gateway/providers/anthropic/
https://developers.cloudflare.com/ai-gateway/providers/azureopenai/ https://jun-ai-gateway-open-router.cloudflare-docs-7ou.pages.dev/ai-gateway/providers/azureopenai/
https://developers.cloudflare.com/ai-gateway/providers/bedrock/ https://jun-ai-gateway-open-router.cloudflare-docs-7ou.pages.dev/ai-gateway/providers/bedrock/
https://developers.cloudflare.com/ai-gateway/providers/cohere/ https://jun-ai-gateway-open-router.cloudflare-docs-7ou.pages.dev/ai-gateway/providers/cohere/
https://developers.cloudflare.com/ai-gateway/providers/groq/ https://jun-ai-gateway-open-router.cloudflare-docs-7ou.pages.dev/ai-gateway/providers/groq/
https://developers.cloudflare.com/ai-gateway/providers/huggingface/ https://jun-ai-gateway-open-router.cloudflare-docs-7ou.pages.dev/ai-gateway/providers/huggingface/
https://developers.cloudflare.com/ai-gateway/providers/google-ai-studio/ https://jun-ai-gateway-open-router.cloudflare-docs-7ou.pages.dev/ai-gateway/providers/google-ai-studio/
https://developers.cloudflare.com/ai-gateway/providers/ https://jun-ai-gateway-open-router.cloudflare-docs-7ou.pages.dev/ai-gateway/providers/
https://developers.cloudflare.com/ai-gateway/providers/mistral/ https://jun-ai-gateway-open-router.cloudflare-docs-7ou.pages.dev/ai-gateway/providers/mistral/
https://developers.cloudflare.com/ai-gateway/providers/replicate/ https://jun-ai-gateway-open-router.cloudflare-docs-7ou.pages.dev/ai-gateway/providers/replicate/
https://developers.cloudflare.com/ai-gateway/providers/vertex/ https://jun-ai-gateway-open-router.cloudflare-docs-7ou.pages.dev/ai-gateway/providers/vertex/

@Oxyjun Oxyjun self-assigned this Nov 27, 2024
@github-actions github-actions bot added size/m and removed size/s labels Nov 27, 2024
```bash title="Request"
curl -X POST https://gateway.ai.cloudflare.com/v1/ACCOUNT_TAG/GATEWAY/openrouter/v1/chat/completions \
--header 'content-type: application/json' \
--header 'Authorization: Bearer OPENROUTER_TOKEN' \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
--header 'Authorization: Bearer OPENROUTER_TOKEN' \
--header 'Authorization: Bearer <OPENROUTER_TOKEN>' \

curl -X POST https://gateway.ai.cloudflare.com/v1/ACCOUNT_TAG/GATEWAY/openrouter/v1/chat/completions \
--header 'content-type: application/json' \
--header 'Authorization: Bearer OPENROUTER_TOKEN' \
--data '{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kathayl kathayl merged commit 4d3b307 into production Nov 27, 2024
12 checks passed
@kathayl kathayl deleted the jun/ai-gateway/open-router branch November 27, 2024 17:55
harshil1712 pushed a commit that referenced this pull request Dec 3, 2024
* Adding OpenRouter as a new model provider.

* Adding H3s to examples.

* Hiding redundant Overview page.

* Adding "cURL" as H3s where applicable.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

product:ai-gateway AI Gateway: https://developers.cloudflare.com/ai-gateway/ size/m

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants