lazeratops
08/28/2024, 9:14 AMlazeratops
08/28/2024, 9:15 AM{
id: 'portkey:gpt-4o',
config: {
provider: 'azure',
apiKey: process.env.PORTKEY_API_KEY,
portkeyConfig: 'azure-config',
apiBaseUrl: 'https://api.portkey.ai/v1/proxy',
},
},
{
id: 'portkey:gpt-4o',
config: {
provider: 'openai',
portkeyConfig: 'oai-config',
apiKey: process.env.PORTKEY_API_KEY,
apiBaseUrl: 'https://api.portkey.ai/v1/proxy',
},michaelmichaelmichael
08/28/2024, 2:43 PMlabel property to each configuration. This label will help you easily identify which provider corresponds to Azure and which to OpenAI.
Here's how you can do it:
javascript
{
id: 'portkey:gpt-4o',
label: 'gpt-4o-azure',
config: {
provider: 'azure',
apiKey: process.env.PORTKEY_API_KEY,
portkeyConfig: 'azure-config',
apiBaseUrl: 'https://api.portkey.ai/v1/proxy',
},
},
{
id: 'portkey:gpt-4o',
label: 'gpt-4o-openai',
config: {
provider: 'openai',
portkeyConfig: 'oai-config',
apiKey: process.env.PORTKEY_API_KEY,
apiBaseUrl: 'https://api.portkey.ai/v1/proxy',
},
}
This way, you can clearly see which provider is being used when reviewing the results Please let me know if you encounter any other issues or if you have any more questions!lazeratops
08/29/2024, 7:24 AM