Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove duplicate server init, add server info prints #1606

Merged
merged 2 commits into from
Mar 30, 2025

Conversation

endolith
Copy link

@endolith endolith commented Mar 25, 2025

Describe the changes you have made:

  1. Remove duplicate server init that can't be reached.
  2. Print OpenAI API settings that need to be used in client:

Example:

(oi_dev) λ interpreter --serve --model gpt-4o-mini --auto-run
Starting OpenAI-compatible server...

============================================================
Open Interpreter API Server
============================================================

To use with an OpenAI-compatible client, configure:
  - API Base:     http://127.0.0.1:8000/
  - API Path:     /chat/completions
  - API Key:      (any value, authentication not required)
  - Model name:   (any value, ignored)

NOTE: The server will use the model configured in --model
      Currently using: gpt-4o-mini
============================================================

Reference any relevant issues (e.g. "Fixes #000"):

Pre-Submission Checklist (optional but appreciated):

  • I have included relevant documentation updates (stored in /docs)
  • I have read docs/CONTRIBUTING.md
  • I have read docs/ROADMAP.md

OS Tests (optional but appreciated):

  • Tested on Windows
  • Tested on MacOS
  • Tested on Linux

Server in async_main is not reachable because we already checked for
`args["serve"]` in main()
Example:

````shell
(oi_dev) λ interpreter --serve --model gpt-4o-mini --auto-run
Starting OpenAI-compatible server...

============================================================
Open Interpreter API Server
============================================================

To use with an OpenAI-compatible client, configure:
  - API Base:     http://127.0.0.1:8000
  - API Path:     /chat/completions
  - API Key:      (any value, authentication not required)
  - Model name:   (any value, ignored)

NOTE: The server will use the model configured in --model
      Currently using: gpt-4o-mini
============================================================
````
@Notnaton
Copy link
Collaborator

Looks great, will test it when Im home 👍

@Notnaton Notnaton mentioned this pull request Mar 25, 2025
6 tasks
@Notnaton Notnaton self-assigned this Mar 25, 2025
@Notnaton Notnaton merged commit da0662b into OpenInterpreter:development Mar 30, 2025
@endolith endolith deleted the server branch March 30, 2025 21:10
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.

2 participants