Commit graph

1083 commits

Author SHA1 Message Date
Nate
dcb1615486 Merge branch 'main' into dallin/cancelable-apply 2025-05-25 16:11:53 -07:00
Nate Sesti
b9bfcc3973
Merge branch 'main' into nate/watsonx-rules-support 2025-05-22 20:18:59 -07:00
Nate
606ccb8c84 fix type errors 2025-05-22 20:09:00 -07:00
Nate
6d4857bf32 pass env to continueProperties 2025-05-22 19:01:00 -07:00
chezsmithy
b24a76fdab feat: ✨ Add support for Claude Sonnet 4 2025-05-22 13:28:49 -07:00
Patrick Erichsen
2bad1383bd
Merge pull request #5781 from continuedev/tomasz/match-all-context-code
Match all context to rules
2025-05-21 18:09:03 -07:00
Tomasz Stefaniak
cd82f4c61f fix: type errors 2025-05-21 12:53:33 -07:00
Tomasz Stefaniak
17a249c1ce test: generating system message 2025-05-21 12:46:59 -07:00
Tomasz Stefaniak
d265ec01e2 improv: clean up code 2025-05-21 12:41:40 -07:00
Tomasz Stefaniak
bdc2ec8374 fix: missing context items 2025-05-21 12:37:43 -07:00
Mathieu Santostefano
6c5441effd
Update toolSupport.test.ts to support devstral 2025-05-21 20:37:36 +02:00
Mathieu Santostefano
dbd3430984
Add Devstral as model supporting tools
Ref #5778
2025-05-21 20:33:30 +02:00
Patrick Erichsen
38f58b1e62
Merge pull request #5729 from derhauck/5728-allow-openai-oseries-models
feat: add regex to allow for openai o-series models and rename method…
2025-05-20 21:17:14 -07:00
Tomasz Stefaniak
64fb928b8f fix: matching context code 2025-05-20 18:06:56 -07:00
DERHauck
22aa3ac221 #5728 Update negative test cases in isOSeriesModel unit tests to improve coverage and accuracy 2025-05-20 11:58:50 +02:00
DERHauck
6222824cf4 #5728 add tests for isOSeriesModel and make method public in OpenAI class for easier testing 2025-05-20 11:46:51 +02:00
Dallin Romney
1c328b0974 Merge branch 'main' of https://github.com/continuedev/continue into nate/retry-llm-tests 2025-05-19 17:06:38 -07:00
Dallin Romney
9d2037c6e0 fetch updates - move tests to fetch package 2025-05-19 16:03:22 -07:00
Tomasz Stefaniak
e6d1478346
Merge pull request #5580 from zyxue/zyxue-patch-1
handle `data:[DONE]` without space properly
2025-05-19 12:44:12 -07:00
Dallin Romney
b8b893d3d0 merge main 2025-05-19 10:55:54 -07:00
Zhuyi Xue
ad37da6714
Updated stream.test.ts 2025-05-19 10:03:33 -07:00
DERHauck
c30e143100 #5728 fix missing boolean check 2025-05-19 09:54:31 +02:00
DERHauck
71b969d1e0 #5728 add regex to allow for openai o-series models and rename method to stay descriptive of new functionality 2025-05-19 09:47:40 +02:00
Patrick Erichsen
890c9b3e7b Merge branch 'main' into pe/apply-fixes-pt2 2025-05-16 15:06:51 -07:00
Dallin Romney
35958b225d use fetch package for streaming utils 2025-05-16 10:33:17 -07:00
Dallin Romney
8f3ee86d50 cleanup 2025-05-16 10:29:40 -07:00
Patrick Erichsen
ceb92773e9 fix: apply insertion bug 2025-05-15 19:56:25 -07:00
Dallin Romney
1a47f96259 catch client abort errors 2025-05-15 18:45:55 -07:00
Dallin Romney
d93d665512 cancelable apply 2025-05-15 15:55:15 -07:00
Tomasz Stefaniak
002ecc9b51 fix: failing test 2025-05-15 14:03:08 -07:00
Tomasz Stefaniak
53f06795d3 feat: display rules used 2025-05-14 16:01:29 -07:00
Dallin Romney
1479dfbf19 add comment link to openrouter models that support tools 2025-05-13 12:02:16 -07:00
Dallin Romney
a2e6ab6c57 openrouter default tool support 2025-05-13 10:43:09 -07:00
Patrick Erichsen
d350549ccb
Merge pull request #5371 from chezsmithy/feat-cache-tools-config
feat(config-yaml): Add promptCaching to Default Completion Options and enable Bedrock Tools Caching
2025-05-12 15:41:02 -07:00
zyxue
1ea2a105ed added unittest for stream 2025-05-12 08:57:51 -07:00
Tomasz Stefaniak
5e122b76b3 fix: copy 2025-05-09 14:47:55 -07:00
Patrick Erichsen
e29d188333 Merge branch 'main' into feat-cache-tools-config 2025-05-09 14:02:35 -07:00
Tomasz Stefaniak
4def447b7f Update toolSupport.ts 2025-05-09 13:48:46 -07:00
Tomasz Stefaniak
82ac6848ca fix: ollama tool use 2025-05-09 13:36:04 -07:00
Patrick Erichsen
e0214dad87 Merge branch 'main' into zyxue-patch-1 2025-05-09 13:32:33 -07:00
Patrick Erichsen
9d53acafde
Merge pull request #5522 from mq200/feat/watsonx-chat-api
watsonx - messages API integration
2025-05-09 10:46:00 -07:00
chezsmithy
6b8345e792 Introduce promptCaching option 2025-05-08 21:12:26 -07:00
chezsmithy
820acc869b tools config caching for bedrock 2025-05-08 21:11:31 -07:00
Zhuyi Xue
5db24e4bbc
handle data:[DONE] more robustly
although https://learn.microsoft.com/en-us/azure/ai-services/openai/reference#request-body says

>stream    boolean    Whether to stream back partial progress. If set, tokens will be sent as data-only server-sent events as they become available, with the stream terminated by a data: [DONE] message

but what I see is `data:[DONE]` (without space), e.g.

```
curl -q --location 'http://localhost:8080/openai/deployments/gpt-4o/chat/completions?api-version=2023-07-01-preview' \
--header 'Authorization: Bearer <token>' \
--header 'X-Forwarded-Client-Cert: secret' \
--header 'Content-Type: application/json' \
--data '{
    "stream": true,
    "messages": [
        {
            "role": "user",
            "content": "hello."
        }
    ]
}'
data:{"choices":[],"created":0,"id":"","model":"","object":"","prompt_filter_results":[{"prompt_index":0,"content_filter_results":{"hate":{"filtered":false,"severity":"safe"},"self_harm":{"filtered":false,"severity":"safe"},"sexual":{"filtered":false,"severity":"safe"},"violence":{"filtered":false,"severity":"safe"}}}]}

data:{"choices":[{"content_filter_results":{},"delta":{"refusal":null,"role":"assistant"},"finish_reason":null,"index":0}],"created":1746741184,"id":"chatcmpl-BV3SqfEtCuk3f8fW5x7azEkELkJZ0","model":"gpt-4o-2024-05-13","object":"chat.completion.chunk","system_fingerprint":"fp_ee1d74bde0"}
...
data:{"choices":[{"content_filter_results":{"hate":{"filtered":false,"severity":"safe"},"self_harm":{"filtered":false,"severity":"safe"},"sexual":{"filtered":false,"severity":"safe"},"violence":{"filtered":false,"severity":"safe"}},"delta":{"content":"?"},"finish_reason":null,"index":0}],"created":1746741184,"id":"chatcmpl-BV3SqfEtCuk3f8fW5x7azEkELkJZ0","model":"gpt-4o-2024-05-13","object":"chat.completion.chunk","system_fingerprint":"fp_ee1d74bde0"}

data:{"choices":[{"content_filter_results":{},"delta":{},"finish_reason":"stop","index":0}],"created":1746741184,"id":"chatcmpl-BV3SqfEtCuk3f8fW5x7azEkELkJZ0","model":"gpt-4o-2024-05-13","object":"chat.completion.chunk","system_fingerprint":"fp_ee1d74bde0"}

data:[DONE]
```
2025-05-08 15:09:39 -07:00
Patrick Erichsen
ec0180bf95
Merge pull request #5528 from chezsmithy/fix-mode-switch-broken-tools
fix(mode-switch)-tools-calls-broken
2025-05-07 15:10:57 -07:00
chezsmithy
9b7ee72bec simplify constructMessages.ts 2025-05-06 22:57:37 -07:00
chezsmithy
c44e29c981 suggested changes 2025-05-06 22:21:42 -07:00
Patrick Erichsen
3365971917
Merge pull request #5523 from mq200/feat/codestral_template
add codestral template
2025-05-06 10:38:49 -07:00
chezsmithy
c0b26d3302 fix-mode-switch-broken-tools 2025-05-06 00:16:52 -07:00
mq200
21458828c5 watsonx endpoint formatting 2025-05-05 17:14:58 -07:00