Add OpenRouter usage feature with original generation endpoint as fallback
This commit is contained in:
1 parent
0cd2e69551
commit
f47be1a7bb
3 files changed
+39
-6
No files matched your search
@@ -142,6 +142,7 @@ export async function createOpenRouterStream(
|
||||
top_p: topP,
|
||||
messages: openAiMessages,
|
||||
stream: true,
|
||||
stream_options: { include_usage: true },
|
||||
transforms: shouldApplyMiddleOutTransform ? ["middle-out"] : undefined,
|
||||
include_reasoning: true,
|
||||
...(model.id === "openai/o3-mini" ? { reasoning_effort: o3MiniReasoningEffort || "medium" } : {}),
|
||||
|
||||
Reference in new issue
Block a user