Remove no-longer-required ts-expect-error

This commit is contained in:
Caleb Owens 2024-05-11 13:36:05 +01:00
parent efca8a2db2
commit 27583248d8

View File

@ -16,8 +16,6 @@ export class OpenAIClient implements AIClient {
const messages: PromptMessage[] = [{ role: MessageRole.User, content: prompt }];
const response = await this.openAI.chat.completions.create({
// @ts-expect-error There is a type mismatch where it seems to want a "name" paramater
// that isn't required https://github.com/openai/openai-openapi/issues/118#issuecomment-1847667988
messages,
model: this.modelName,
max_tokens: 400