This file contains 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
import asyncio | |
import json | |
import os | |
from typing import Optional | |
from contextlib import AsyncExitStack | |
from mcp import ClientSession | |
from mcp.client.sse import sse_client | |
from openai import OpenAI |
This file contains 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
import { | |
Experimental_LanguageModelV1Middleware, | |
LanguageModelV1StreamPart, | |
} from "ai"; | |
import { HermesToolCallPrompt } from "./prompts"; | |
export const customMiddleware: Experimental_LanguageModelV1Middleware = { | |
transformParams: async ({ params }) => { | |
console.log("transformParams called"); |
This file contains 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
"use client"; | |
import { useChat } from "ai/react"; | |
import { createFriendliAI } from "@friendliai/ai-provider"; | |
import { convertToCoreMessages, streamText } from "ai"; | |
import { useState } from "react"; | |
export default function Chat() { | |
const [token, setToken] = useState<string>(""); |
This file contains 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
@layer base { | |
:root { | |
/* Sugar-high theme */ | |
--sh-class: #4d9ef6; | |
/* Brighter blue for class */ | |
--sh-identifier: #6caedd; | |
/* Lighter blue for identifiers */ | |
--sh-sign: #cdd3de; | |
/* Lighter gray to ensure signs are visible */ |
This file contains 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
name: BUILD and PUSH to GHR | |
on: | |
workflow_dispatch: | |
push: | |
branches: ["main"] | |
env: | |
REGISTRY: ghcr.io | |
REGISTRY_IMAGE: ghcr.io/${{ github.repository }} |
This file contains 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>lipsum</title> | |
<link rel="preconnect" href="https://fonts.googleapis.com"> | |
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> | |
<link |
This file contains 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
⭐ Total Stars: 34 | |
➕ Total Commits: 1,999 | |
🔀 Total PRs: 76 | |
🚩 Total Issues: 66 | |
📦 Contributed to: 34 |
This file contains 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
🌞 Morning 205 commits █████▌░░░░░░░░░░░░░░░ 26.2% | |
🌆 Daytime 345 commits █████████▎░░░░░░░░░░░ 44.1% | |
🌃 Evening 156 commits ████▏░░░░░░░░░░░░░░░░ 19.9% | |
🌙 Night 76 commits ██░░░░░░░░░░░░░░░░░░░ 9.7% |
This file contains 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
🗣 Commented on #2 in GGos3/blog |
This file contains 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
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser | |
irm get.scoop.sh | iex | |
scoop bucket add extras | |
scoop install runcat |
NewerOlder