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

CF_ACCOUNT_TAG #18

Open
ewosl opened this issue Feb 15, 2024 · 3 comments
Open

CF_ACCOUNT_TAG #18

ewosl opened this issue Feb 15, 2024 · 3 comments

Comments

@ewosl
Copy link

ewosl commented Feb 15, 2024

Hi @kaarthik108 ,

In class ModelWrapper:
def init(self, config: ModelConfig):
account_tag = self.secrets["CF_ACCOUNT_TAG"]

It's asking for CF_ACCOUNT_TAG in secrets, however, I don't see in the description how to add this value. Can you provide more information for this?

Thanks.

@kaarthik108
Copy link
Owner

kaarthik108 commented Feb 18, 2024

@ewosl
Sry about that, you can get the clouflare account tag from here https://developers.cloudflare.com/ai-gateway/get-started/creating-gateway/

It is completely free to use

@RobertDupuy
Copy link

If you merely create a gateway and put in the account tag the app errors with Internal Server Error coming from Cloudflare. Are there other steps besides merely creating an account?

@erin-040702
Copy link

You need to create and copy an API key from Cloudflare, then add to the secrets.toml file:
CF_ACCOUNT_TAG = "<your_key_here>"

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

4 participants