Skip to content

Conversation

@daisyfaithauma
Copy link
Contributor

Summary

  • Refined details for AIG provider details
  • Descriptive prerequisites

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.

@daisyfaithauma daisyfaithauma requested review from a team, G4brym, kathayl and mchenco as code owners January 16, 2025 16:33
@daisyfaithauma daisyfaithauma changed the title Refined details for AIG provider details [AIG] Refined details for AIG provider details Jan 16, 2025
@github-actions github-actions bot added size/m product:ai-gateway AI Gateway: https://developers.cloudflare.com/ai-gateway/ labels Jan 16, 2025
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Jan 16, 2025

Deploying cloudflare-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 795d045
Status: ✅  Deploy successful!
Preview URL: https://6c113e80.cloudflare-docs-7ou.pages.dev
Branch Preview URL: https://aig-provider-details.cloudflare-docs-7ou.pages.dev

View logs

@github-actions
Copy link
Contributor

github-actions bot commented Jan 16, 2025

Files with changes (up to 15)

Original Link Updated Link
https://developers.cloudflare.com/ai-gateway/providers/deepseek/ https://aig-provider-details.cloudflare-docs-7ou.pages.dev/ai-gateway/providers/deepseek/
https://developers.cloudflare.com/ai-gateway/providers/google-ai-studio/ https://aig-provider-details.cloudflare-docs-7ou.pages.dev/ai-gateway/providers/google-ai-studio/
https://developers.cloudflare.com/ai-gateway/providers/anthropic/ https://aig-provider-details.cloudflare-docs-7ou.pages.dev/ai-gateway/providers/anthropic/
https://developers.cloudflare.com/ai-gateway/providers/bedrock/ https://aig-provider-details.cloudflare-docs-7ou.pages.dev/ai-gateway/providers/bedrock/
https://developers.cloudflare.com/ai-gateway/providers/cohere/ https://aig-provider-details.cloudflare-docs-7ou.pages.dev/ai-gateway/providers/cohere/
https://developers.cloudflare.com/ai-gateway/providers/grok/ https://aig-provider-details.cloudflare-docs-7ou.pages.dev/ai-gateway/providers/grok/
https://developers.cloudflare.com/ai-gateway/providers/groq/ https://aig-provider-details.cloudflare-docs-7ou.pages.dev/ai-gateway/providers/groq/
https://developers.cloudflare.com/ai-gateway/providers/huggingface/ https://aig-provider-details.cloudflare-docs-7ou.pages.dev/ai-gateway/providers/huggingface/
https://developers.cloudflare.com/ai-gateway/providers/openai/ https://aig-provider-details.cloudflare-docs-7ou.pages.dev/ai-gateway/providers/openai/
https://developers.cloudflare.com/ai-gateway/providers/openrouter/ https://aig-provider-details.cloudflare-docs-7ou.pages.dev/ai-gateway/providers/openrouter/
https://developers.cloudflare.com/ai-gateway/providers/perplexity/ https://aig-provider-details.cloudflare-docs-7ou.pages.dev/ai-gateway/providers/perplexity/
https://developers.cloudflare.com/ai-gateway/providers/replicate/ https://aig-provider-details.cloudflare-docs-7ou.pages.dev/ai-gateway/providers/replicate/
https://developers.cloudflare.com/ai-gateway/providers/workersai/ https://aig-provider-details.cloudflare-docs-7ou.pages.dev/ai-gateway/providers/workersai/
https://developers.cloudflare.com/ai-gateway/providers/azureopenai/ https://aig-provider-details.cloudflare-docs-7ou.pages.dev/ai-gateway/providers/azureopenai/
https://developers.cloudflare.com/ai-gateway/providers/mistral/ https://aig-provider-details.cloudflare-docs-7ou.pages.dev/ai-gateway/providers/mistral/

- Your AI Gateway Account ID.
- Your AI Gateway gateway name.
- An active Replicate API token.
- The name of the Replicate model you want to use.
Copy link
Contributor

Choose a reason for hiding this comment

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

  1. think we need to check each provider individually bc looks like the replicate curl example does not include a model.
    --> which leads me to wonder if this page should be updated.

  2. looking at replicate docs they also have an sdk example we could add https://replicate.com/docs/topics/models/run-a-model#run-a-model-with-the-api


- Your AI Gateway Account ID.
- Your AI Gateway gateway name.
- An active OpenRouter API token.
Copy link
Contributor

Choose a reason for hiding this comment

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

openrouter also allows users to bring their own provider api key (BYOK)

https://openrouter.ai/docs/integrations


Your new base URL will use the data above in this structure: `https://gateway.ai.cloudflare.com/v1/{account_id}/{gateway_id}/azure-openai/{resource_name}/{deployment_name}`. Then, you can append your endpoint and api-version at the end of the base URL, like `.../chat/completions?api-version=2023-05-15`.

## Prerequisites
Copy link
Contributor

Choose a reason for hiding this comment

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

azure openai page already had a "what you need" section so this would be duplicative.
think you just need to change "what you need" to prereqs

- `{gateway_id}` refers to the name of your existing [AI Gateway](/ai-gateway/get-started/#create-gateway).
- `{model_id}` refers to the model ID of the [Workers AI model](/workers-ai/models/).

## Prerequisites
Copy link
Contributor

Choose a reason for hiding this comment

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

think prereqs should be located before the rest api section or else the order doesn't make sense

@kathayl kathayl merged commit b17c259 into production Jan 21, 2025
12 checks passed
@kathayl kathayl deleted the aig-provider-details branch January 21, 2025 19:36
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.

4 participants