Migrate all DataBase to DBState
This commit is contained in:
@@ -1,9 +1,8 @@
|
||||
import { get } from "svelte/store"
|
||||
import { DataBase } from "../storage/database.svelte"
|
||||
import { getDatabase } from "../storage/database.svelte"
|
||||
|
||||
export async function openRouterModels() {
|
||||
try {
|
||||
const db = get(DataBase)
|
||||
const db = getDatabase()
|
||||
let headers = {
|
||||
"Authorization": "Bearer " + db.openrouterKey,
|
||||
"Content-Type": "application/json"
|
||||
|
||||
Reference in New Issue
Block a user