Code Monkey home page Code Monkey logo

Comments (4)

care2bfree avatar care2bfree commented on July 29, 2024

Actually there is a deeper issue that I found - I'm getting:
Error code: 400 - {'error': {'message': "The requested model 'gpt-4-turbo-previe
w' does not exist.", 'type': 'invalid_request_error', 'param': 'model', 'code':
'model_not_found'}}

I am investigating this problem now.

from vimassist.

care2bfree avatar care2bfree commented on July 29, 2024

I succeeded in getting access to gpt-4-turbo-preview. Now the :Updatedocs does create the assistant but spits out another error:
Error detected while processing function vimassist#UpdateDocs:
line 40:
Traceback (most recent call last):
File "", line 13, in
File "/home/canderso/.vim/pack/vimassist/start/VimAssist/autoload/../scripts/c
ommand_functions.py", line 97, in update_docs
status = assistant_tools.update_files_of_assistant(assistant_id, file_id_lis
t)
File "/home/canderso/.vim/pack/vimassist/start/VimAssist/autoload/../scripts/a
ssistant_tools.py", line 95, in update_files_of_assistant
old_file_ids = assistant.file_ids
File "/home/canderso/.local/lib/python3.10/site-packages/pydantic/main.py", li
ne 811, in getattr
raise AttributeError(f'{type(self).name!r} object has no attribute {item
!r}')
AttributeError: 'Assistant' object has no attribute 'file_ids'

Note that I did have to change the assistant tools.type value in your code from "retrieval" to "file_search" to get the command :Updatedocs to get this far.
Since the first command I need to run cannot finish without changing the code, I'm wondering if this is an indication that the entire project code needs to be updated before attempting to use it?

from vimassist.

sluosapher avatar sluosapher commented on July 29, 2024

The code works on my computer, which uses older openai library (1.10.0). But I recreated your error after I switched to the newest version of the library (1.23.6). It looks OpenAI changed the library interface. Unfortunately, I did not specify the version of openai to be installed in the requirement file. I will look into the problem. Meantime, you can test the tools with openai library 1.10.0. I will update the requirement file as well.

from vimassist.

care2bfree avatar care2bfree commented on July 29, 2024

Thanks! That's a big help to know about the library version. I will see what I can do about switching to the 1.10.0 version for a test.

from vimassist.

Related Issues (1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.