Skip to content

Conversation

@aibrahim-oai
Copy link
Collaborator

No description provided.

@aibrahim-oai
Copy link
Collaborator Author

@codex review this

config.model_provider.stream_max_retries = Some(0);
config.model_provider.stream_idle_timeout_ms = Some(5_000);
});
let test = builder.build(&mock_server).await?;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Feels pretty useless, to pass mock server here.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the only thing we need from server is the URI, consider an overload maybe?

you can hide let base_url = format!("{}/v1", streaming_server.uri()); there.

builder = builder.with_config(move |config| {
config.model_provider.base_url = Some(base_url);
config.model_provider.request_max_retries = Some(0);
config.model_provider.stream_max_retries = Some(0);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ideally we don't need to set these in the test.

@chatgpt-codex-connector
Copy link
Contributor

Codex Review: Didn't find any major issues. Hooray!

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

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