Skip to content

Commit

Permalink
update: fit to the new API of OpenAI (assistants=v2).
Browse files Browse the repository at this point in the history
  • Loading branch information
WDRshadow committed Oct 28, 2024
1 parent 2a6e1a7 commit eeb4318
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ org.gradle.parallel=true
loader_version=0.15.7

# Mod Properties
mod_version = 0.1.0
mod_version = 0.1.1
maven_group = com.jackdaw
archives_base_name = chat-with-npc

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public Header add(@NotNull Type type) {
header.put(HttpHeaders.CONTENT_TYPE, "application/json");
break;
case OPENAI_BETA:
header.put("OpenAI-Beta", "assistants=v1");
header.put("OpenAI-Beta", "assistants=v2");
break;
}
return this;
Expand Down

0 comments on commit eeb4318

Please sign in to comment.