Movatterモバイル変換


[0]ホーム

URL:


Skip to content
DEV Community
Log in Create account

DEV Community

Cover image for Vanilla worker playground for cloudflare AI
Casualwriter
Casualwriter

Posted on

     

Vanilla worker playground for cloudflare AI

This is a submission for theCloudflare AI Challenge.

What I Built

Vanilla worker playground for cloudflare AI, also act as cloudflare API proxy.

Demo

Demo:https://playground.pingshan.uk/

Image description

My Code

github:https://github.com/casualwriter/vanilla-worker-playground
source:https://github.com/casualwriter/vanilla-worker-playground/blob/main/vanilla-worker-playground.js

Journey

I just explorer to use cloudflare AI API, and make the worker as API proxy first, and code the html page locally.

the html page is very simple in less than 300 lines code, and I realize that I can put it inside worker. that's really happy thing with small html page.

It is a chatbot for all major AI chat models available in clouflare AI API, which may switch different AI modes during a conversation. After play with cluoflare AI models, the conversation may export/print for reference. btw, this program also support voice recognition (sorry not use AI now). If have time, I will use cloudflare AI for voice recognition and speak.

In additional, this worker also acts as API proxy enable html page calling clouflare API anywhere.

Hope you like it, have a nice day,


dev user name: casualwriter
https://dev.to/casualwriter

Top comments(0)

Subscribe
pic
Create template

Templates let you quickly answer FAQs or store snippets for re-use.

Dismiss

Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment'spermalink.

For further actions, you may consider blocking this person and/orreporting abuse

like all simple things. working on simple, lightweight, Independence, portable solution.
  • Location
    hong kong
  • Joined

Trending onDEV CommunityHot

DEV Community

We're a place where coders share, stay up-to-date and grow their careers.

Log in Create account

[8]ページ先頭

©2009-2025 Movatter.jp