mirror of
				https://github.com/simon987/sist2.git
				synced 2025-10-31 07:56:53 +00:00 
			
		
		
		
	Fix #462
This commit is contained in:
		
							parent
							
								
									d44679131b
								
							
						
					
					
						commit
						050fc500ce
					
				| @ -309,7 +309,7 @@ class Sist2Api { | |||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     getTagsSqlite() { |     getTagsSqlite() { | ||||||
|         return axios.get(`${this.baseUrl}/fts/tags`) |         return axios.get(`${this.baseUrl}fts/tags`) | ||||||
|             .then(resp => { |             .then(resp => { | ||||||
|                 return resp.data.map(tag => this._createEsTag(tag.tag, tag.count)) |                 return resp.data.map(tag => this._createEsTag(tag.tag, tag.count)) | ||||||
|             }); |             }); | ||||||
| @ -566,7 +566,7 @@ class Sist2Api { | |||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     getDocumentSqlite(sid) { |     getDocumentSqlite(sid) { | ||||||
|         return axios.get(`${this.baseUrl}/fts/d/${sid}`) |         return axios.get(`${this.baseUrl}fts/d/${sid}`) | ||||||
|             .then(resp => ({ |             .then(resp => ({ | ||||||
|                 _source: resp.data |                 _source: resp.data | ||||||
|             })); |             })); | ||||||
| @ -589,7 +589,7 @@ class Sist2Api { | |||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     getTagSuggestionsSqlite(prefix) { |     getTagSuggestionsSqlite(prefix) { | ||||||
|         return axios.post(`${this.baseUrl}/fts/suggestTags`, prefix) |         return axios.post(`${this.baseUrl}fts/suggestTags`, prefix) | ||||||
|             .then(resp => (resp.data)); |             .then(resp => (resp.data)); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
| @ -620,7 +620,7 @@ class Sist2Api { | |||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     getEmbeddings(sid, modelId) { |     getEmbeddings(sid, modelId) { | ||||||
|         return axios.post(`${this.baseUrl}/e/${sid}/${modelId.toString().padStart(3, '0')}`) |         return axios.post(`${this.baseUrl}e/${sid}/${modelId.toString().padStart(3, '0')}`) | ||||||
|             .then(resp => (resp.data)); |             .then(resp => (resp.data)); | ||||||
|     } |     } | ||||||
| } | } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user