This is how I got react-native to compile on Apple Silicon without rosetta.
$ pod cache clean --all
$ yarn cache clean| #!/usr/bin/env python | |
| from collections import namedtuple | |
| import anthropic | |
| import os, sys, json | |
| import argparse | |
| system_msg = "Answer as simply and concisely as possible" | |
| Command = namedtuple('Command', ['system', 'message', 'keep_history'], defaults=['', '', False]) |
| #!/usr/bin/env python | |
| from openai import Client | |
| import os, sys, json | |
| import argparse | |
| system_msg = { | |
| "role": "system", | |
| "content": "Answer as simply and concisely as possible", | |
| } |