# language_model: Refactor crate structure and dependencies \(\#52857\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/6663a60876e0054915ef40745df5c93f915221e5)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 6663a60876e0054915ef40745df5c93f915221e5

Requested commit: 6663a60876e0054915ef40745df5c93f915221e5

Commit: 6663a60876e0054915ef40745df5c93f915221e5

Tree: 329dde7c4169c3e8e83abe59b39530831c3f5a65

Author: Jakub Konka

Committer: GitHub

## Message

```
language_model: Refactor crate structure and dependencies (#52857)

A couple of things that this PR wants to accomplish:
* remove dependency on `settings` crate from `language_model`
* refactor provider-specific code into submodules - to be honest, I
would go one step further and put all provider-specific bits in
`language_models` instead but I realise we have cloud logic in
`language_model` which uses those too making it tricky
* move anthropic-specific telemetry into `language_models` crate - I
think it makes more sense for it to be there

Anyhow, I would very appreciate if you could have a look @mikayla-maki
and @maxdeviant and lemme know what you think, if you would tweak
something, etc.

Release Notes:

- N/A
```

## Parents

- [82a64932b04c779d75a98846308170a955aed26c](https://git.cafe/gitcafe/zed/commit/82a64932b04c779d75a98846308170a955aed26c?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/6663a60876e0054915ef40745df5c93f915221e5?format=markdown)
