Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
wsxiaoys committed Aug 21, 2024
1 parent 4be5577 commit 040e3a5
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 13 deletions.
2 changes: 0 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion crates/tabby-common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ tracing.workspace = true
chrono.workspace = true
axum.workspace = true
axum-extra = { workspace = true, features = ["typed-header"] }
async-openai.workspace = true

[dev-dependencies]
temp_testdir = { workspace = true }
Expand Down
4 changes: 1 addition & 3 deletions ee/tabby-ui/lib/types/chat.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import type { ChatMessage, Context } from 'tabby-chat-panel'
import type {
components,
} from 'tabby-openapi'
import type { components } from 'tabby-openapi'

import {
MessageAttachmentCode,
Expand Down
1 change: 0 additions & 1 deletion ee/tabby-webserver/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ cron = "0.12.1"
async-stream.workspace = true
logkit.workspace = true
async-openai.workspace = true
utoipa.workspace = true

[dev-dependencies]
assert_matches.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion ee/tabby-webserver/src/routes/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ pub fn create(
ctx: Arc<dyn ServiceLocator>,
api: Router,
ui: Router,
answer: Option<Arc<AnswerService>>,
_answer: Option<Arc<AnswerService>>,

Check warning on line 33 in ee/tabby-webserver/src/routes/mod.rs

View check run for this annotation

Codecov / codecov/patch

ee/tabby-webserver/src/routes/mod.rs#L33

Added line #L33 was not covered by tests
) -> (Router, Router) {
let schema = Arc::new(create_schema());

Expand Down
13 changes: 8 additions & 5 deletions ee/tabby-webserver/src/service/answer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,19 @@ use async_openai::{
};
use async_stream::stream;
use futures::stream::BoxStream;
use tabby_common::{api::{
code::{CodeSearch, CodeSearchError, CodeSearchHit, CodeSearchParams, CodeSearchQuery},
doc::{DocSearch, DocSearchError, DocSearchHit},
}, config::AnswerConfig};
use tabby_common::{
api::{
code::{CodeSearch, CodeSearchError, CodeSearchHit, CodeSearchParams, CodeSearchQuery},
doc::{DocSearch, DocSearchError, DocSearchHit},
},
config::AnswerConfig,
};
use tabby_inference::ChatCompletionStream;
use tabby_schema::{
repository::RepositoryService,
thread::{
self, CodeQueryInput, CodeSearchParamsOverrideInput, DocQueryInput, MessageAttachment,
MessageAttachmentCodeInput, ThreadRunItem, ThreadRunOptionsInput,
ThreadRunItem, ThreadRunOptionsInput,
},
web_crawler::WebCrawlerService,
};
Expand Down

0 comments on commit 040e3a5

Please sign in to comment.