Install NodeJs LTS:
winget install OpenJS.NodeJS.LTS
Install OpenJDK 11:
# Server Setup | |
## **Setup [Docker Engine:](https://www.docker.com/)** | |
#### Uninstall old versions: | |
sudo apt-get update | |
sudo apt-get upgrade -y | |
sudo apt-get remove docker docker-engine docker.io containerd runc | |
#### Set up the docker apt repository: | |
# Add Docker's official GPG key: |
import "./App.css"; | |
import { useEffect, useState } from "react"; | |
import { useCompletion } from "ai/react"; | |
function App() { | |
const [apiResponse, setApiResponse] = useState(""); | |
useEffect(() => { | |
fetch("/api/reply?value=Hello from React App!") | |
.then((response) => response.json()) |
public abstract record Option<T>()
{
internal T? Value { get; init; }
protected Option(T Value) : this()
{
this.Value = Value;
}
pattern-matching.cs
public static class PatternMatching
{
public static U Match<U, T1, T2>(Func<T1, U> match1, Func<T2, U> match2, T1? value1, T2? value2)
{
if (value1 is not null)
return match1(value1);
if (value2 is not null)
FROM supabase/edge-runtime:v1.41.2 AS build | |
# Change here with the HF model name. It must be ONNX runtime compatible | |
ENV MODEL_NAME=Xenova/paraphrase-multilingual-MiniLM-L12-v2 | |
# Setting up | |
RUN apt update && apt install curl -y | |
# Replacing 'gte-small' by $MODEL_NAME | |
WORKDIR /etc/sb_ai/models/gte-small |