Class ChatCompletionTransformer
java.lang.Object
io.quarkiverse.langchain4j.openai.testing.internal.ChatCompletionTransformer
- All Implemented Interfaces:
com.github.tomakehurst.wiremock.extension.Extension,com.github.tomakehurst.wiremock.extension.ResponseDefinitionTransformerV2
public class ChatCompletionTransformer
extends Object
implements com.github.tomakehurst.wiremock.extension.ResponseDefinitionTransformerV2
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidgetName()static voidsetContent(String content) TODO: this is a total necessary because this piece of code is run by neither the same thread nor the same ClassLoader asOpenAiBaseTestso we use a system property in order to provide an easy way to access the common state.com.github.tomakehurst.wiremock.http.ResponseDefinitiontransform(com.github.tomakehurst.wiremock.stubbing.ServeEvent serveEvent) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.github.tomakehurst.wiremock.extension.ResponseDefinitionTransformerV2
applyGlobally
-
Constructor Details
-
ChatCompletionTransformer
public ChatCompletionTransformer()
-
-
Method Details
-
transform
public com.github.tomakehurst.wiremock.http.ResponseDefinition transform(com.github.tomakehurst.wiremock.stubbing.ServeEvent serveEvent) - Specified by:
transformin interfacecom.github.tomakehurst.wiremock.extension.ResponseDefinitionTransformerV2
-
getName
- Specified by:
getNamein interfacecom.github.tomakehurst.wiremock.extension.Extension
-
setContent
TODO: this is a total necessary because this piece of code is run by neither the same thread nor the same ClassLoader asOpenAiBaseTestso we use a system property in order to provide an easy way to access the common state. This is pretty terrible as it means we can't have multiple tests running in parallel. -
clearContent
public static void clearContent()
-