Changing the base URL for `@effect/ai-openai` requests

Is it possible to use @effect/ai-openai with a changed baseUrl? For instance DeepSeek (and many others) implement same spec as OpenAI, so just changing the baseUrl works.

OpenAI package has this;:

request.pipe(
          HttpClientRequest.prependUrl("https://api.openai.com/v1"),
          HttpClientRequest.bearerToken(options.apiKey),
          options.organizationId !== undefined
            ? HttpClientRequest.setHeader("OpenAI-Organization", Redacted.value(options.organizationId))
            : identity,
          options.projectId !== undefined
            ? HttpClientRequest.setHeader("OpenAI-Project", Redacted.value(options.projectId))
            : identity,
          HttpClientRequest.acceptJson
        )


Is it somehow possible to change the prependUrl??
Was this page helpful?