mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-05 12:24:30 +01:00
regenerate OpenAPI spec and add model selection components
This commit is contained in:
1 parent
9ed292af2a
commit
17ee96d316
12 files changed
+10266
-3453
No files matched your search
@@ -3,12 +3,11 @@
|
||||
import { writeFile } from 'fs/promises'
|
||||
import { join, dirname } from 'path'
|
||||
import { fileURLToPath } from 'url'
|
||||
import {ENV} from '../backend/src/config'
|
||||
|
||||
|
||||
const __dirname = dirname(fileURLToPath(import.meta.url))
|
||||
|
||||
const OPENCODE_URL = ENV.VITE_API_URL + '/api/opencode'
|
||||
const API_URL = process.env.VITE_API_URL || 'http://localhost:8001'
|
||||
const OPENCODE_URL = API_URL + '/api/opencode'
|
||||
|
||||
async function generateOpenAPISpec() {
|
||||
console.log(`📥 Fetching OpenAPI spec from ${OPENCODE_URL}/doc`)
|
||||
|
||||
Reference in new issue
Block a user