@hypermode/react-api-explorer
Advanced tools
Comparing version 1.0.0-alpha.17 to 1.0.0-alpha.18
import { ThemeConfig } from '@repo/core'; | ||
import React from 'react'; | ||
type Inference = { | ||
id: number; | ||
request_id: string; | ||
timestamp: string; | ||
token_count: number; | ||
request: { | ||
model: string; | ||
messages: { | ||
role: string; | ||
content: string; | ||
}[]; | ||
temperature: number; | ||
}; | ||
response: { | ||
choices: { | ||
message: { | ||
content: string; | ||
}; | ||
}[]; | ||
usage: { | ||
completion_tokens: number; | ||
prompt_tokens: number; | ||
total_tokens: number; | ||
}; | ||
}; | ||
}; | ||
interface QueryExplorerProps { | ||
endpoints: string[]; | ||
inferences?: Inference[]; | ||
token?: string; | ||
@@ -7,0 +35,0 @@ theme?: Partial<ThemeConfig>; |
{ | ||
"name": "@hypermode/react-api-explorer", | ||
"version": "1.0.0-alpha.17", | ||
"version": "1.0.0-alpha.18", | ||
"main": "./dist/index.js", | ||
@@ -38,4 +38,4 @@ "module": "./dist/index.mjs", | ||
"@repo/tailwind-config": "workspace:*", | ||
"@types/react": "^19.0.0", | ||
"@types/react-dom": "^19.0.0", | ||
"@types/react": "^18.2.0", | ||
"@types/react-dom": "^18.2.0", | ||
"eslint": "^8.48.0", | ||
@@ -46,4 +46,4 @@ "tsup": "^8.3.5", | ||
"peerDependencies": { | ||
"react": "^19.0.0" | ||
"react": "^18.2.0" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
2640135
71259
23
8
14
3
23