This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This is an example endpoint built for use on Cloudflare Workers using the Hono app. | |
// This example uses Cloudflare AI to run their hosted llama model, | |
// but could easily be tweaked to suit consuming the OpenAI SDK directly. | |
// You could also just use the `fetch` API directly and skip using the SDK as well, | |
// you'd just have to set the appropriate HTTP headers and query params (API key, etc) | |
// See second example for a simpler case. | |
// References: | |
// - https://developers.cloudflare.com/workers/runtime-apis/streams/ | |
// - https://developers.cloudflare.com/workers/platform/pricing/ | |
// - For Cloudflare AI usage within worker: https://developers.cloudflare.com/workers-ai/platform/bindings/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
root: true, | |
parser: "@typescript-eslint/parser", | |
parserOptions: { | |
ecmaFeatures: { | |
jsx: true, | |
}, | |
tsconfigRootDir: __dirname, | |
project: "./tsconfig.json", | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using Xamarin.Forms; | |
namespace NativeApp | |
{ | |
public class ExtendedSlider : Slider |