-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
OpenAIService - new functions/endpoints - modifyAssistant
The wrapped API: POST https://api.openai.com/v1/assistants/{assistant_id}
- Loading branch information
1 parent
a80220d
commit e6c0ecb
Showing
5 changed files
with
133 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
openai-examples/src/main/scala/io/cequence/openaiscala/examples/ModifyAssistant.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package io.cequence.openaiscala.examples | ||
|
||
object ModifyAssistant extends Example { | ||
|
||
override protected def run = | ||
for { | ||
thread <- service.modifyAssistant( | ||
assistantId = "asst_Btbc2h7dqyDU52g1KfBa2XE8", | ||
metadata = Map("user_id" -> "986415", "due_date" -> "2028-08-01") | ||
) | ||
} yield { | ||
println(thread) | ||
} | ||
} |