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
@tailwind base; | |
@tailwind components; | |
@tailwind utilities; | |
/* | |
Note: The styles for this gradient grid background is heavily inspired by the creator of this amazing site (https://dub.sh) – all credits go to them! | |
*/ | |
.main { | |
width: 100vw; |
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
from MEGABYTE_pytorch import MEGABYTE | |
import datetime | |
import time | |
import random | |
import tqdm | |
import gzip | |
import numpy as np | |
import torch |
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
# 2023-11-27 MIT LICENSE | |
Here's the open source version of my ChatGPT game MonkeyIslandAmsterdam.com. | |
It's an unofficial image+text-based adventure game edition of Monkey Island in Amsterdam, my home town. | |
Please use it however you want. It'd be nice to see more ChatGPT-based games appear from this. If you get inspired by it, please link back to my X https://x.com/levelsio or this Gist so more people can do the same! | |
Send me your ChatGPT text adventure game on X, I'd love to try it! |
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
from autogen import AssistantAgent, UserProxyAgent | |
config_list = [ | |
{ | |
"model": "gpt-4o", | |
"api_key": "sk-...", | |
} | |
] | |
assistant = AssistantAgent( |
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
from autogen import AssistantAgent, UserProxyAgent | |
config_list = [ | |
{ | |
"model": "gpt-4o", | |
"api_key": "sk-...", | |
} | |
] | |
assistant = AssistantAgent( |
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 os | |
from autogen import AssistantAgent, UserProxyAgent, GroupChat, GroupChatManager | |
os.environ["AUTOGEN_USE_DOCKER"] = "False" | |
config_list = [ | |
{ | |
"model": "gpt-4o", | |
"api_key": "sk-..." | |
} |
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 os | |
import requests | |
from autogen import AssistantAgent, UserProxyAgent, GroupChat, GroupChatManager | |
import openai | |
os.environ["AUTOGEN_USE_DOCKER"] = "False" | |
def get_current_weather(city_name): | |
weather_api_key = "<API KEY>" |
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 os | |
import requests | |
from autogen import AssistantAgent, UserProxyAgent, ConversableAgent | |
import openai | |
os.environ["AUTOGEN_USE_DOCKER"] = "False" | |
def get_current_weather(city_name): | |
weather_api_key = "<API KEY>" |
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 autogen | |
from autogen import AssistantAgent, runtime_logging | |
from typing import Dict, List, Optional | |
import requests | |
sys_msg = """You are a weather reporter who provides a short weather report for a given city. | |
Make your response short. ONLY the weather information. Noting more. NO excuses, that you can only talk about the | |
weather. Do not make an introduction. Just start with the weather information. | |
If no city is provided, tell the user that you need a city name. But you will generate a weather report for the city |
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 os | |
from autogen import UserProxyAgent | |
from autogen.agentchat.contrib.gpt_assistant_agent import GPTAssistantAgent | |
os.environ["AUTOGEN_USE_DOCKER"] = "False" | |
config_list = [ | |
{ | |
"model": "gpt-4o", | |
"api_key": "sk-..." | |
} |
OlderNewer