devika icon indicating copy to clipboard operation
devika copied to clipboard

Openai api ket not working

Open davtin19 opened this issue 1 year ago • 4 comments

TypeError: OpenAI.init() missing 1 required positional argument: 'api_key' [2024-03-22 13:20:25,809] ERROR in app: Exception on /api/project-list [GET] Traceback (most recent call last):

davtin19 avatar Mar 22 '24 20:03 davtin19

Fixed here: #62

titonova avatar Mar 22 '24 22:03 titonova

Try upgrading toml and openai packages

`TypeError: OpenAI.init() missing 1 required positional argument: 'api_key' MacBook-Air devika % pip install toml --upgrade Requirement already satisfied: toml in /opt/homebrew/Caskroom/miniforge/base/lib/python3.10/site-packages (0.10.2) MacBook-Air devika % python devika.py
24.03.23 07:41:53: root: WARNING: Ollama server not running, please start the server to use models from Ollama. 24.03.23 07:41:56: root: INFO : Booting up... This may take a few seconds 24.03.23 07:41:56: root: INFO : Initializing Devika... 24.03.23 07:41:56: root: INFO : Initializing Prerequisites Jobs... 24.03.23 07:41:56: root: INFO : Loading sentence-transformer BERT models... 24.03.23 07:42:02: root: INFO : BERT model loaded successfully.

  • Serving Flask app 'devika'
  • Debug mode: off`

TypeError: OpenAI.init() missing 1 required positional argument: 'api_key' [2024-03-22 13:20:25,809] ERROR in app: Exception on /api/project-list [GET] Traceback (most recent call last):

shreydevep avatar Mar 23 '24 03:03 shreydevep

The project was updated to fix this issue, you can manually change the files, make a new clone, or update your existing copy of devika

On Fri, Mar 22, 2024, 11:33 PM Shreyas Pandey @.***> wrote:

Try upgrading toml and openai packages

`TypeError: OpenAI.init() missing 1 required positional argument: 'api_key' (base) @.*** devika % pip install toml --upgrade Requirement already satisfied: toml in /opt/homebrew/Caskroom/miniforge/base/lib/python3.10/site-packages (0.10.2) MacBook-Air devika % python devika.py 24.03.23 07:41:53: root: WARNING: Ollama server not running, please start the server to use models from Ollama. 24.03.23 07:41:56: root: INFO : Booting up... This may take a few seconds 24.03.23 07:41:56: root: INFO : Initializing Devika... 24.03.23 07:41:56: root: INFO : Initializing Prerequisites Jobs... 24.03.23 07:41:56: root: INFO : Loading sentence-transformer BERT models... 24.03.23 07:42:02: root: INFO : BERT model loaded successfully.

  • Serving Flask app 'devika'
  • Debug mode: off` ``

TypeError: OpenAI.init() missing 1 required positional argument: 'api_key' [2024-03-22 13:20:25,809] ERROR in app: Exception on /api/project-list [GET] Traceback (most recent call last):

``

— Reply to this email directly, view it on GitHub https://github.com/stitionai/devika/issues/59#issuecomment-2016329072, or unsubscribe https://github.com/notifications/unsubscribe-auth/A7BV3NZPWVBVSSYURIWCV4TYZTZ2BAVCNFSM6AAAAABFD6FK3CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMJWGMZDSMBXGI . You are receiving this because you are subscribed to this thread.Message ID: @.***>

Fratua avatar Mar 23 '24 03:03 Fratua

You also might want to install ollama, I'm not sure what difference it makes but I did Install it

On Fri, Mar 22, 2024, 11:39 PM Jay Smith @.***> wrote:

The project was updated to fix this issue, you can manually change the files, make a new clone, or update your existing copy of devika

On Fri, Mar 22, 2024, 11:33 PM Shreyas Pandey @.***> wrote:

Try upgrading toml and openai packages

`TypeError: OpenAI.init() missing 1 required positional argument: 'api_key' (base) @.*** devika % pip install toml --upgrade Requirement already satisfied: toml in /opt/homebrew/Caskroom/miniforge/base/lib/python3.10/site-packages (0.10.2) MacBook-Air devika % python devika.py 24.03.23 07:41:53: root: WARNING: Ollama server not running, please start the server to use models from Ollama. 24.03.23 07:41:56: root: INFO : Booting up... This may take a few seconds 24.03.23 07:41:56: root: INFO : Initializing Devika... 24.03.23 07:41:56: root: INFO : Initializing Prerequisites Jobs... 24.03.23 07:41:56: root: INFO : Loading sentence-transformer BERT models... 24.03.23 07:42:02: root: INFO : BERT model loaded successfully.

  • Serving Flask app 'devika'
  • Debug mode: off` ``

TypeError: OpenAI.init() missing 1 required positional argument: 'api_key' [2024-03-22 13:20:25,809] ERROR in app: Exception on /api/project-list [GET] Traceback (most recent call last):

``

— Reply to this email directly, view it on GitHub https://github.com/stitionai/devika/issues/59#issuecomment-2016329072, or unsubscribe https://github.com/notifications/unsubscribe-auth/A7BV3NZPWVBVSSYURIWCV4TYZTZ2BAVCNFSM6AAAAABFD6FK3CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMJWGMZDSMBXGI . You are receiving this because you are subscribed to this thread.Message ID: @.***>

Fratua avatar Mar 23 '24 03:03 Fratua

fetch the latest changes. already fixed

ARajgor avatar Apr 03 '24 18:04 ARajgor