This repository has been archived by the owner on Jun 6, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Assistant : OpenAiApi.listRunSteps : @Body not supported on @Get #411
Comments
Aelentel
changed the title
Assistant Retrieve Steps : @Body not supported on @Get
Assistant : OpenAiApi.listRunSteps : @Body not supported on @Get
Nov 17, 2023
just adding that i got the response nonetheless by using listMessage api, so if it can help other ppl, here's the code i'm using. but it'll be slightly less cumbersome to retrieve the step as it's contain the messageId that have been generated by the assistant. var messageList=service.listMessages(run.getThreadId());
String response=
messageList.getData()
.stream()
.filter(t -> ChatMessageRole.ASSISTANT.value().equals(t.getRole()))
.flatMap(t -> t.getContent().stream())
.filter(t -> "text".equals(t.getType()))
.map(t -> t.getText().getValue())
.findFirst()
.orElse(null); |
@Aelentel I will check this and if I know why I wiill try to fix it |
@Aelentel I will fix this. |
Merged
A pr here: #414 |
Fixed in 0.18.2 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi, first and foremost, thanks everyone for this project :)
i encountered that issue when testing the Assistant API on v0.18.1
here's the exception (fluff removed)
and the test code (GptService.getService() return the OpenAiService already initialized)
The text was updated successfully, but these errors were encountered: