Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot create vector store file #155

Closed
antoshaSid opened this issue Jun 19, 2024 · 2 comments · Fixed by #156
Closed

Cannot create vector store file #155

antoshaSid opened this issue Jun 19, 2024 · 2 comments · Fixed by #156
Assignees
Labels
bug Something isn't working

Comments

@antoshaSid
Copy link

antoshaSid commented Jun 19, 2024

When I try to create a vector store file it is not able to deserialize the response to VectorStoreFile:

org.opentest4j.AssertionFailedError: java.util.concurrent.CompletionException: io.github.sashirestela.cleverclient.support.CleverClientException: Cannot convert the Json {
  "id": "file-l46euve8g9b9m6eIui94NKdo",
  "object": "vector_store.file",
  "usage_bytes": 1055,
  "created_at": 1718826278,
  "vector_store_id": "vs_p1rxchsIDrEP2aPP5y4OI7Di",
  "status": "completed",
  "last_error": null,
  "chunking_strategy": {
    "type": "static",
    "static": {
      "max_chunk_size_tokens": 800,
      "chunk_overlap_tokens": 400
    }
  }
} to class io.github.sashirestela.openai.domain.assistant.VectorStoreFile.
@antoshaSid
Copy link
Author

cleverclient:

Cannot construct instance of `io.github.sashirestela.openai.domain.assistant.ChunkingStrategy$StaticChunking` (no Creators, like default constructor, exist): cannot deserialize from Object value (no delegate- or property-based Creator)

@sashirestela sashirestela added the bug Something isn't working label Jun 20, 2024
@sashirestela sashirestela self-assigned this Jun 20, 2024
@sashirestela sashirestela linked a pull request Jun 20, 2024 that will close this issue
@sashirestela
Copy link
Owner

sashirestela commented Jun 20, 2024

@antoshaSid Thanks for using simple-openai and for detecting this issue. A fix will be released soon.

UPDATE: The fix has been released as part of the 3.5.1 version


If you find this project valuable there are a few ways you can show us your love, preferably all of them 🙂:

  • Letting your friends know about this project 🗣📢.
  • Writing a brief review on your social networks ✍🌐.
  • Giving us a star on Github ⭐.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants