Add staging engine (+ logs) (#225)

This commit is contained in:
Will Chen
2025-05-22 10:33:09 -07:00
committed by GitHub
parent 731eef1b32
commit ae351c5ea0
2 changed files with 3 additions and 3 deletions

View File

@@ -69,9 +69,8 @@ Creates a chat model for text generation.
export function createDyadEngine(
options: ExampleProviderSettings,
): DyadEngineProvider {
const baseURL = withoutTrailingSlash(
options.baseURL ?? "https://api.example.com/v1",
);
const baseURL = withoutTrailingSlash(options.baseURL);
logger.info("creating dyad engine with baseURL", baseURL);
const getHeaders = () => ({
Authorization: `Bearer ${loadApiKey({
apiKey: options.apiKey,