diff --git a/packages/core/src/constants.ts b/packages/core/src/constants.ts index 07f98d00bf..0c7c86f69a 100644 --- a/packages/core/src/constants.ts +++ b/packages/core/src/constants.ts @@ -55,7 +55,7 @@ export const LARGE_MODEL_ID = "large" export const DEFAULT_MODEL = "openai:gpt-4o" export const DEFAULT_MODEL_CANDIDATES = [ "azure:gpt-4o", - "azure-serverless:gpt-4o", + "azure_serverless:gpt-4o", DEFAULT_MODEL, "github:gpt-4o", "anthropic:claude-2", @@ -64,7 +64,7 @@ export const DEFAULT_MODEL_CANDIDATES = [ export const DEFAULT_SMALL_MODEL = "openai:gpt-4o-mini" export const DEFAULT_SMALL_MODEL_CANDIDATES = [ "azure:gpt-4o-mini", - "azure-serverless:gpt-4o-mini", + "azure_serverless:gpt-4o-mini", DEFAULT_SMALL_MODEL, "github:gpt-4o-mini", "client:gpt-4-mini", diff --git a/packages/sample/genaisrc/code-stats.genai.mjs b/packages/sample/genaisrc/code-stats.genai.mjs new file mode 100644 index 0000000000..3c8cf39f35 --- /dev/null +++ b/packages/sample/genaisrc/code-stats.genai.mjs @@ -0,0 +1,3 @@ +script({ tools: "agent"}) + +$`Do a statistical analysis of the last 100 commits.` \ No newline at end of file diff --git a/packages/sample/genaisrc/gai-mini.genai.mjs b/packages/sample/genaisrc/gai-mini.genai.mjs new file mode 100644 index 0000000000..81bf4f1461 --- /dev/null +++ b/packages/sample/genaisrc/gai-mini.genai.mjs @@ -0,0 +1,3 @@ +script({ tools: "agent"}) + +$`Investigate the last failure of the workflow run of 'build.yml'.` \ No newline at end of file diff --git a/packages/sample/genaisrc/poem.genai.mts b/packages/sample/genaisrc/poem.genai.mts index d8078e0c4e..df55f31d3a 100644 --- a/packages/sample/genaisrc/poem.genai.mts +++ b/packages/sample/genaisrc/poem.genai.mts @@ -1,2 +1 @@ -script({ model: "large" }) $`Write a short poem.` diff --git a/packages/sample/genaisrc/pr-describe.genai.mjs b/packages/sample/genaisrc/pr-describe.genai.mjs index b827b77507..85f551cb15 100644 --- a/packages/sample/genaisrc/pr-describe.genai.mjs +++ b/packages/sample/genaisrc/pr-describe.genai.mjs @@ -1,6 +1,4 @@ script({ - model: "openai:gpt-4-32k", - files: [], temperature: 1, title: "pr-describe", system: ["system", "system.fs_find_files", "system.fs_read_file"],