Comments (10)
Does make since, thank for notifying me about it. I will expose its interface then.
from openai.
I add OpenAI.baseUrl #22
from openai.
from openai.
@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.
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.
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.
+1
from openai.
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.
@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.
I will close this currently!
from openai.
Related Issues (20)
- Collection dependency to 1.17.1 for flutter_test HOT 1
- Http errors are not sent to the stream as errors? HOT 1
- Failed host lookup: 'api.openai.com' HOT 1
- Got an exception when run on web
- Chat completion endpoint does not accept an array of strings in a system message HOT 1
- imageUrl Doesn't Work HOT 3
- Unhandled Exception caused by jsonDecode(data) in postStream() HOT 2
- Need to add the field 'usage' to OpenAIStreamChatCompletionModel HOT 1
- [Audio] createTranscription does not have 'timestamp_granularities' parameter
- The ability to specify toolChoice stopped working in OpenAI.instance.chat.create
- Web compatibility for file upload
- gpt-4 support HOT 3
- Not quite working - line breaks missing, no code highlighting? HOT 1
- TimeoutException after 0:00:30.000000: Future not completed HOT 4
- Feature Request: File Upload from Uint8List with filename HOT 1
- Feature Request: Add a Parameter to Return Messages as Strings Instead of Objects HOT 2
- Streaming returning nonsense HOT 2
- Can't use createSpeech without saving to file. HOT 1
- Stream GPT-4 Chat Completion causes unhandled exception HOT 1
- TTS file length/metadata is faulty for AAC HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openai.