mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-22 02:04:22 +01:00
wip console
This commit is contained in:
@@ -69,7 +69,7 @@ export async function POST(input: APIEvent) {
|
|||||||
await checkCredits()
|
await checkCredits()
|
||||||
|
|
||||||
// Request to model provider
|
// Request to model provider
|
||||||
const res = await fetch(new URL(url.pathname.replace(/^\/gateway/, "") + url.search, MODEL.api), {
|
const res = await fetch(new URL(url.pathname.replace(/^\/zen/, "") + url.search, MODEL.api), {
|
||||||
method: "POST",
|
method: "POST",
|
||||||
headers: (() => {
|
headers: (() => {
|
||||||
const headers = input.request.headers
|
const headers = input.request.headers
|
||||||
|
|||||||
Reference in New Issue
Block a user