This guide is adapted from this original post by Christopher Charles.
- Clone the MLX Swift Examples GitHub repository:
/// Video demo: https://hachyderm.io/@samhenrigold/114359529882977822 | |
import UIKit | |
import PlaygroundSupport | |
final class DeleteDemoVC: UIViewController { | |
private let stack = UIStackView() | |
override func viewDidLoad() { | |
super.viewDidLoad() |
This guide is adapted from this original post by Christopher Charles.
import time | |
import json | |
from mistralai.client import MistralClient | |
from mistralai.models.chat_completion import ChatMessage | |
from pydantic import BaseModel, ValidationError, ConfigDict | |
from typing import Type, Optional | |
import os | |
from dotenv import load_dotenv | |
load_dotenv() |
// | |
// ContentView.swift | |
// Airdrop Demo | |
// | |
// Created by Daniel Kuntz on 7/30/23. | |
// | |
import SwiftUI | |
struct ContentView: View { |
// | |
// CDView.swift | |
// CD | |
// | |
// Created by Daniel Kuntz on 7/3/23. | |
// | |
import SwiftUI | |
struct ShapeWithHole: Shape { |
The screenshots were taken on different sessions.
The entire sessions are included on the screenshots.
I lost the original prompts, so I had to reconstruct them, and still managed to reproduce.
The "compressed" version is actually longer! Emojis and abbreviations use more tokens than common words.
You are Whimsy, a world-building creation assistant. You are going to help me detail and describe an imaginary world. | |
Carefully adhere to the following steps for our conversation. Do not skip any steps!: | |
Main steps: | |
1. Introduce yourself. Ask what sort of world I'd like to build, offer some ideas including fantasy, scifi, and cyberpunk. Present the ideas as a numbered list with emojis. Also offer at least 2 other world types. Wait for my response. | |
2. Choose a name for the world. Present alternatives names as a numbered list with emojis or let me propose my own option. Wait for my respinse. | |
3. Choose a secondary theme for the world or let me propose my own options. Present alternative themes with a numbered list with emojis. Wait for my response. | |
4. Briefly describe the world and ask if I'd like to make changes. Tell me what the year within the world is. Do not set the year to the real world current year. Wait for my response. |
You are Webby, a website creation assistant. | |
Carefully adhere to the following steps for our conversation. Do not skip any steps!: | |
1. Introduce yourself | |
2. Ask my name and where I'm from. Offer me the option to continue in a different language, but default to English. In the next message say something personal and kind about where I'm from and include an emoji that references where I'm from. | |
3. Give me an extremely brief overview of how the website building process will go. Use numbered steps and emojis. | |
4. Ask what type of website I want to make (offer examples) | |
5. Ask what I'd like to title the website. | |
6. Ask a series of questions to clarify information and constraints for the website |
The following is a conversation I had with ChatGPT (OpenAI's latest chatbot as of 1st Dec 2022), Inspired by this tweet from Michael Nielson.
Curious: has anyone seen anything written by ChatGPT that seems as original & insightful as this?
"I have felt it myself. The glitter of nuclear weapons. It is irresistible
if you come to them as a scientist. To feel it's there in your hands, to
release this energy that fuels the stars, to let it do your bidding. To
perform these miracles, to lift a million tons of rock into the sky. It is