refactor(plugin): remove dead chat params code
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
import { normalizeSDKResponse } from "../shared/normalize-sdk-response"
|
||||
import { getSessionPromptParams } from "../shared/session-prompt-params-state"
|
||||
import { getModelCapabilities, resolveCompatibleModelSettings } from "../shared"
|
||||
|
||||
@@ -58,8 +57,6 @@ function buildChatParamsInput(raw: unknown): ChatParamsHookInput | null {
|
||||
? model.id
|
||||
: undefined
|
||||
const providerId = provider.id
|
||||
const variant = message.variant
|
||||
|
||||
if (typeof providerID !== "string") return null
|
||||
if (typeof modelID !== "string") return null
|
||||
if (typeof providerId !== "string") return null
|
||||
@@ -71,7 +68,6 @@ function buildChatParamsInput(raw: unknown): ChatParamsHookInput | null {
|
||||
provider: { id: providerId },
|
||||
message,
|
||||
rawMessage: message,
|
||||
...(typeof variant === "string" ? {} : {}),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user