ci: fix backend tests due to new updates

This commit is contained in:
Danny Avila 2024-05-18 15:44:22 -04:00
parent 6082e26716
commit 3eabbd572e
No known key found for this signature in database
GPG key ID: 2DD9CC89B9B50364
5 changed files with 14 additions and 13 deletions

View file

@ -1014,7 +1014,7 @@ ${convo}
context,
model: this.modelOptions.model,
conversationId: this.conversationId,
user: this.user ?? this.options.req.user.id,
user: this.user ?? this.options.req.user?.id,
endpointTokenConfig: this.options.endpointTokenConfig,
},
{ promptTokens, completionTokens },

View file

@ -144,6 +144,7 @@ describe('OpenAIClient', () => {
const defaultOptions = {
// debug: true,
req: {},
openaiApiKey: 'new-api-key',
modelOptions: {
model,