sourcegraph / cody

AI that knows your entire codebase
https://cody.dev
Apache License 2.0
2.22k stars 213 forks source link

Stevey/fallback to default chat model #4705

Closed steveyegge closed 3 days ago

steveyegge commented 3 days ago

We have a race condition on integration test startup in which the ModelsService is not yet initialized. We had been throwing an error, but a better approach is to use the default model. This is also the behavior on the backend when we're contacting the LLM, so it's consistent. Fix suggested by @abeatrix.

Test plan

Manually tested.