sourcegraph/cmd
Ólafur Páll Geirsson 47b66397da
feat/API: move from /api/v1 to /.api/llm (#64435)
Fixes CODY-3269

Previously, the OpenAI-compatible API endpoints had paths like
`/api/v1/chat/completions`, which went against an existing convention of
keeping all APIs under the `/.api` prefix. We have a fair amount of
internal tooling centered around the assumption that APIs have the
`/.api` prefix so this PR corrects the mistake and moves the
`/api/v1/chat/completions` endpoint to `/.api/llm/chat/completions`.

I went with the prefix `/.api/llm` since these allow clients to interact
with LLM features like `/chat/completions` or listing model information.
These APIs happen to be compatible with OpenAI APIs but I think it will
be more confusing to add something like "openai" or "openaicomptable" in
the API endpoint. We can just document on our website that these
endpoints are compatible with OpenAI clients.

<!-- PR description tips:
https://www.notion.so/sourcegraph/Write-a-good-pull-request-description-610a7fd3e613496eb76f450db5a49b6e
-->

## Test plan

Green CI. I also manually confirmed that I was able to use an OpenAI
client to send requests to the new APIs.
<!-- REQUIRED; info at
https://docs-legacy.sourcegraph.com/dev/background-information/testing_principles
-->

## Changelog

* Moved `/api/v1/chat/completions` to `/.api/llm/chat/completions`. The
functionality is unchanged.

<!-- OPTIONAL; info at
https://www.notion.so/sourcegraph/Writing-a-changelog-entry-dd997f411d524caabf0d8d38a24a878c
-->
2024-08-13 10:21:27 +00:00
..
appliance Revert "Revert "refactor: upgrade to rules_oci 2.0 (2nd attempt)"" (#64354) 2024-08-08 09:00:08 +00:00
batcheshelper Revert "Revert "refactor: upgrade to rules_oci 2.0 (2nd attempt)"" (#64354) 2024-08-08 09:00:08 +00:00
blobstore tenant: Introduce first version of tenant package (#64271) 2024-08-08 12:02:19 +02:00
bundled-executor Revert "Revert "refactor: upgrade to rules_oci 2.0 (2nd attempt)"" (#64354) 2024-08-08 09:00:08 +00:00
cody-gateway fix/enterpriseportal, fix/codygateway: zero-value durations and missing active licenses (#64378) 2024-08-12 11:49:54 -07:00
cody-gateway-config Update the default Sourcegraph-supplied LLM models (#64281) 2024-08-06 10:26:56 -07:00
customer-2315 Revert "Revert "refactor: upgrade to rules_oci 2.0 (2nd attempt)"" (#64354) 2024-08-08 09:00:08 +00:00
customer-4512 Revert "Revert "refactor: upgrade to rules_oci 2.0 (2nd attempt)"" (#64354) 2024-08-08 09:00:08 +00:00
embeddings tenant: Introduce first version of tenant package (#64271) 2024-08-08 12:02:19 +02:00
enterprise-portal fix/enterpriseportal, fix/codygateway: zero-value durations and missing active licenses (#64378) 2024-08-12 11:49:54 -07:00
executor Revert "Revert "refactor: upgrade to rules_oci 2.0 (2nd attempt)"" (#64354) 2024-08-08 09:00:08 +00:00
executor-kubernetes Revert "Revert "refactor: upgrade to rules_oci 2.0 (2nd attempt)"" (#64354) 2024-08-08 09:00:08 +00:00
frontend feat/API: move from /api/v1 to /.api/llm (#64435) 2024-08-13 10:21:27 +00:00
gitserver tenant: Introduce first version of tenant package (#64271) 2024-08-08 12:02:19 +02:00
loadtest Revert "Revert "refactor: upgrade to rules_oci 2.0 (2nd attempt)"" (#64354) 2024-08-08 09:00:08 +00:00
migrator Revert "Revert "refactor: upgrade to rules_oci 2.0 (2nd attempt)"" (#64354) 2024-08-08 09:00:08 +00:00
msp-example Revert "Revert "refactor: upgrade to rules_oci 2.0 (2nd attempt)"" (#64354) 2024-08-08 09:00:08 +00:00
pings Revert "Revert "refactor: upgrade to rules_oci 2.0 (2nd attempt)"" (#64354) 2024-08-08 09:00:08 +00:00
precise-code-intel-worker Revert "Revert "refactor: upgrade to rules_oci 2.0 (2nd attempt)"" (#64354) 2024-08-08 09:00:08 +00:00
repo-updater Revert "Revert "refactor: upgrade to rules_oci 2.0 (2nd attempt)"" (#64354) 2024-08-08 09:00:08 +00:00
searcher Search: boost phrases in hybrid search (#64367) 2024-08-12 11:24:51 +03:00
server Revert "Revert "refactor: upgrade to rules_oci 2.0 (2nd attempt)"" (#64354) 2024-08-08 09:00:08 +00:00
sourcegraph support fast, simple sg start single-program-experimental-blame-sqs for local dev (#63435) 2024-06-24 21:12:47 +00:00
symbols tenant: Introduce first version of tenant package (#64271) 2024-08-08 12:02:19 +02:00
syntactic-code-intel-worker Use correct DSN for schema validation in syntactic worker (#64383) 2024-08-09 11:21:33 +01:00
telemetry-gateway Revert "Revert "refactor: upgrade to rules_oci 2.0 (2nd attempt)"" (#64354) 2024-08-08 09:00:08 +00:00
worker chore(ci): shard authz test (#64413) 2024-08-12 14:50:01 +00:00
README.md Reminder to keep architecture diagram in-sync (#36869) 2022-06-08 19:40:36 -07:00

This directory contains Sourcegraph services and binaries.

When a services is added, removed, or when a service's dependencies change, update our architecture diagram.