Comments (2)
You can create as many instances of OpenAIClient
as you need with custom settings to fulfill this purpose.
from com.openai.unity.
For example:
// Vanilla OpenAI
var openai = new OpenAIClient("apikey");
// Custom proxy
var authToken = await LoginAsync();
var auth = new OpenAIAuthentication($"sess-{authToken}");
var settings = new OpenAISettings(domain: "api.your-custom-domain.com");
var proxyAI = new OpenAIClient(auth, settings);
// Azure OpenAI gpt3.5-turbo
var azureAuth = new OpenAIAuthentication("sk-apiKey");
var gpt35TurboSettings = new OpenAISettings(resourceName: "your.resource.name", deploymentId: "gpt-3.5-turbo", apiVersion: "api-version");
var azureGpt35Turbo = new OpenAIClient(azureAuth, gpt35TurboSettings);
// Azure OpenAI gpt-4
var azuregpt4Settings = new OpenAISettings(resourceName: "your.resource.name", deploymentId: "gpt-4", apiVersion: "api-version");
var azureGpt4 = new OpenAIClient(azureAuth, azuregpt4Settings);
from com.openai.unity.
Related Issues (20)
- getting errors about content filters consistently since today HOT 2
- Failed to find valid configuration when passing api string in OpenAIClient.ctr HOT 6
- Failed to find a valid OpenAIConfiguration, when using environment variables or .openai in home dir HOT 5
- iOS: JsonSerializationException: Cannot deserialize readonly or fixed size dictionary: System.Collections.Generic.IReadOnlyDictionary HOT 22
- Bad performance when calling the constructor AudioTranscriptionRequest(AudioClip) HOT 3
- JsonSerializationOptions is inaccessible due to its protection level HOT 2
- Error when using the library on a Meta Quest 3 HOT 1
- Can Chat Vision upload a local image? HOT 4
- Issue with Chat Vision HOT 3
- Custom Assistant in Sample ChatBehaviour HOT 8
- Can't compile after updating plugins?
- ArgumentException: Buffer Too Small in UploadFileAsync Method HOT 4
- A member with the name 'name' already exists on 'OpenAI.Chat.Message' HOT 4
- "Run Thread" methods results in "Internal Server Error"
- OpenAI proxy server like api.pawan.krd
- CreateTranscriptionAsync in the same second HOT 2
- Token to request ChatGPT thru a proxy
- Firebase Function
- parameter: messages with role 'tool' must be a response to a preceeding message with 'tool_calls'
- Streaming + function calling
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 com.openai.unity.