Hey folks,
I've tried to get custom properties working a couple different ways... but either i don't know where to look or they don't show up on the Helicone console. What am i missing?
Jamming em in in both spots below and don't see them anywhere on the requests.
import { HeliconeAsyncOpenAI as OpenAI } from '@helicone/helicone';
describe('helicone params test', () => {
it('basic test to see if headers are going through', async () => {
const apiKey = process.env['OPENAI_API_KEY'];
const openai = new OpenAI({
apiKey,
heliconeMeta: {
apiKey: process.env['HELICONE_API_KEY'],
},
defaultHeaders: {
'Helicone-Property-Environment': 'TEST',
'Helicone-Property-Feature': 'general',
},
});
const response = await openai.completions.create(
{
model: 'gpt-3.5-turbo-instruct',
prompt: 'Once upon a time',
},
{
headers: {
'Helicone-Property-Environment': 'TEST2',
'Helicone-Property-Feature': 'general2',
},
},
);
console.log(`response: `, response);
});
});
Let me know, i'm sure this is user error π