Skip to content

Commit

Permalink
Show Open AI library can talk to Xef server. (#387)
Browse files Browse the repository at this point in the history
* replace custom request code for open ai lib

* Allowing all headers

---------

Co-authored-by: José Carlos Montañez <josecarlos.aragon@47deg.com>
Co-authored-by: Javi Pacheco <javi.pacheco@gmail.com>
  • Loading branch information
3 people authored Sep 6, 2023
1 parent e4048ff commit 5c2d9e4
Show file tree
Hide file tree
Showing 6 changed files with 478 additions and 202 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ object Server {
server(factory = Netty, port = 8081, host = "0.0.0.0") {
install(CORS) {
allowNonSimpleContentTypes = true
allowHeader("Authorization")
allowHeaders { true }
anyHost()
}
install(ContentNegotiation) { json() }
Expand Down
Loading

0 comments on commit 5c2d9e4

Please sign in to comment.