Skip to content

Commit

Permalink
Refactor azure-serverless naming and add investigation script (#795)
Browse files Browse the repository at this point in the history
* refactor: rename azure-serverless to azure_serverless πŸ”„

* artifical build break

* feat: πŸ“ add script to investigate workflow failure

* feat: ✨ add script for analyzing last 100 commits

* refactor: remove script model specification from poem

* refactor: update script configuration in pr-describe mjs ✨

* unbreak sample
  • Loading branch information
pelikhan authored Oct 24, 2024
1 parent 01fbd5d commit b77a268
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down
3 changes: 3 additions & 0 deletions packages/sample/genaisrc/code-stats.genai.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
script({ tools: "agent"})

$`Do a statistical analysis of the last 100 commits.`
3 changes: 3 additions & 0 deletions packages/sample/genaisrc/gai-mini.genai.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
script({ tools: "agent"})

$`Investigate the last failure of the workflow run of 'build.yml'.`
1 change: 0 additions & 1 deletion packages/sample/genaisrc/poem.genai.mts
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
script({ model: "large" })
$`Write a short poem.`
2 changes: 0 additions & 2 deletions packages/sample/genaisrc/pr-describe.genai.mjs
Original file line number Diff line number Diff line change
@@ -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"],
Expand Down

0 comments on commit b77a268

Please sign in to comment.