Giter VIP home page Giter VIP logo

Comments (10)

anasfik avatar anasfik commented on May 29, 2024 2

Does make since, thank for notifying me about it. I will expose its interface then.

from openai.

badboy-tian avatar badboy-tian commented on May 29, 2024 1

I add OpenAI.baseUrl #22

from openai.

badboy-tian avatar badboy-tian commented on May 29, 2024 1

@anasfik

from openai.

badboy-tian avatar badboy-tian commented on May 29, 2024 1

@anasfik Because openai has been banned in some country, we have to create a proxy server to forward the openai interface, so we hope we can set the baseUrl manually.

from openai.

anasfik avatar anasfik commented on May 29, 2024

Hello, sorry for late response, yes sure it can be exposed to the outside to be modified, but by what it can be replaced ? since all responsces of the library are based on OpenAI APIs.

if any kinf of error happens, the dev will get that error thrown, and so he will be aware.

from openai.

DogeVenci avatar DogeVenci commented on May 29, 2024

Due to certain countries or regions being unable to directly access the OpenAI API , Some people use Self-built reverse proxies like nginx to forward traffic to OpenAI API endpoint
Adding custom API endpoint or proxy options can make it more convenient for users to use.

from openai.

badboy-tian avatar badboy-tian commented on May 29, 2024

+1

from openai.

trevorwang avatar trevorwang commented on May 29, 2024

It would be better if a config can be provided to customize apiKey, baseUrl, proxy, org etc.

Dart named parameter is designed for this scenario

from openai.

anasfik avatar anasfik commented on May 29, 2024

@badboy-tian thank you, for your help. the contribution is merged, passes the test, and is available now in the 1.8.3 version.

from openai.

anasfik avatar anasfik commented on May 29, 2024

I will close this currently!

from openai.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.