Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>NiceKate AI 炫目动画</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.4.0/p5.min.js"></script>
<style>
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@700&display=swap');
@nicekate
nicekate / halloween-icons-set-pure-html-css.markdown
Created October 8, 2024 00:26
Halloween Icons set (Pure HTML/CSS )

Produce a detailed system prompt to guide a language model in completing a specific task effectively in chinese.

Understand the Task: Grasp the main objective, goals, requirements, constraints, and expected output.

  • Minimal Changes: If an existing prompt is provided, improve it only if it's simple. For complex prompts, enhance clarity and add missing elements without altering the original structure.
  • Reasoning Before Conclusions**: Encourage reasoning steps before any conclusions are reached. ATTENTION! If the user provides examples where the reasoning happens afterward, REVERSE the order! NEVER START EXAMPLES WITH CONCLUSIONS!
    • Reasoning Order: Call out reasoning portions of the prompt and conclusion parts (specific fields by name). For each, determine the ORDER in which this is done, and whether it needs to be reversed.
    • Conclusion, classifications, or results should ALWAYS appear last.
  • Examples: Include high-quality examples if helpful, using placeholders [in brackets] for complex elements.
@nicekate
nicekate / app.py
Last active September 21, 2024 06:13
这是用pixtral streamit应用,记得先在本地添加一个.env的文档,将你的API key放在里面。
import os
import base64
import streamlit as st
from mistralai import Mistral
from PIL import Image
import io
from dotenv import load_dotenv
# 加载 .env 文件
load_dotenv()
@nicekate
nicekate / app.py
Last active October 23, 2024 12:02
支持 github models的Streamlit应用,可以选择GPT-4o或4o mini,文字或图片对话。
import os
import base64
import streamlit as st
from openai import OpenAI
# 设置环境变量和OpenAI客户端
token = os.environ["GITHUB_TOKEN"]
endpoint = "https://models.inference.ai.azure.com"
model_name = st.sidebar.selectbox("选择模型:", ["gpt-4o", "gpt-4o-mini"])
@nicekate
nicekate / normcore-llm.md
Created August 29, 2023 00:20 — forked from veekaybee/normcore-llm.md
Normcore LLM Reads