mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-11 13:21:03 +00:00
feat(id): brand ProviderID and ModelID (#17110)
This commit is contained in:
parent
2eeba53b07
commit
c45467964c
23 changed files with 157 additions and 107 deletions
|
|
@ -13,6 +13,7 @@ const seed = async () => {
|
|||
const { Session } = await import("../src/session")
|
||||
const { MessageID, PartID } = await import("../src/session/schema")
|
||||
const { Project } = await import("../src/project/project")
|
||||
const { ModelID, ProviderID } = await import("../src/provider/schema")
|
||||
|
||||
await Instance.provide({
|
||||
directory: dir,
|
||||
|
|
@ -28,8 +29,8 @@ const seed = async () => {
|
|||
time: { created: now },
|
||||
agent: "build",
|
||||
model: {
|
||||
providerID,
|
||||
modelID,
|
||||
providerID: ProviderID.make(providerID),
|
||||
modelID: ModelID.make(modelID),
|
||||
},
|
||||
}
|
||||
const part = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue