Skip to content

Commit

Permalink
🎨
Browse files Browse the repository at this point in the history
  • Loading branch information
ff137 committed Dec 7, 2023
1 parent 774bebb commit 3da0c83
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 27 deletions.
1 change: 1 addition & 0 deletions src/main/scala/xyz/didx/DawnPatrol.scala
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
package xyz.didx

import cats.effect.IO
import cats.effect.IOApp
import cats.effect.std.Dispatcher
Expand Down
7 changes: 4 additions & 3 deletions src/main/scala/xyz/didx/SignalBot.scala
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@ import cats.effect.Ref
import cats.implicits.*
import fs2.Stream
import io.circe.syntax.*
import pureconfig.*
import pureconfig.ConfigReader
import pureconfig.ConfigSource
import pureconfig.generic.derivation.default.*
import sttp.client3.*
import sttp.client3.circe.*
import sttp.model.*
import sttp.client3.circe.asJson
import sttp.model.StatusCode
import xyz.didx.messages.SignalMessage
import xyz.didx.messages.SignalMessageCodec.signalMessageDecoder
import xyz.didx.messages.SignalMessageCodec.signalSendMessage
Expand Down
21 changes: 1 addition & 20 deletions src/main/scala/xyz/didx/ai/openai/OpenAIMessage.scala
Original file line number Diff line number Diff line change
@@ -1,24 +1,5 @@
package xyz.didx.openai
/* {
"id": "cmpl-6nognZq5jEzrrxtd7hkQ06vQcNOAu",
"object": "text_completion",
"created": 1677330941,
"model": "text-davinci-003",
"choices": [
{
"text": "\nIt's important to remember to renew your drivers license before it expires. You can usually renew your license online or in person at your local DMV. Make sure to check the expiration date on your license and plan ahead so you don't miss the deadline.",
"index": 0,
"logprobs": null,
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 9,
"completion_tokens": 51,
"total_tokens": 60
}
}
*/

final case class OpenAIRequest(
model: String = "text-davinci-003",
prompt: String,
Expand Down
4 changes: 1 addition & 3 deletions src/main/scala/xyz/didx/didcomm/DIDCodec.scala
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
package xyz.didx.didcomm

import cats.*
import cats.syntax.all.*
import io.circe.Decoder.Result
Expand All @@ -13,9 +14,6 @@ import xyz.didx.didcomm.ServiceEndpointURI
import xyz.didx.didcomm.VerificationMethod

import java.net.URI
//import xyz.didx.didcomm.VerificationMethodType

//import summon.{Decoder => _, _}

object DIDCodec:
given encodeDIDDoc: Encoder[DIDDoc] =
Expand Down
2 changes: 1 addition & 1 deletion src/test/scala/xyz/didx/DawnSpec.test.scala
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
package xyz.didx

import munit.CatsEffectSuite

class DawnSpec extends CatsEffectSuite {
Expand All @@ -7,5 +8,4 @@ class DawnSpec extends CatsEffectSuite {
println(x)
assertEquals(1, 1)
}

}

0 comments on commit 3da0c83

Please sign in to comment.