Skip to content

Commit

Permalink
fix(cli): correct openAIEndpoint to openaiEndpoint
Browse files Browse the repository at this point in the history
The CLI option `openAIEndpoint` was renamed to `openaiEndpoint` for
consistency. Updated the example usage to reflect this change.
  • Loading branch information
ryoppippi committed Aug 22, 2024
1 parent ca64726 commit d6a3c27
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const argv = cli({
description: "The endpoint to Ollama server.",
},

openAIEndpoint: {
openaiEndpoint: {
type: validateURL,
alias: "o",
default: "https://api.openai.com",
Expand Down Expand Up @@ -52,7 +52,7 @@ const argv = cli({

"",

"curxy --endpoint http://localhost:11434 --openAIEndpoint https://api.openai.com --port 8800",
"curxy --endpoint http://localhost:11434 --openai-endpoint https://api.openai.com --port 8800",

"",

Expand All @@ -65,7 +65,7 @@ const { flags } = argv;

if (import.meta.main) {
const app = createApp({
openAIEndpoint: flags.openAIEndpoint,
openAIEndpoint: flags.openaiEndpoint,
ollamaEndpoint: flags.endpoint,
OPENAI_API_KEY,
});
Expand Down

0 comments on commit d6a3c27

Please sign in to comment.