mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-02 17:40:23 +00:00
chore(lint): type script and test helpers
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { completeSimple, getModel, type Model } from "@mariozechner/pi-ai";
|
||||
import { completeSimple, getModel, type Api, type Model } from "@mariozechner/pi-ai";
|
||||
|
||||
type Usage = {
|
||||
input?: number;
|
||||
@@ -49,8 +49,7 @@ function median(values: number[]): number {
|
||||
|
||||
async function runModel(opts: {
|
||||
label: string;
|
||||
// oxlint-disable-next-line typescript/no-explicit-any
|
||||
model: Model<any>;
|
||||
model: Model<Api>;
|
||||
apiKey: string;
|
||||
runs: number;
|
||||
prompt: string;
|
||||
|
||||
Reference in New Issue
Block a user