TypeError: OpenAI::client(): Argument #1 ($apiKey) must be of type string, null given..........

Created on 21 June 2024, 5 months ago
Updated 20 September 2024, 2 months ago

Steps to reproduce

1: Installed the module using Composer with the command: composer require 'drupal/openai_client:^1.1'.

2: when we try to open "AI assistants" /admin/structure/assistants, it shows an error

TypeError: OpenAI::client(): Argument #1 ($apiKey) must be of type string, null given, called in /modules/openai_client/src/OpenAIClientWrapper.php on line 70 in OpenAI::client() (line 13 of /vendor/openai-php/client/src/OpenAI.php).

I've attached an image illustrating my actionsโ€”installing the module and searching within the extend panel.

๐Ÿ› Bug report
Status

Needs review

Version

1.1

Component

Code

Created by

๐Ÿ‡ฎ๐Ÿ‡ณIndia aman_lnwebworks

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024