Skip to content
This repository has been archived by the owner on Jul 31, 2023. It is now read-only.

[BUG] No module named 'libraries' #34

Open
Josh-XT opened this issue Jun 18, 2023 · 0 comments
Open

[BUG] No module named 'libraries' #34

Josh-XT opened this issue Jun 18, 2023 · 0 comments
Labels
bug Something isn't working help wanted Extra attention is needed wontfix This will not be worked on

Comments

@Josh-XT
Copy link

Josh-XT commented Jun 18, 2023

Describe the bug
I'm getting an error No module named 'libraries' when trying to test a completion.

---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
Cell In[1], line 1
----> 1 from opengpt.models.completion.forefront.model import Model
      3 Model.SetupConversation(prompt="What is the capital of France?")

File [~/.local/lib/python3.10/site-packages/opengpt/models/completion/forefront/model.py:3](https://file+.vscode-resource.vscode-cdn.net/home/josh/josh/Repos/AGiXT/agixt/~/.local/lib/python3.10/site-packages/opengpt/models/completion/forefront/model.py:3)
      1 from .tools.typing.response import ForeFrontResponse
      2 from .tools.system.signature import Encrypt
----> 3 from .attributes.conversation import Conversation
      4 from libraries.colorama import init, Fore, Style
      5 from typing import Optional, Union, Generator, Dict, List

File [~/.local/lib/python3.10/site-packages/opengpt/models/completion/forefront/attributes/conversation.py:3](https://file+.vscode-resource.vscode-cdn.net/home/josh/josh/Repos/AGiXT/agixt/~/.local/lib/python3.10/site-packages/opengpt/models/completion/forefront/attributes/conversation.py:3)
      1 from typing import List, Dict
      2 from pydantic import BaseModel
----> 3 from libraries.colorama import init, Fore, Style
      4 import json
      5 import uuid

ModuleNotFoundError: No module named 'libraries'

To Reproduce
I could be doing this wrong, but there were no examples for completion in tests, only image generation. Would recommend adding one to tests. Please correct me if I am wrong if this is the wrong approach.

from opengpt.models.completion.forefront.model import Model

response = Model.SetupConversation(prompt="What is the capital of France?")
print(response)

Expected behavior
Response from AI telling me that Paris is the capital of France.

Screenshots
image

Desktop (please complete the following information):

  • OS: Linux
  • Browser: Chrome

Additional context
I'm building a provider extension for AGiXT for OpenGPT currently to rotate over each provider. GPT4Free is similar but yours has some that it is either missing or not working on.

Here is the link to my gpt4free module, I'd like to accomplish a rotation like this for the OpenGPT module as well.
https://github.com/Josh-XT/AGiXT/blob/main/agixt/provider/gpt4free.py

@Josh-XT Josh-XT added bug Something isn't working help wanted Extra attention is needed wontfix This will not be worked on labels Jun 18, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working help wanted Extra attention is needed wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

1 participant