This file contains hidden or 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
#!/usr/bin/env python3 | |
import requests | |
import json | |
# Define your API key here. Replace "your-api-key" with your actual API key. | |
api_key = "your-api-key" | |
# Define the ChatGPT API endpoint. | |
url = "https://api.openai.com/v1/engines/davinci-codex/completions" |
This file contains hidden or 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
#!/usr/bin/env node | |
const path = require("path"); | |
const fs = require("fs"); | |
const pty = require("node-pty"); | |
const os = require("os"); | |
// Try to find claude executable - assuming it might be in PATH | |
// or in the same directory as this wrapper | |
function findClaudeExecutable() { | |
// First try the PATH |
OlderNewer