Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Customizing API base URL. #54

Open
MeetAlpha opened this issue Oct 14, 2023 · 1 comment
Open

Customizing API base URL. #54

MeetAlpha opened this issue Oct 14, 2023 · 1 comment

Comments

@MeetAlpha
Copy link

I have API from other base URLs. How to cusomize the URL?

@amnhdv
Copy link

amnhdv commented Nov 19, 2023

Go to the file src/helpers/determineNextAction.ts and modify these parts:

  taskInstructions: string,
  previousActions: ParsedResponseSuccess[],
  simplifiedDOM: string,
  maxAttempts = 3,
  notifyError?: (error: string) => void
) {
  // ...

  const openai = new OpenAIApi(
    new Configuration({
      apiKey: customApiKey, // Use the custom API key
      basePath: customApiBaseUrl, // Use the custom API endpoint
    })
  );

  // ...
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants