Skip to content

fix: request payload for configuring o1 models, propagate errors#921

Merged
salman1993 merged 10 commits intomainfrom
wtang/o1_request
Jan 30, 2025
Merged

fix: request payload for configuring o1 models, propagate errors#921
salman1993 merged 10 commits intomainfrom
wtang/o1_request

Conversation

@wendytang
Copy link
Copy Markdown

@wendytang wendytang commented Jan 29, 2025

  • Handles unsupported parameters temperature and max_tokens in o1 series
  • Changes 'system' role to 'developer' role in o1
  • Removes support for o1-mini
image

ProviderError propogation:
image

Test plan:

  • Databricks hasn't handled o1-mini (errors), but o1 worked fine
  • gpt-4o models can still be configured
  • lmk if anything else

@wendytang wendytang marked this pull request as ready for review January 29, 2025 23:57
@wendytang wendytang requested a review from salman1993 January 30, 2025 00:00
@kalvinnchau
Copy link
Copy Markdown
Contributor

seems like o1-mini doesn't support tool calls?:

starting session | provider: openai model: o1-mini
    logging to /Users/kalvin/.config/goose/sessions/HUPEpH1s.jsonl


Goose is running! Enter your instructions, or try asking what goose can do.


( O)> what tools do you have
◒  Jazzing up algorithms...                                                                                                                                                                                             2025-01-30T00:11:53.602782Z ERROR goose::agents::truncate: Error: Request failed: 404 Not Found - Some(Object {"error": Object {"code": Null, "message": String("tools is not supported in this model. For a list of supported models, refer to https://platform.openai.com/docs/guides/function-calling#models-supporting-function-calling."), "param": Null, "type": String("invalid_request_error")}})
    at crates/goose/src/agents/truncate.rs:256

Ran into this error: Request failed: 404 Not Found - Some(Object {"error": Object {"code": Null, "message": String("tools is not supported in this model. For a list of supported models, refer to https://platform.op
enai.com/docs/guides/function-calling#models-supporting-function-calling."), "param": Null, "type": String("invalid_request_error")}}).

their doc link in the response also doesn't point me anywhere valid, since that's the case do we want too keep any o1-mini specific logic?

@wendytang wendytang requested a review from kalvinnchau January 30, 2025 00:23
@wendytang
Copy link
Copy Markdown
Author

wendytang commented Jan 30, 2025

@wendytang
Copy link
Copy Markdown
Author

Adds docs about o1-mini and o1-preview.

there is only one o1 model currently aliased to v2024-12-17
image

* origin/main:
  Update SupportedEnvironments.js so others don't get confused on why they can not open the macos app on x86 (#888)
@salman1993 salman1993 merged commit e8ced5a into main Jan 30, 2025
salman1993 added a commit that referenced this pull request Jan 30, 2025
* origin/main:
  fix: clarify linux cli install only (#927)
  feat: update ui for ollama host (#912)
  feat: add CONFIGURE=false option in install script (#920)
  fix: truncation agent token calculations (#915)
  fix: request payload for o1 models (#921)
  Update SupportedEnvironments.js so others don't get confused on why they can not open the macos app on x86 (#888)
  fix: improve configure process with error message (#919)
  docs: Goose on Windows via WSL (#901)
  fix: more graceful handling of missing usage in provider response (#907)
  feat: rm uv.lock cause it points to square artifactory (#917)
  feat: Update issue templates for bug report for goose (#913)
  fix: post endpoint url on sse endpoint event (#900)
michaelneale added a commit that referenced this pull request Jan 30, 2025
* main:
  chore: remove gpt-3.5-turbo UI suggestion, as it is deprecated (#959)
  chore: remove o1-mini suggestion from UI add model view (#957)
  fix: missing field in request (#956)
  docs: update provider docs, fix rate limit link (#943)
  fix: clarify linux cli install only (#927)
  feat: update ui for ollama host (#912)
  feat: add CONFIGURE=false option in install script (#920)
  fix: truncation agent token calculations (#915)
  fix: request payload for o1 models (#921)
michaelneale added a commit that referenced this pull request Jan 31, 2025
* main: (28 commits)
  ci: per semver build metadata should be after + (#971)
  fix: temp fix to make CI workflow pass (#970)
  chore: bump patch version to 1.0.3 (#967)
  fix: load shell automatically from env for GUI (#948)
  fix: update versions in release and canary workflows (#911)
  docs: fix typo, name (#963)
  docs: typo fix (#961)
  chore: remove gpt-3.5-turbo UI suggestion, as it is deprecated (#959)
  chore: remove o1-mini suggestion from UI add model view (#957)
  fix: missing field in request (#956)
  docs: update provider docs, fix rate limit link (#943)
  fix: clarify linux cli install only (#927)
  feat: update ui for ollama host (#912)
  feat: add CONFIGURE=false option in install script (#920)
  fix: truncation agent token calculations (#915)
  fix: request payload for o1 models (#921)
  Update SupportedEnvironments.js so others don't get confused on why they can not open the macos app on x86 (#888)
  fix: improve configure process with error message (#919)
  docs: Goose on Windows via WSL (#901)
  fix: more graceful handling of missing usage in provider response (#907)
  ...
@yingjiehe-xyz yingjiehe-xyz deleted the wtang/o1_request branch February 5, 2025 21:10
ahau-square pushed a commit that referenced this pull request May 2, 2025
cbruyndoncx pushed a commit to cbruyndoncx/goose that referenced this pull request Jul 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants