Skip to content
This repository was archived by the owner on Nov 27, 2025. It is now read-only.

Conversation

@bytemain
Copy link
Contributor

@bytemain bytemain commented Jan 18, 2023

close: #8

Now you can use fetchOptions to diable credentials:

    const openai = new OpenAIClient({
      apiKey: bot.env.OPENAI_API_KEY,
      fetchOptions: {
        credentials: undefined,
      },
    });

now it works on CloudFlare Workers(have tested) , it actually overrided the ky request params:
CleanShot 2023-01-18 at 12 53 29@2x

@bytemain bytemain changed the title feat: support pass through fetch options feat: support pass through fetch options Jan 18, 2023
@rileytomasek rileytomasek merged commit 291d043 into dexaai:master Mar 6, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Don't work in CFWokers. Will throw The credentials field on RequestInitializerDict is not implemented;

2 participants